Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plrs = game:GetService("Players")
- local plr = plrs.LocalPlayer
- local function GetRandomPlayer()
- local plrlist = plrs:GetPlayers()
- local index = math.random(1, #plrlist)
- return plrlist[index]
- end
- local function TeleportAndYield()
- local Target
- repeat Target = GetRandomPlayer() until Target.characterData.IsInMenu.Value == false
- repeat
- plr.Character.HumanoidRootPart.CFrame = Target.Character.HumanoidRootPart.CFrame
- wait()
- until Target.Character.Humanoid.Health == 0 or plr.Character.Humanoid.Health == 0
- return true
- end
- while wait() do
- TeleportAndYield()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement