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
