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

Script to measure sound volume and change part color?

Herrow!

Sorry... I don't have any script to start with, because I really don't know how to do it...

So... I wanted to measure the volume of a sound in a specific part, and change the color of a part, depending on the loudness.

So... the starting color of the brick is black, and the louder the sound is, the greener the part gets.

Does anyone know how I should do this? Thanks a lot already!

4 comments

0

I know, but I mean like the current volume, like you would use in a visualiser.

0

you could also incorporate Color3:lerp into it

0

ROBLOX Sounds have a PlaybackLoudness property that indicates how loud a sound is playing back at the instance it was read.

1 answer

Here's a little helping hand, if it means anything.

part = Instance.new("Part")
part.Parent = game.Workspace

sound = Instance.new("Sound")
sound.Parent = game.Workspace
sound.Name = Music

Volume = Instance.new("NumberValue")
Volume.Parent = sound

Volume.Value = 

I'll get back to this after figuring it out...

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