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

Rank TextLabel doesn't change?

My script is

local int = game.Players.LocalPlayer.leaderstats:WaitForChild("level")
local textlabel = script.Parent
int.Changed:Connect(function()
if int.Value >= 0 and int.Value <= 4 then
	textlabel.Text = "Novice"
	if int.Value >= 5 and int.Value <= 9 then
		textlabel.Text = "Intermediate"
		if int.Value >= 10 and int.Value <= 14 then
			textlabel.Text = "Advanced"
			if int.Value >= 15 and int.Value <= 19 then
				textlabel.Text = "Skilled"
				if int.Value >= 20 and int.Value <= 25 then
					textlabel.Text = "Expert"
						if int.Value > 25 then
							textlabel.Text = "Professional"
						end
				end
				end
		end
	end
	end
end)

And there is no output error, but it doesn't change the text of the textlabel.

1 answer

✓ Accepted answer

Dont use if but elseif when writing if for the second time.

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