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

How can I make the a spawn location specific to a universe teleport?

Asked by
Stravan 18
5 years ago

I have a surface gui with a button that will teleport players to a different place when clicked.

script.Parent.MouseButton1Down:connect(function()
    game:GetService("TeleportService"):TeleportToSpawnByName(364386074, "TrainSpawn")
    wait(2)
end)

I have the teleporting to a certain spawn down, but sometimes when a player just enters the game, they sometimes spawn in this location that's specifically assigned to be a spawn for a universe teleport. How can I prevent this?

0
put Enabled to false in TrainSpawn's properties. radusavin366 617 — 5y
0
i literally just thought of this after i posted this. thanks though!! Stravan 18 — 5y

Answer this question