#GUI button does not change color when clicked
6 messages · Page 1 of 1 (latest)
Like the path to the button is correct?
Also @summer wind . += doesnt work this lua.
local var = 1
script.Parent.MouseButton1Click:Connect(function(clicked)
local player = game.Players.LocalPlayer
var = var + 1
if var % 2 == 0 then
game.Lighting.Bloom.Enabled = false
else
game.Lighting.Bloom.Enabled = true
end
if game.Lighting.Bloom.Enabled then
player.PlayerGui.mainmenu.settings.bloomonoff.bloombutton.ImageColor3 = Color3.fromRGB(0, 255, 0)
else
player.PlayerGui.mainmenu.settings.bloomonoff.bloombutton.ImageColor3 = Color3.fromRGB(255, 0, 0)
end
end)
here is fixed code
is the path to the button correct?