Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. _G.Area = "Farm" --- đổi _G.Area = "Farm" thành _G.Area = "Residential" hoặc _G.Area = "Oddwood" hoặc là những area khác
  2. _G.ShootCount = 10 --- đổi đi thằng ngu 10 là được rồi đổi cc
  3.  
  4. local Event = game:GetService("ReplicatedStorage")["\240\159\148\165"]
  5. local EntityList = require(game.ReplicatedStorage.Info.EntityList)
  6. local Sell = workspace.Activation.EssenceReturn.Root
  7. local Targets = workspace.DestructableObjects
  8.  
  9. local Player = game.Players.LocalPlayer
  10. local Character = Player.Character
  11.  
  12. local Ability = Player.PlayerGui.MainGui.MainFrame.AbilityButtons.Ability1.aname
  13.  
  14. spawn(function()
  15. while wait() do
  16. Sell.Position = Character.HumanoidRootPart.Position
  17. end
  18. end)
  19.  
  20. while wait() do
  21. local c = Targets:GetChildren()
  22. for i = 1, #c do
  23. if (c[i]:FindFirstChild("ID") and c[i]:FindFirstChild("Alive")) then
  24. if (c[i].Alive.Value == true) then
  25. local EntityOnList = EntityList.Entitys[c[i].ID.Value]
  26. if (EntityOnList and EntityOnList.area == _G.Area) then
  27. local Box = c[i]:FindFirstChild("BoundingBox")
  28. if (Box) then
  29. Character:MoveTo(Box.Position)
  30. for i = 1, _G.ShootCount do
  31. Event:FireServer("UseAbility", Character.Name, Ability.Text, Box.CFrame, Box)
  32. end
  33. wait()
  34. end
  35. end
  36. end
  37. end
  38. end
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement