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

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

Asked by 5 years ago
Edited 5 years ago

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

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. User#26986 0 — 5y
0
Then don't answer the question. It's really simple. DeceptiveCaster 3761 — 5y
0
Give us your attempt, and we'll help you with it please do not request scripts starmaq 1290 — 5y
0
I have already made an example in RS ( Roblox Studio ) User#26986 0 — 5y
View all comments (3 more)
0
so if i write a script for him is breaking rules? Realdava 2 — 5y
0
Just take the question down already... DeceptiveCaster 3761 — 5y
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 User#26986 0 — 5y

Closed as Not Constructive by DeceptiveCaster and zblox164

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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

0
Thanks, I will look into it jamielelystad 20 — 5y
0
Np! davidgingerich 603 — 5y
0
I recommend you to use a ModuleScript, since you could make different functions and require() them on a SCRIPT or a LOCALSCRIPT User#26986 0 — 5y
Ad