Right, I’m trying to make a light that looks like it’s short-circuiting but the code seems to stop after changing the part material, I’ve tried changing the colour with Color3 and BrickColor but they don’t seem to work and it just stops the entire script, if I use a local script it just gets stuck at the very start. I think it has got something to do with changing the part colour since that is where the script appears to stop. I may just be using the wrong type of script though.
To change the material and brickcolor, DO NOT use strings. Use Enums:
Instead of "Plastic", use Enum.Material.Plastic, and instead of lightp.Brickcolor.Name = "Smokey grey", just use lightp.Brickcolor = Brickcolor.new("Smokey grey"). Use intuition to do this for the other parts.
You can also see errors by going to View at the top, then find Output. Click on it to open output which shows you errors, which is probably why your script is stopping.