Sungmingamerpro13

TeleportPlayers

Jan 3rd, 2023
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.48 KB | None | 0 0
  1. function teleportPlayers(partCFrame)
  2.     local players = game.Players:getPlayers()
  3.     for _,player in pairs(players) do
  4.         if player.Character then
  5.             if player.Character.HumanoidRootPart.Anchored == false then
  6.                 player.Character.Humanoid.Jump = true
  7.             end
  8.         end
  9.     end
  10.     wait(.5)
  11.     for _,player in pairs(players) do
  12.         if player.Character then
  13.             if player.Character.HumanoidRootPart.Anchored == false then
  14.                 player.Character:SetPrimaryPartCFrame(partCFrame)
  15.             end
  16.         end
  17.     end
  18. end
Add Comment
Please, Sign In to add comment