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 ...

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

Ad

Answer this question