-- separated enabling/disabling spawn points into a simple script to make sure it runs w/o yielding before players join


local ReplicatedStorage = game:GetService("ReplicatedStorage")

local globalSettings = require(ReplicatedStorage.DemoGlobalSettings)

if( game.PrivateServerId ~= "" and game.PrivateServerOwnerId == 0 ) then
	workspace.SpawnLocationLobby.Enabled = false
	workspace.SpawnLocation.Enabled = true
else
	--workspace.TempStorage.Test.SpawnLocationTEST.Enabled = true
	workspace.SpawnLocationLobby.Enabled = globalSettings.forceSpawnInTheLobby
	workspace.SpawnLocationHouse.Enabled = false -- change this to globalSettings.forceSpawnInTheLobby and the line below to false to spawn near the house
	workspace.SpawnLocation.Enabled = not globalSettings.forceSpawnInTheLobby
end

