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

Fire Problems. Any Help?

Asked by 9 years ago

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?

0
So, if you want to keep your colors then do: 236/255, 139/255 and 70/255 for the first one. Mystdar 352 — 9y

2 answers

Log in to vote
0
Answered by
Tesouro 407 Moderation Voter
9 years ago

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

Ad
Log in to vote
0
Answered by
Redbullusa 1580 Moderation Voter
9 years ago

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.

Answer this question