Advertisement
Guest User

Slayer's Legacy

a guest
Mar 28th, 2020
6,680
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. repeat wait() until game:IsLoaded()
  2. --Variables
  3. local Player = game:GetService("Players").LocalPlayer
  4. local Char = Player.Character
  5. local Remote = Char.Combat.RemoteFolder.CombatEvent
  6.  
  7. --Bonk
  8. while true do
  9. for i,v in pairs(game:GetService("Workspace").Mobs:GetChildren())do
  10. if v:FindFirstChild("HumanoidRootPart") and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health >0 then
  11. local hum = v:FindFirstChildOfClass("Humanoid")
  12. repeat
  13. pcall(function()
  14. Char.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame
  15. Remote:FireServer(v,4)
  16. Remote:FireServer(v,1,true)
  17. end)
  18. wait()
  19. until not v or not v.Parent or not v:FindFirstChild("HumanoidRootPart") or not hum or hum.Health <=0
  20. end
  21. end
  22. wait()
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement