Script to change part color not working

local startColor = Color3.new(1, 0.00936904, 0)

This comes out as red.

Anyways I’m heading to bed, I hope you can either use what I applied for you or find some more help, best of luck man!

Yeah I don’t understand why you’re trying to get such small numbers when the color pallet only goes from (0,0,0) to (255,255,255) I believe but could def be wrong.

I think that’s for ColorSequence

Btw your start color would need to be called to a part still as it doesn’t define anything else but the color

It’s called startColor because it is used in another value to change the part, cause it’s used in an animation, not a direct color change.

There are so many wrong things in here.

Your x y and z math.random variables are defied once, thus they are constant.

You are trying to get lightAnimations[light], when i suppose light variable is an instance. Instead use table.find()

From what i understand, you are trying to make rainbow led lights. But in script i see that tween that changes color is only used one so it will only change color once (unless you are firing change color event in a loop?)

This is what the code does normally, with a single color.

Not sure what it needs for it to be rainbow or just changing.

Ok, i am sorry. I did not understand what you were trying to make. It seems to me that it works fine. After all, what is the problem? Or did you fix it?

In the video it’s red, but I want it to be constantly changing, like a rainbow, if possible.

But I tried to do that, and it would stay black when I press a key, so I’m not sure how to do it.

You could have really just simplified the script to what I said and it would work the way u wanted