Advertisement
Guest User

Untitled

a guest
May 26th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer;
  2.  
  3. while true do
  4. pcall(function()
  5. local mypos = Player.Character.HumanoidRootPart.CFrame.p;
  6. Player.Character.Humanoid.WalkSpeed = 80;
  7. for index, value in next, workspace.dungeon:GetDescendants() do
  8. if (value:FindFirstChildOfClass("Humanoid") and (value ~= Player.Character)) then
  9. if ((value.HumanoidRootPart.CFrame.p - mypos).Magnitude < 20) then
  10. value.Humanoid.Health = 0;
  11. end;
  12. end;
  13. end;
  14. end);
  15. wait(0.15);
  16. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement