Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Trying to make players spawn at a certain spawn before game starts?

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)

1 comment

0

'connect' is deprecated. Use 'Connect'.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.