Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

PointLight Color from a Value?

A morph I'm working on needs to change the color of a pointlight to a specific color based on the class that the player chose. It's a single morph that players choose the color for, So I've been using a set of values to tell the script how to color the character. I've tried using a Color3Value but it bugs the light out, literally. I've tried multiplying the previous idea by 1/255 to fix that, but it gives me a "performed arithmetic on userdata" error. I've tried using a StringValue like a color3, no dice.

PointLight.Color = Color3.new(Color3Value.Value) -- Color3Value is just a placeholder name

1 answer

✓ Accepted answer

Remove the Color3.new. It is probably causing the error.

PointLight.Color = Color3Value.Value -- Color3Value is just a placeholder name

If I helped please set me as the answer and vote me up. Thank you for reading.

2 comments

0

Hey, that worked, derp... sometimes the simplest ways are best. Thanks!

0

No problem!

This discussion is preserved as it was. New answers, comments, and votes are closed.