Whats wrong with this? Unlock Gui shows up at 100 and will go to 250 after the value is between 101 and 200 but its now working..
wait(5)
sound=script.Parent.Sound
player = script.Parent.Parent.Parent
unlock = player.leaderstats.Tires
while true do
wait(0.5)
if unlock.Value == 100 then
script.Parent.GuiUnlock.Visible = true
sound:play()
wait(5)
script.Parent.GuiUnlock.Visible = false
repeat wait() until unlock.Value == 101 else 102 else 103 else 104 else 105 else 106 else 107 else 108 else 109 else 110 else 120 else 130 else 140 else 150 else 160 else 170 else 180 else 190 else 200
elseif unlock.Value == 250 then
script.Parent.GuiUnlock.Visible = true
sound:play()
wait(5)
script.Parent.GuiUnlock.Visible = false
repeat wait() until unlock.Value == 251 else 252 else 253 or 254 or 255 or 256 or 257 or 258 or 259 or 260 or 270 or 280 or 290 or 300 or 310 or 320 or 330 or 340 or 350
elseif unlock.Value == 500 then
script.Parent.GuiUnlock.Visible = true
sound:play()
wait(5)
script.Parent.GuiUnlock.Visible = false
repeat wait() until unlock.Value == 501 or 502 or 503 or 504 or 505 or 506 or 507 or 508 or 509 or 510 or 520 or 530 or 540 or 550 or 560 or 570 or 580 or 590 or 600
elseif unlock.Value == 700 then
script.Parent.GuiUnlock.Visible = true
sound:play()
wait(5)
script.Parent.GuiUnlock.Visible = false
repeat wait() until unlock.Value == 701 or 702 or 703 or 704 or 705 or 706 or 707 or 708 or 709 or 710 or 720 or 730 or 740 or 750 or 760 or 770 or 780 or 790 or 800
elseif unlock.Value == 1200 then
script.Parent.GuiUnlock.Visible = true
sound:play()
wait(5)
script.Parent.GuiUnlock.Visible = false
repeat wait() until unlock.Value == 1201 or 1202 or 1203 or 1204 or 1205 or 1206 or 1207 or 1208 or 1209 or 1210 or 1220 or 1230 or 1240 or 1250 or 1260 or 1270 or 1280 or 1290 or 1300
end
end

1 comment
wat?