
Key Required

local Players=game:GetService("Players")
local TweenService=game:GetService("TweenService")
local UserInputService=game:GetService("UserInputService")
local player=Players.LocalPlayer
local gui=Instance.new("ScreenGui")
gui.Name="DevsVNGishandsome"
gui.ResetOnSpawn=false
gui.Parent=player:WaitForChild("PlayerGui")
local frame=Instance.new("Frame")
frame.Size=UDim2.new(0,280,0,150)
frame.Position=UDim2.new(0.5,-140,0.18,0)
frame.BackgroundColor3=Color3.fromRGB(24,24,24)
frame.BackgroundTransparency=0.05
frame.BorderSizePixel=0
frame.Active=true
frame.Draggable=true
frame.Parent=gui
Instance.new("UICorner",frame)
local title=Instance.new("TextLabel",frame)
title.Size=UDim2.new(1,0,0,30)
title.BackgroundTransparency=1
title.Text="AutoFarm"
title.TextColor3=Color3.fromRGB(255,215,0)
title.Font=Enum.Font.GothamBold
title.TextSize=18
local toggleFrame=Instance.new("Frame",frame)
toggleFrame.Size=UDim2.new(0,72,0,34)
toggleFrame.Position=UDim2.new(0.5,-36,0.45,0)
toggleFrame.BackgroundColor3=Color3.fromRGB(140,20,20)
toggleFrame.BorderSizePixel=0
Instance.new("UICorner",toggleFrame)
local toggleCircle=Instance.new("Frame",toggleFrame)
toggleCircle.Size=UDim2.new(0,30,0,30)
toggleCircle.Position=UDim2.new(0,2,0,2)
toggleCircle.BackgroundColor3=Color3.fromRGB(255,255,255)
Instance.new("UICorner",toggleCircle)
local statusLabel=Instance.new("TextLabel",frame)
statusLabel.Size=UDim2.new(1,0,0,20)
statusLabel.Position=UDim2.new(0,0,1,-25)
statusLabel.BackgroundTransparency=1
statusLabel.Text="OFF"
statusLabel.TextColor3=Color3.fromRGB(255,80,80)
statusLabel.Font=Enum.Font.GothamBold
statusLabel.TextSize=13
local credit=Instance.new("TextLabel",frame)
credit.Size=UDim2.new(1,0,0,20)
credit.Position=UDim2.new(0,0,0.8,0)
credit.BackgroundTransparency=1
credit.Text="Made by DevsVNG"
credit.TextColor3=Color3.fromRGB(200,200,200)
credit.Font=Enum.Font.GothamMedium
credit.TextSize=14
local autoFarm=false
local running=false
local function farmLoop()
running=true
while autoFarm and task.wait(0.1) do
for _,v in pairs(workspace.Bases[tostring(player:GetAttribute("Base"))].Enemies:GetDescendants()) do
if v:IsA("Humanoid") then
task.spawn(function()
v.Health=0
end)
end
end
for _,v in pairs(workspace:GetChildren()) do
if (v.Name=="CashTemp" or v.Name=="MaterialTemp") and v:IsA("Part") then
task.spawn(function()
if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
v.CFrame=player.Character.HumanoidRootPart.CFrame
end
end)
end
end
end
running=false
end
local function setToggle(state)
autoFarm=state
if state then
statusLabel.Text="RUNNING"
statusLabel.TextColor3=Color3.fromRGB(120,255,120)
TweenService:Create(toggleFrame,TweenInfo.new(0.18),{BackgroundColor3=Color3.fromRGB(20,150,20)}):Play()
TweenService:Create(toggleCircle,TweenInfo.new(0.18),{Position=UDim2.new(1,-32,0,2)}):Play()
if not running then task.spawn(farmLoop) end
else
statusLabel.Text="OFF"
statusLabel.TextColor3=Color3.fromRGB(255,80,80)
TweenService:Create(toggleFrame,TweenInfo.new(0.18),{BackgroundColor3=Color3.fromRGB(140,20,20)}):Play()
TweenService:Create(toggleCircle,TweenInfo.new(0.18),{Position=UDim2.new(0,2,0,2)}):Play()
end
end
toggleFrame.InputBegan:Connect(function(input)
if input.UserInputType==Enum.UserInputType.MouseButton1 or input.UserInputType==Enum.UserInputType.Touch then
setToggle(not autoFarm)
end
end)
UserInputService.InputBegan:Connect(function(input,gpe)
if gpe then return end
if input.KeyCode==Enum.KeyCode.P then
setToggle(not autoFarm)
end
end)
setToggle(false)
@AnonymousAndy bro
https://www.roblox.com/games/118582391303761/RPG-1-5 can you make insta kill for this game?
@hangedMan can not
@AnonymousAndy You mean BEST WE STEAL YOUR BRAINROTS SCRIPTS!