Color3value.R printing as 1 even thought it should be 255?
Hi all.
I'm making a lighting system of sorts, and I wanna send a preset colour (or one entered into a text box to to the server to tween all the lights to the corresponding colour, but sending the remotes is the hard part because I can't just send raw color3values through because they'll be split into 3 parts and I'm too lazy to fiddle with string.split stuff I decided to use Color3Value.R / Color3Value.G / etc for my remote system, this is the client side code;
1 | local R = preset 1. Colour.Value.R |
2 | local G = preset 1. Colour.Value.G |
3 | local B = preset 1. Colour.Value.B |
6 | revent:FireServer(R,G,B) |
Whenever I run this code, it prints 1 instead of the actual colo3value.R (255)
The entire RGB value according to this system is 1,0,0
The server side is the only thing that functions correctly as it tweens all the lights to 1,0,0.
How can I fix this, or is there an alternative to this?