Finatic

Build & Survive AutoFarm One Hit Kill

May 2nd, 2019
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. local mob = game:GetService("Workspace")["__THINGS"].Monsters
  2. local coin = game:GetService("Workspace")["__DEBRIS"]
  3. local PickUpEvent = game:GetService("Workspace")["__REMOTES"].Game["Redeem Drop"]
  4. local killEvent = game:GetService("Workspace")["__REMOTES"].Game["Mob Do Damage"]
  5.  
  6.  
  7. while wait(0.1) do
  8. for _,v in next, mob:GetChildren() do
  9. if v:FindFirstChild("HumanoidRootPart") == nil then
  10. --nothing
  11. else
  12. if v.HumanoidRootPart.Position.Z > -65 then
  13. killEvent:FireServer({ { v, v.Humanoid.Health } })
  14. end
  15. end
  16. end
  17. for _,v in next, coin:GetChildren() do
  18. if v.Name == "Coin" or v.Name == "Star" then
  19. PickUpEvent:FireServer({ v.UID.Value })
  20. end
  21. end
  22. end
Add Comment
Please, Sign In to add comment