Advertisement
Sungmingamerpro13

TeleportPlayers(STORY GAME)

Sep 23rd, 2022
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 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 = false
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement