Pastebloxian

God Simulator autofarm

Mar 23rd, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.11 KB | None | 0 0
  1. _G.Area = "Farm"
  2.  
  3. local Event = game:GetService("ReplicatedStorage")["\240\159\148\165"]
  4. local EntityList = require(game.ReplicatedStorage.Info.EntityList)
  5. local Sell = workspace.Activation.EssenceReturn.Root
  6. local Targets = workspace.DestructableObjects
  7.  
  8. local Player = game.Players.LocalPlayer
  9. local Character = Player.Character
  10.  
  11. local Ability = Player.PlayerGui.MainGui.MainFrame.AbilityButtons.Ability1.aname
  12.  
  13. local Effects = workspace:WaitForChild("EffectFolder")
  14.  
  15. spawn(function()
  16. while wait() do
  17. Sell.Position = Character.HumanoidRootPart.Position
  18. end
  19. end)
  20.  
  21. while wait() do
  22. local c = Targets:GetChildren()
  23. for i = 1, #c do
  24. if (c[i]:FindFirstChild("ID") and c[i]:FindFirstChild("Alive")) then
  25. if (c[i].Alive.Value == true) then
  26. local EntityOnList = EntityList.Entitys[c[i].ID.Value]
  27. if (EntityOnList and EntityOnList.area == _G.Area) then
  28. local Box = c[i]:FindFirstChild("BoundingBox")
  29. if (Box) then
  30. Character:MoveTo(Box.Position)
  31. Effects:ClearAllChildren()
  32. Event:FireServer("UseAbility", Character.Name, Ability.Text, Box.CFrame, Box)
  33. Effects:ClearAllChildren()
  34. end
  35. end
  36. end
  37. end
  38. end
  39. end
Add Comment
Please, Sign In to add comment