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

Particle color not changing?

Asked by
aem92 10
5 years ago
Edited 5 years ago
local sequence = ColorSequence.new(Color3.new(119, 255, 203), Color3.new(7, 102, 161))
ice.Color = sequence

Googled about this, used the answer question and the C3 is still plain white after I press play.

2 answers

Log in to vote
0
Answered by 5 years ago

This is because Color3.new() takes numbers between 0 and 1, so it would have to be:

Color3.new(119/255, 255/255, 203/255), Color3.new(7/255, 102/255, 161/255)

But dividing every number by 255 just to get the colour is really inefficient and inconvenient. This is an easier method:

Color3.fromRGB(119, 255, 203), Color3.fromRGB(7, 102, 161)

Hope this helps.

1
THX!!!!!! aem92 10 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

Make 2 separate variables for each Color3.new. I tried this in studio and online and this works!

local color1 = Color3.fromRGB(119, 255, 203)
local color2 = Color3.fromRGB(7, 102, 161)
ice.Color = ColorSequence.new(color1,color2)

Answer this question