How do i make people teleport from my game to another?
last i used this, it worked for me ...
1 | function onTouched(hit) |
2 | local player = game.Players:GetPlayerFromCharacter(hit.Parent) |
3 | if player then |
4 | game:GetService( "TeleportService" ):TeleportToSpawnByName(( 281925931 ), "(SpawnLocation)" , player) |
5 | end |
6 | end |
7 |
8 | script.Parent.Touched:connect(onTouched) |
:) hope it helps