Hi,
I've basically just made a script that changes the color of lights when you click a switch.
There are two lights and one button. I'd play solo and it would all work fine, but then i'd play solo again just to make sure and all the lights would go haywire. It seems that every other time I play solo the scripts act up. Is that a problem on my end? If it is, i'll link a script in. -iaviate
-edit-
Script: every light has this script:
local screen = script.Parent.Parent.Parent.LYTE.Screen
local color = script.Parent
function onClicked()
if screen.BrickColor == BrickColor.Blue() then color.BrickColor = BrickColor.Blue()
script.Parent.PointLight.Enabled = true
script.Parent.PointLight.Color=Color3.new (46/225, 43/225, 149/225) -- Blue
elseif screen.BrickColor == BrickColor.Green() then color.BrickColor = BrickColor.Green()
script.Parent.PointLight.Enabled = true
script.Parent.PointLight.Color=Color3.new (34/225, 97/225, 25/225) -- Green
elseif screen.BrickColor == BrickColor.Red() then color.BrickColor = BrickColor.Red()
script.Parent.PointLight.Enabled = true
script.Parent.PointLight.Color=Color3.new (207/225, 11/225, 0/225) -- Red
elseif screen.BrickColor == BrickColor.Yellow() then color.BrickColor = BrickColor.Yellow()
script.Parent.PointLight.Enabled = true
script.Parent.PointLight.Color=Color3.new (236/225, 189/225, 34/225) -- Yellow
elseif screen.BrickColor == BrickColor.White() then color.BrickColor = BrickColor.White()
script.Parent.PointLight.Enabled = true
script.Parent.PointLight.Color=Color3.new (255/225,255/225, 255/225) -- White
elseif screen.BrickColor == BrickColor.Black() then color.BrickColor = BrickColor.Black()
script.Parent.PointLight.Enabled = false
end
end
screen.SurfaceGui.TextButton.MouseButton1Down:connect(onClicked)
The button (screen) has this:
local screen = script.Parent.Parent.Parent
function one()
if screen.BrickColor == BrickColor.Blue() then screen.BrickColor = BrickColor.Green()
elseif screen.BrickColor == BrickColor.Green() then screen.BrickColor = BrickColor.Red()
elseif screen.BrickColor == BrickColor.Red() then screen.BrickColor = BrickColor.Yellow()
elseif screen.BrickColor == BrickColor.Yellow() then screen.BrickColor = BrickColor.White()
elseif screen.BrickColor == BrickColor.White() then screen.BrickColor = BrickColor.Black()
elseif screen.BrickColor == BrickColor.Black() then screen.BrickColor = BrickColor.Blue() end
end
screen.SurfaceGui.TextButton.MouseButton1Down:connect(one)

2 comments
Include the script. As far as I know, ROBLOX doesn't have any bugs involving repeatedability, so you've most likely done something wrong.
Updated.