See the two brightness buttons at the top left corner? I need to make it so when you click the up arrow one it goes up one brightness per click and the same but one down in brightness for the down arror. Sorry if this seems complicated.
If you got some issue with my scripts, please let me know, i will try to fix it
local button = script.Parent
local Light = workspace.MYLED.YOUR_LIGHT
button.MouseButton1Click:Connect(function()
if Light.Brightness < MAX_BRIGHTNESS then
Light.Brightness = Light.Brightness + 1 --You can replace with - 1 at here.
end
end)
Basically, this would just cap out the property. You can change INCREMENT, MIN_BRIGHTNESS, or MAX_BRIGHTNESS to whatever you wish. If you want an example, here you go: