Script
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
local Frame = Instance.new("Frame")
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.fromRGB(94, 94, 94)
Frame.Position = UDim2.new(0.05, 0, 0.05, 0)
Frame.Size = UDim2.new(0, 223, 0, 75)
local TextLabel = Instance.new("TextLabel")
TextLabel.Parent = Frame
TextLabel.BackgroundColor3 = Color3.fromRGB(122, 122, 122)
TextLabel.Position = UDim2.new(0.05, 0, 0, 0)
TextLabel.Size = UDim2.new(0, 200, 0, 27)
TextLabel.Font = Enum.Font.Michroma
TextLabel.Text = "auto farm by w00dkid"
TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
TextLabel.TextSize = 14
local TextButton = Instance.new("TextButton")
TextButton.Parent = ScreenGui
TextButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
TextButton.Position = UDim2.new(0.11, 0, 0.10, 0)
TextButton.Size = UDim2.new(0, 66, 0, 35)
TextButton.Font = Enum.Font.Michroma
TextButton.Text = "start"
TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
TextButton.TextSize = 14
-- Переменные
local farming = false
local farmThread = nil
-- Координаты
local targetCFrame = CFrame.new(
3036.11963, 17.9525776, -6019.34521,
0.0489703007, 0.0105613936, -0.998744369,
-8.77498341e-09, 0.999944091, 0.0105740791,
0.998800218, -0.000517807086, 0.0489675626
)
-- Функция фарма
local function startFarm()
farming = true
farmThread = task.spawn(function()
while farming do
task.wait(1)
local char = game:GetService("Players").LocalPlayer.Character
if char then
local hrp = char:FindFirstChild("HumanoidRootPart")
if hrp then
hrp.CFrame = targetCFrame
end
end
end
end)
end
local function stopFarm()
farming = false
if farmThread then
task.cancel(farmThread)
farmThread = nil
end
end
-- Кнопка
TextButton.MouseButton1Click:Connect(function()
if farming then
stopFarm()
TextButton.Text = "start"
TextButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
else
startFarm()
TextButton.Text = "stop"
TextButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
end
end)Features
- just autofarm