kreader.ClickDetector.MouseClick:Connect(function(player)
	
	if player.Backpack.L1 or player.Backpack.L2 or player.Backpack.L3 then
		light.BrickColor = BrickColor.new("Lime green")
		wait(1)
		light.BrickColor = BrickColor.new("Lily white")
	
	end
	if player.Backpack.L2 then
		light.BrickColor = BrickColor.new("Lime green")
		wait(1)
		light.BrickColor = BrickColor.new("Lily white")
	
	end
	if player.Backpack.L3 then
		light.BrickColor = BrickColor.new("Lime green")
		wait(1)
		light.BrickColor = BrickColor.new("Lily white")
	
	end
	light.BrickColor = BrickColor.new("Bright red")
	wait(1)
	light.BrickColor = BrickColor.new("Lily white")
end)

2 comments

0

Please don't comment about spaces I know they are cancer lol

0

instead of using 'end', try using 'else if' on line 8 and 14