Thankyou VerifiedName for the script. I have tried it - but the script crashes the main buttons on a SurfaceGui, this is not a problem - but it just crashes up the buttons. Sometimes, the script can crash the Dynamic Lighting for my disco lights which it can stay frozen (It doesn't change the colour).
So I am just wondering if anyone can put these two separate scripts into one main script, because I don't know if it needs changing or where it goes and etc...
So here is the two scripts.
This script controls the main buttons for the light.
function change()
for i = 1, 11 do
workspace:FindFirstChild("DynamicLight"..i).PointLight.ColorChange.Disabled = not workspace:FindFirstChild("DynamicLight"..i).PointLight.ColorChange.Disabled
if workspace:FindFirstChild("DynamicLight"..i).PointLight.ColorChange.Disabled == true then
script.Parent.Text = "Mode: Regular Mode"
else
script.Parent.Text = "Mode: Disco Mode"
end
end
end
script.Parent.MouseButton1Down:connect(change)
And this...
This script normally stays in the PointLight as a parent, but it crashes the whole thing. But this script controls the Color of the PointLight back to default white. When the other script is disabled which it's called "ColorChange", ColorChange is another script which it's in the PointLight as a parent.
if script.Parent.ColorChange.Disabled == true then
script.Parent.Color = Color3.new(255,255,255)
end
I know this can be hard, but expert scripters can figure it out!
1 comment
Anyone?