This a another project i am working in right now, what i am trying to make is i want to change a Point light to high if the sound loudness is high if the sound loudness is low the brightness of the point light goes low as well. So is there a way i can do that?
you can use Audio.Playbackloudness to make this. just make a script that makes the pointlight the same audio playbackloudness / 10 or other number
I don’t know how Audio.Playbackloudness works but i will check it out
I dont know why its not working but i tried this:
basicly it changes the size of the part with the sound loudness.
It works when i run it but it wont work when i Play.
I might be wrong but I think only the client can read the playbackloudness?
Are you testing it by pressing the green arrow button right next to the sound’s preview property?
If you’re doing that, and you’ve started the test in play mode, the script wouldn’t function because you’d be interacting from the client. That would be filtered out and the sound would remain unplayed on the server, hence the script not working.
Here’s the script for it. (Put it in a LocalScript in StarterGui)
RunService = game:GetService("RunService")
local Audio -- Your code here
RunService.RenderStepped:connect(function()
game.Lighting.Ambient = Color3.fromRGB(Audio.PlaybackLoudness/3.9,Audio.PlaybackLoudness/3.9,Audio.PlaybackLoudness/3.9)
end)