Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local PlaceId = 10742154027
- script.Parent.Touched:Connect(function(Hit)
- if Hit.Parent:FindFirstChild("Humanoid") then
- local character = Hit.Parent
- local player = game.Players:GetPlayerFromCharacter(character)
- if player then
- game:GetService("TeleportService"):Teleport(PlaceId, player)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement