I have a script that changes fire colors but it becomes too bright
script.Parent.Effect.Fire.Color = Color3.new(236, 139, 70) script.Parent.Effect.Fire.SecondaryColor = Color3.new(139, 80, 55)
When I check the values in game I get things like [22950, 11475, 0]
I'm clueless, any help?
Color3 has three numbers: r, g and b. Till there you are okay, but these numbers are between 0 to 1, not 0 to 255. http://wiki.roblox.com/index.php?title=Color3
Try and divide your colors by 255. Here's what I mean:
script.Parent.Effect.Fire.Color = Color3.new(236/255, 139/255, 70/255) script.Parent.Effect.Fire.SecondaryColor = Color3.new(139/255, 80/255, 55/255)
This is because colors have 3 numbers that are between 0 and 1, not 0 and 255.
NOTE: I've tested this and it works.