local s = workspace:WaitForChild("Sound") while game:GetService("RunService").Heartbeat:Wait() do print(s.PlaybackLoudness) script.Parent.Transparency = 1-((1/150)*s.PlaybackLoudness) end
Keep in mind this works in studio but in the actual game it doesn't work. I feel like it has something to do with the fact I have filteringenabled
use game.Workspace
Make sure this is a Local Script. Server scripts cannot utilize .Heartbeat.