Im trying to make a brick change the color is the playbackloudness is on a specific number but i keep getting this error:
Workspace.Part.Script:2: attempt to call a userdata value
The script is (its all written in a normal script):
if workspace.Sound.IsPlaying then
script.Parent.BrickColor = BrickColor.Random()((workspace.Sound.PlaybackLoudness/1000)*5)
end
Thank you for reading. -Jamielelystad

1 comment
well, here is a thing to put in consideration... for some reason when you ready sound.PlaybackLoudness from a server script, it returns 0.. but it should return correct value if u read it from client