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

How do I get that my brick changes to an random color with an playbackloudness?

I am trying to make the playbackloudness brick color change but I can't find it anywhere, please help :D

7 comments

0

You see, if i write a SCRIPT for you, it means that i have broke the rules, so, give me an example of your own work.

0

Then don't answer the question. It's really simple.

0

Give us your attempt, and we'll help you with it please do not request scripts

0

I have already made an example in RS ( Roblox Studio )

0

so if i write a script for him is breaking rules?

0

Just take the question down already...

0

Yes, Realdava, he didn't give an example of his own work, you can help him, but you are not allowed to write a script for him

1 answer

✓ Accepted answer

Simply update the color in a while loop according to how loud the sound currently is. The problem though, is only a LocalScript is allowed to access the PlaybackLoudness property of a sound, but it can't change the brick unless it is associated with the player in some way. The link I'll post shows a good example of this, but it uses PlaybackLoudness to change the size of the brick rather than the color, which should be fairly easy to modify. Just make sure you use

Color3.fromRGB()

to create a new color instead of

Color3.new()

https://developer.roblox.com/api-reference/property/Sound/PlaybackLoudness

3 comments

0

Thanks, I will look into it

0

Np!

0

I recommend you to use a ModuleScript, since you could make different functions and require() them on a SCRIPT or a LOCALSCRIPT

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