|
| 10 Nov 2015 06:03 PM |
I could really use quick help with this. This is the script. while true do wait(1) for x = 10,0,-0.1 do wait(0.01) script.Parent.SurfaceLight.Color = script.Parent.SurfaceLight.Color + Color3.new(1,0,0) end for x = 10,0,-0.1 do wait(0.01) script.Parent.SurfaceLight.Color = script.Parent.SurfaceLight.Color - Color3.new(1,0,0) end end After testing it out extensively, I've come out stumped. Everytime I got this error on line 4. "attempt to perform arithmetic on field 'Color' (a userdata value)" It's really simple, but for some reason it wouldn't work no matter what I tried. |
|
|
| Report Abuse |
|
|
| 10 Nov 2015 06:05 PM |
Two issues:
Color3 is not like Vector3 - You can't add two Color3 values. You'd have to create a new Color3 from SurfaceLight.Color.R, SurfaceLight.Color.G, and SurfaceLight.Color.B
Secondly, Color3 is from 0 to 1, where 0 is 0 in RGB scale and 1 is 255 in RGB scale
"Jet Fuel Doesn't Melt Dank Memes" --xCMCxSCOOTALOOx |
|
|
| Report Abuse |
|
|
| 10 Nov 2015 06:17 PM |
I got a little lost there... can you show me an example? Thanks for trying at least! |
|
|
| Report Abuse |
|