Currently making a game and I want a script to wait before there are at least 4 players before it begins the round.
round = false
local hint = Instance.new("Hint")
while round == false do
if script.Parent.val.Value < 5 then
hint.Parent = game.Workspace
hint.Text = "Waiting for Players"
else
hint.Parent = game.Workspace
hint.Text = "Game Will Begin Shortly"
round = true
end
end
val is the name of the value which contains the playercount number, it's working fine, whenever I change the intvalue to a number over 5, the script works and the game begins, however, when I try changing the intvalue during the game, It gets stuck on the "Waiting for Players" part.

1 comment
when u directly change it from properties in explorer it doesn't register