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?

2 comments
put Enabled to false in TrainSpawn's properties.
i literally just thought of this after i posted this. thanks though!!