Hey there, I am having a problem with if statements, short answer my else does not work, long answer

	for i = 20,0,-1 do
		if script.Parent.Parent.Count.Value ~= 0 then
			script.Parent.Parent.Text2.SurfaceGui.SIGN.Text = i
			wait(1)
		elseif script.Parent.Parent.Count.Value == 0 then
			script.Parent.Parent.Text2.SurfaceGui.SIGN.Text = "Waiting for players..."
			break
		end
	end
	script.Parent.Parent.Text2.SurfaceGui.SIGN.Text = "Waiting for players..." -- reseting the system and teleporting the player to another game

This script should trigger the else statement when the Count.Value = 0, but it doesnt trigger the else statement even if the Count.Value is set to 0 can anyone help me please?

1 comment

0

You're not being specific. Where is it placed? Send screenshots if possible, did you use prints? And post more of a descriptive question. Please read the community guidelines for help. This question will be closed.