Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

PointLight Color from a Value?

Asked by 10 years ago

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

Log in to vote
0
Answered by
Gamenew09 180
10 years ago

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.

0
Hey, that worked, derp... sometimes the simplest ways are best. Thanks! deaththerapy 60 — 10y
0
No problem! Gamenew09 180 — 10y
Ad

Answer this question