Alright, so my game has a menu when you first join. I want the player to spawn on one SpawnLocations when they first join and they see the menu, and them to spawn randomly on one of the other SpawnLocations as usual after leaving the menu. I have MenuSpawn disabled. However, it spawns me as usual.
I cut out the parts that aren't relevant to the problem.
game.Players.PlayerAdded:connect(function(player) local menuActive = true player.RespawnLocation = game.Workspace.MenuSpawn player.CharacterAdded:connect(function(character) if menuActive then menuActive = false end end) end)
The property RespawnLocation
needs to contain a reference to a SpawnLocation
object, not a part.