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

Light color is correct, but the part color is not. Help?

Asked by 6 years ago
while true do
    wait(0.1)
    script.Parent.Color = game.ServerStorage.LightColor.Value
    script.Parent.LightM.Color = game.ServerStorage.LightColor.Value
end

This script above changes the PointLight (LightM)'s color but also changes the part's color. For some reason, if I change the LightColor's value to a number like (255, 0, 0). The PointLight's color changes to that number but the part's color instead uses the value of (1, 0, 0) what is happening?

0
I tired it and it worked perfectly? INOOBE_YT 387 — 6y
0
Couldn't figure it out. JarFullOfMayonnaise 48 — 6y
0
The thing is that the value 255,0,0 is RGB or red,blue and green and 1,0,0 is in Color3 form since Color3's are floats and they range from 0 to 1 saSlol2436 716 — 6y
0
To convert RGB to Color3 you would divide the each of the Color3 values by 255 to get Color3 values and if you wanted to convert Color3 to RGB you would multiply the Color3 values by 255 saSlol2436 716 — 6y

Answer this question