Hello Devforum,
I’m trying to make a spotlight with changeable colors, and the ability to change it while it’s off so it can be “Prepared” for the next action.
The spotlight has a what I call “Lens” part which is the part that turns Neon when it’s on, however, this part changes color even while it’s off (Since in real life, it’s the light inside a spotlight that changes color, and not really the lens). I have tried searching the devforum for help, but didn’t find success.
My goal is to have a color change instantly whenever it’s on, but for it to wait with applying the color until the light is on, when the light is off.
This is my code right now:
SystemLocals.Color.Changed:Connect(function()
if SystemLocals.Enabled.Value == true then
script.Parent.Color = SystemLocals.Color.Value
else
-- well yeah this is really how far i've gotten...
end
end)
Any help is appreciated.
Cheers,
Herbertoes