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

Whats wrong with my unlock notification?

Gui have to shows up when player have level 4 or 11 or... But something is wrong? Can someone help me?

wait(5)
player = player.parent.parent.parent
unlock = player.leaderstats.Level

while true do
	wait(0.5)
	if unlock.Value == 4 then
		script.Parent.GuiUnlock.Visible = true
		wait(2)
		script.Parent.GuiUnlock.Visible = false
	elseif unlock.Value == 11 then
		script.Parent.GuiUnlock.Visible = true
		wait(2)
		script.Parent.GuiUnlock.Visible = false
	elseif unlock.Value == 25 then
		script.Parent.GuiUnlock.Visible = true
		wait(2)
		script.Parent.GuiUnlock.Visible = false
	elseif unlock.Value == 35 then
		script.Parent.GuiUnlock.Visible = true
		wait(2)
		script.Parent.GuiUnlock.Visible = false
	end
end

1 answer

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