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

Why is changing the color of the fire just make it white and not the correct color?

Asked by 5 years ago

For some reason when this script trys to change the color of the fire it does not change the fire to the correct color and just appears white when it should be going blue to red/orange.

local Fire = script.Parent

while true do
    Fire.Size = 15
    wait(3)
    Fire.Color = Color3.new(255, 147, 70)
    Fire.SecondaryColor = Color3.new(255, 147, 70)
    Fire.Size = 25
    wait(3)
    Fire.Size = 15
    Fire.Color = Color3.new(236, 139, 70)
    Fire.SecondaryColor = Color3.new(236, 139, 70)
end

1 answer

Log in to vote
1
Answered by
blockmask 374 Moderation Voter
5 years ago

This is because you're using Color3.new(), when you should be using Color3.fromRGB, Color3.new() only accepts numbers 0-1, 0 would make it black, 1 would make it white. So simply remove the Color3.new(), and change it to Color3.fromRGB().

Also, RGB means Red,Green, and Blue

Ad

Answer this question