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

Change ParticleEmitter color with PlaybackLoudness?

Asked by
OmqKinq -3
6 years ago

If anyone knows how to do that mind helping me?

For example if PlaybackLoudness gets to a point 500, then ParticleEmitter changes to color from a list of colors (1-5) from color 1 to 5. Thanks! :=)

1 answer

Log in to vote
0
Answered by
xEiffel 280 Moderation Voter
6 years ago

I think you'll need to use the sound PlaybackLoudness variable and Greater than, and an Equal Sign. You'll need to fill in the inline code parts with the particle emitter variable (Where it's located), same with the sound variable. You can change the Color it displays and the playback loudness value.

if --[[SOUND--]].PlaybackLoudness >= 500 then
--[[PARTICLE EMITTER--]].Color = BrickColor.new("Lime green").Color
end

Hope this helped!

Ad

Answer this question