Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is the material not changing based on the playbackloudness?

Asked by 4 years ago

For some reason this is not working, I already felt that before but can someone please help me with this, thanks for looking -JustSxript

Script in part (LocalScript)

local sound = workspace:WaitForChild("Sound")
local Fire = script.Parent

sound:GetPropertyChangedSignal("PlaybackLoudness"):Connect(function()
    local PlaybackLoudness = sound.PlaybackLoudness

    Fire.Material = "Plastic" - (PlaybackLoudness / "Neon")
end)

Answer this question