Advertisement
1zxyuuki

Untitled

Mar 9th, 2024 (edited)
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local Player = Players.LocalPlayer
  3. local Character = Player.Character or (Player.CharacterAdded:Wait() and Player.Character)
  4. local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
  5. local Humanoid = Character:WaitForChild("Humanoid")
  6.  
  7. Player.CharacterAdded:Connect(function(Char)
  8. Character = Char
  9. HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
  10. Humanoid = Character:WaitForChild("Humanoid")
  11. end)
  12.  
  13. while true do
  14. pcall(function()
  15. local ERP = Players[MainAccount].Character.HumanoidRootPart.CFrame
  16. HumanoidRootPart.CFrame = ERP + ERP.LookVector * 6
  17. end)
  18. if Humanoid.Health <= 50 then
  19. Humanoid.Health = 0
  20. end
  21. task.wait(0.25)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement