Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make people teleport from my game to another?

Asked by 9 years ago

How do i make people teleport from my game to another?

1 answer

Log in to vote
0
Answered by 9 years ago

last i used this, it worked for me ...

1function onTouched(hit)
2    local player = game.Players:GetPlayerFromCharacter(hit.Parent)
3    if player then
4    game:GetService("TeleportService"):TeleportToSpawnByName((281925931), "(SpawnLocation)", player)
5    end
6end
7 
8script.Parent.Touched:connect(onTouched)

:) hope it helps

Ad

Answer this question