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

The PlaybackLoudness is 0?

I am trying to make a subwoofer for my game but while I test it the woofer doesn't move it just stays at "0". The model is in workspace and the constraint is a slider servo, worked well when I clicked "Run" instead of "Play". Heres the script:

while wait() do
	script.Parent.CylindricalConstraint.TargetPosition = "0." ..    (math.floor(script.Parent.Sound.PlaybackLoudness)/15) --The value is = 0
end

I've also tried printing it but came out as 0. Any ideas?

6 comments

0

playback loundness only works in localscript

0

@royaltoe I tired localscript in the model too. Didn't work :(

0

any errors?

0

@royaltoe no. No errors at all. Value for loudness is 0.

0

doesn't / mean divide?

0

yes

1 answer

Probably the Playbackloudness is nil, maybe the sound was banned in Roblox. Or don't need to use math.floor? Just make the playbackloudness divides to the 15 and probably it might work.

Or the output only prints about integer? I don't know, it was probably a bug.

1 comment

0

There's no problems with that because I tested it by clicking "Run" and it worked as I wanted it to. But when I test it in game the loudness prints 0.

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