Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Variables
- _G.Toggle = true --Change: "True" to start farm / "False" to stop farm
- local Player = game:GetService("Players").LocalPlayer
- --Bonk
- while true do
- for i,v in pairs(game:GetService("Workspace").Zones.npcSpawn:GetChildren())do
- if _G.Toggle and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChildOfClass("Humanoid") then
- repeat
- pcall(function()
- local tool = Player.Character:FindFirstChildOfClass("Tool") or Player.Backpack:FindFirstChildOfClass("Tool")
- if tool:FindFirstChild("Damage") then
- Player.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame*CFrame.new(0,0,3)
- Player.Character[tool.Name].Damage:FireServer(v,tool.Name)
- if tool.Parent == Player.Character then
- tool.Parent = Player.Backpack
- end
- if tool.Parent == Player.Backpack then
- tool.Parent = Player.Character
- end
- end
- end)
- wait()
- until not _G.Toggle or not v or not v.Parent or not v:FindFirstChild("HumanoidRootPart") or not v:FindFirstChildOfClass("Humanoid")
- end
- end
- wait()
- end
Add Comment
Please, Sign In to add comment