so I'm making a game where you can toggle on/off name tags, I made a script to change the on/off button color when you press it, it works fine but when you press it once and press it again, the color I want won't show up. Heres the script:
local On = SettingButton.SettingBackground.NameTags.OnOff lol = true SettingButton.SettingBackground.NameTags.OnOff.MouseButton1Click:connect(function() if lol == true then lol = false On.BackgroundColor3 = Color3.new(255,0,0) On.Text = ('Off') else if lol == false then lol = true On.BackgroundColor3 = Color3.new(26,163,10) On.Text = ('On') end end end)

2 comments
:( nooooooooooooooooooooo my biggest enemy, NO CODE BLOCKS!
Put this in a code block please.