I have a intremission and round system and I'm trying to make it so when it is intermission, the player respawns in the spawn point called lobby, but if you are in the game, then you respawn in the spawn point Main. But I keep on spawning in lobby for some reason. I have my script in a loop that keeps on checking if my string value called status is Intermission or not.
game.Players.PlayerAdded:Connect(function(player)
local admin = game.ReplicatedStorage.Status.Value
while true do
if admin == "Intermission" then
player.RespawnLocation = game.Workspace.Lobby
else
player.RespawnLocation = game.Workspace.Main
end
wait(0.5)
end
end)
Please help!!!

9 comments
Isn't that the same thing???
i dont see the difference
admin.Value instead of admin
if admin.Value == "Intermission" then
yeah, but I had already done admin = game.ReplicatedStorage.Status.Value
So there isn't a difference in my mind. Did you test it?
you left ;-;
Your answer is great, but you did not explain what went wrong. I will cover that in my own answer.
But this script, broke my other script. The other script also uses the Status string value. How do i fix that