Advertisement
Sungmingamerpro13

TeleportScript 2

Jan 2nd, 2023
1,320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.37 KB | None | 0 0
  1. local PlaceId = 10742154027
  2.  
  3. script.Parent.Touched:Connect(function(Hit)
  4.     if Hit.Parent:FindFirstChild("Humanoid") then
  5.        
  6.         local character = Hit.Parent
  7.         local player = game.Players:GetPlayerFromCharacter(character)
  8.        
  9.         if player then
  10.             game:GetService("TeleportService"):Teleport(PlaceId, player)
  11.         end
  12.     end
  13. end)
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement