I’ve changed the script a bit, not sure if that’s the problem. The script is inside a Script, inside ServerScriptService.
local Light = workspace.Office.Light.Bulb.SpotLight
local Sound = workspace.Office.Light.FlickeringLightSound
while wait(0.05) do
local currentLoudness = Sound.PlaybackLoudness
Light.Angle = currentLoudness
end
I did a print statement between the currnetLoudness and Light.Angle but it just kept saying the Loudness was 0.