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

How to I rhyme the beat with the blur effect?

Asked by 4 years ago

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
0
Thats really hard to do ¯\_(?)_/¯ hasanchik 49 — 4y
0
That one might stun us all, saying idk the awnser ???? MrTrayLot 2 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

I am pretty sure that script is correct, make it is a local script and u put it in StarterGui, or StarterPack, or StarterPlayerScript

0
You might need to divide the beat to 10 since the playbackloudness is very high (100-300) might depend on the audio tho Nguyenlegiahung 1091 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

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
0
I would avoid using while true do, instead use RenderStepped or BindToRenderStep. brokenVectors 525 — 4y

Answer this question