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

Why does my audio visualizer only work on run but not play in roblox studio?

Hello, I want to know why when I click play, the audio visualizer is not working but when I'm on the run which I think is server, it works.

Here's the code I have:

while true do 
	wait()
	local Sound = game.Workspace.Sound.PlaybackLoudness
	script.Parent.Size = Vector3.new(Sound / 100, Sound / 100, Sound / 100)
end

The script is a script in game.Workspace.Part.

Thanks for helping.

1 answer

✓ Accepted answer

All you need to do is turn that script to Local Script and put it in StarterGui And you need to do the variable again if needed Hope it helped ! Here is a article if you want to learn more about PlaybackLoudness

11 comments

0

It didn't work. I put the script in workspace. I'm going to try putting a local script in workspace.

0

Putting it in as local script didn't work either.

0

Hmm maybe try to put it in the ServerScriptService ?

0

I gonna open Studio and test it right now, hope I gonna find a solution

0

Alright, thanks!

0

somehow the script was working nicely in my Studio ? Make sure the sound is playing, the script is inside a part and the script is not disabled

0

Did you run or did you play?

0

Oh sorry i was Runing stupid me :d

0

It's okay. ;)

0

Ok i found out the solution by researching

0

Alright.

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