
Key Required
idk new script auto farm babft
Lua Script•187 lines (6403 chars)
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local player = Players.LocalPlayer
-- ========================================================
-- ДИНАМИЧЕСКОЕ СОЗДАНИЕ ИНТЕРФЕЙСА (GUI)
-- ========================================================
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AutoFlyGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = player:WaitForChild("PlayerGui")
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 200, 0, 185)
frame.Position = UDim2.new(0.02, 0, 0.4, 0)
frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
frame.BorderSizePixel = 0
frame.Parent = screenGui
local frameCorner = Instance.new("UICorner")
frameCorner.CornerRadius = UDim.new(0, 10)
frameCorner.Parent = frame
local dragHeader = Instance.new("Frame")
dragHeader.Size = UDim2.new(1, 0, 0, 25)
dragHeader.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
dragHeader.BorderSizePixel = 0
dragHeader.Parent = frame
local headerCorner = Instance.new("UICorner")
headerCorner.CornerRadius = UDim.new(0, 10)
headerCorner.Parent = dragHeader
local headerText = Instance.new("TextLabel")
headerText.Size = UDim2.new(1, 0, 1, 0)
headerText.BackgroundTransparency = 1
headerText.Text = "★ ЗАЖМИ И ТАЩИ ★"
headerText.TextColor3 = Color3.fromRGB(150, 150, 150)
headerText.Font = Enum.Font.SourceSansBold
headerText.TextSize = 12
headerText.Parent = dragHeader
local uiListLayout = Instance.new("UIListLayout")
uiListLayout.Padding = UDim.new(0, 8)
uiListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
uiListLayout.VerticalAlignment = Enum.VerticalAlignment.Bottom
uiListLayout.Parent = frame
local function createButton(name, text, color)
local btn = Instance.new("TextButton")
btn.Name = name
btn.Text = text
btn.Size = UDim2.new(0, 180, 0, 35)
btn.BackgroundColor3 = color
btn.TextColor3 = Color3.fromRGB(255, 255, 255)
btn.Font = Enum.Font.SourceSansBold
btn.TextSize = 16
btn.BorderSizePixel = 0
btn.Parent = frame
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 6)
corner.Parent = btn
return btn
end
local btnOn = createButton("ButtonOn", "ВКЛЮЧИТЬ", Color3.fromRGB(46, 204, 113))
local btnOff = createButton("ButtonOff", "ВЫКЛЮЧИТЬ", Color3.fromRGB(231, 76, 60))
local btnDestroy = createButton("ButtonDestroy", "УДАЛИТЬ", Color3.fromRGB(52, 73, 94))
-- Логика перетаскивания (Drag)
local dragging, dragInput, dragStart, startPosition
local function update(input)
local delta = input.Position - dragStart
TweenService:Create(frame, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
Position = UDim2.new(startPosition.X.Scale, startPosition.X.Offset + delta.X, startPosition.Y.Scale, startPosition.Y.Offset + delta.Y)
}):Play()
end
dragHeader.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
dragging = true; dragStart = input.Position; startPosition = frame.Position
input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end)
end
end)
dragHeader.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end)
UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then update(input) end end)
-- ========================================================
-- ЛОГИКА ДВИЖЕНИЯ И ТЕЛЕПОРТАЦИИ
-- ========================================================
local startPos = Vector3.new(-62.865631103515625, 37.60004425048828, 1334.090087890625)
local endPos = Vector3.new(-62.865631103515625, 37.60004425048828, 8357.08984375)
local deathPos = Vector3.new(-53.53826904296875, -360.6150817871094, 9490.3564453125)
-- Увеличили скорость до 300
local TARGET_SPEED = 300
local isRunning = false
local flyConnection = nil
-- Функция очистки физических ускорителей
local function removeVelocity(character)
if not character then return end
local hrp = character:FindFirstChild("HumanoidRootPart")
if hrp then
local attachment = hrp:FindFirstChild("FlyAttachment")
local velocity = hrp:FindFirstChild("FlyVelocity")
if attachment then attachment:Destroy() end
if velocity then velocity:Destroy() end
end
end
-- Функция полета
local function startFlight()
if not isRunning then return end
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")
local humanoid = character:WaitForChild("Humanoid")
removeVelocity(character)
-- 1. Телепортация на старт
hrp.CFrame = CFrame.new(startPos)
task.wait(0.2)
if not isRunning then return end
-- 2. Настройка физического полета
local attachment = Instance.new("Attachment")
attachment.Name = "FlyAttachment"
attachment.Parent = hrp
local linearVelocity = Instance.new("LinearVelocity")
linearVelocity.Name = "FlyVelocity"
linearVelocity.Attachment0 = attachment
linearVelocity.MaxForce = math.huge
local direction = (endPos - startPos).Unit
linearVelocity.VectorVelocity = direction * TARGET_SPEED
linearVelocity.Parent = hrp
humanoid:ChangeState(Enum.HumanoidStateType.Physics)
-- 3. Отслеживание дистанции до финиша полета
while isRunning and character and humanoid.Health > 0 do
local currentDistance = (hrp.Position - endPos).Magnitude
if currentDistance < 20 then -- Немного увеличили радиус финиша для высокой скорости
removeVelocity(character)
-- ТЕЛЕПОРТИРУЕМ К КИЛЛ-ЗОНЕ
hrp.CFrame = CFrame.new(deathPos)
break
end
task.wait(0.05) -- Чаще проверяем координаты, так как скорость выше
end
end
-- Автоматический перезапуск цикла после респавна
flyConnection = player.CharacterAdded:Connect(function(char)
if isRunning then
task.wait(0.5)
startFlight()
end
end)
-- КНОПКИ
btnOn.MouseButton1Click:Connect(function()
if isRunning then return end
isRunning = true
startFlight()
end)
btnOff.MouseButton1Click:Connect(function()
isRunning = false
removeVelocity(player.Character)
end)
btnDestroy.MouseButton1Click:Connect(function()
isRunning = false
removeVelocity(player.Character)
if flyConnection then flyConnection:Disconnect() end
screenGui:Destroy()
script:Destroy()
end)Features & Information
script from gemini
(sorry for bed ingl i UA person)
gren = start
red = stop
grey = delete
Community Comments (0)
No comments yet for this script.
