Is there any way I can re-use this script to make it so that particles change colors instead of a brick?
b = script.Parent
x = 0
while true do
b.Color = Color3.fromHSV(x,1,1)
x = x + 2/255
if x >=1 then
x=0
end
wait()
end
Is there any way I can re-use this script to make it so that particles change colors instead of a brick?
b = script.Parent
x = 0
while true do
b.Color = Color3.fromHSV(x,1,1)
x = x + 2/255
if x >=1 then
x=0
end
wait()
end
https://developer.roblox.com/en-us/api-reference/property/ParticleEmitter/Color
The “Color” property of ParticleEmitter instances is described by a ColorSequence value not a Color3 value, so no.
local emitter = script.Parent
local x = 0
while task.wait() do
emitter.Color = ColorSequence.new(Color3.new(x/255, 0, 0))
x = if x > 255 then 0 else x + 1
end
This works when placed inside the “ParticleEmitter instance”.
I suggest NOT to do it by script at all, it’s heavy and not needed.
Instead - make the base image of the particle you’re using white - and use the color sequence property on the particle emitter. Add all the colors you want there - and the colors will automatically change in the order you decided.
I understand this, but the way I want it is for all of them to be one color shift.
If I did make all the particles used to shift colors, they would have different colors.
But the way I want it is for all of them to be the same color and all shift at the same time.
The script provided here didn’t work, but I used the main script I provided and added your “ColorSequence.new” in front of Color3.
But I still consider this a solution.
Thanks!
That script does work, I tested it beforehand.
https://gyazo.com/aa3d5476c008745198767cef644b554a
You must’ve done something wrong on your end.