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

How do i make a good teleporter? [Done]

Asked by 10 years ago

Please help, i would like to make a good teleporter like one from the Egg Hunt 2014.

1 answer

Log in to vote
1
Answered by 10 years ago
function onTouched(hit)
    local player = game.Players:GetPlayerFromCharacter(hit.Parent)
    if player then
    game:GetService("TeleportService"):TeleportToSpawnByName(1, "SpawnLocation", player) --Replace the, "1" with the placeID.
    end
end

script.Parent.Touched:connect(onTouched)

If you make the message pop on the screen everyone will see that someone is teleporting. You can't test in Studio because someone managed to go into a live game and he could use tools and such so... You need to test it out in your actual game.

0
okay thanks gtaboss1 0 — 10y
0
Accept answer plz? EzraNehemiah_TF2 3552 — 10y
Ad

Answer this question