Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

1 answer

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

function onTouched(hit)
    local player = game.Players:GetPlayerFromCharacter(hit.Parent)
    if player then
	game:GetService("TeleportService"):TeleportToSpawnByName((281925931), "(SpawnLocation)", player)
    end
end
 
script.Parent.Touched:connect(onTouched)

:) hope it helps

This discussion is preserved as it was. New answers, comments, and votes are closed.