Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Fire Problems. Any Help?

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?

1 comment

0

So, if you want to keep your colors then do: 236/255, 139/255 and 70/255 for the first one.

2 answers

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.