Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does it only read L1 and not the others? Can anyone help?

Asked by 5 years ago
01kreader.ClickDetector.MouseClick:Connect(function(player)
02 
03    if player.Backpack.L1 or player.Backpack.L2 or player.Backpack.L3 then
04        light.BrickColor = BrickColor.new("Lime green")
05        wait(1)
06        light.BrickColor = BrickColor.new("Lily white")
07 
08    end
09    if player.Backpack.L2 then
10        light.BrickColor = BrickColor.new("Lime green")
11        wait(1)
12        light.BrickColor = BrickColor.new("Lily white")
13 
14    end
15    if player.Backpack.L3 then
View all 24 lines...
0
Please don't comment about spaces I know they are cancer lol NicoXerocious 29 — 5y
0
instead of using 'end', try using 'else if' on line 8 and 14 Tyler090130 619 — 5y

Answer this question