So basically I want to sync the beat with the size of the blur effect(Making sure it's obvious with the beat)
beat = game.Workspace.Sound.PlaybackLoudness
while true do
game.Lighting.Blur.Size = beat
wait(.1)
end
So basically I want to sync the beat with the size of the blur effect(Making sure it's obvious with the beat)
beat = game.Workspace.Sound.PlaybackLoudness
while true do
game.Lighting.Blur.Size = beat
wait(.1)
end
I am pretty sure that script is correct, make it is a local script and u put it in StarterGui, or StarterPack, or StarterPlayerScript
You might need to divide the beat to 10 since the playbackloudness is very high (100-300) might depend on the audio tho
The problem is that you're referencing what the PlaybackLoudness was when the script first ran. You should instead update it each time it is needed again (when the blur is set).
local beat
while true do
beat = game.Workspace.Sound.PlaybackLoudness
game.Lighting.Blur.Size = beat
wait(.1)
end
I would avoid using while true do, instead use RenderStepped or BindToRenderStep.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Thats really hard to do ¯_(?)_/¯
That one might stun us all, saying idk the awnser ????