Advertisement
Daniel555ok

Combat Warriors | Teleport behind people

Jun 17th, 2020
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. local plrs = game:GetService("Players")
  2. local plr = plrs.LocalPlayer
  3.  
  4. local function GetRandomPlayer()
  5. local plrlist = plrs:GetPlayers()
  6. local index = math.random(1, #plrlist)
  7. return plrlist[index]
  8. end
  9.  
  10. local function TeleportAndYield()
  11. local Target
  12. repeat Target = GetRandomPlayer() until Target.characterData.IsInMenu.Value == false
  13. repeat
  14. plr.Character.HumanoidRootPart.CFrame = Target.Character.HumanoidRootPart.CFrame
  15. wait()
  16. until Target.Character.Humanoid.Health == 0 or plr.Character.Humanoid.Health == 0
  17. return true
  18. end
  19.  
  20. while wait() do
  21. TeleportAndYield()
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement