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

Script to measure sound volume and change part color?

Asked by 5 years ago

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!

0
I know, but I mean like the current volume, like you would use in a visualiser. Dylan011444 59 — 5y
0
you could also incorporate Color3:lerp into it theking48989987 2147 — 5y
0
ROBLOX Sounds have a PlaybackLoudness property that indicates how loud a sound is playing back at the instance it was read. Rheines 661 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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...

Ad

Answer this question