Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to I rhyme the beat with the blur effect?

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

2 comments

0

Thats really hard to do ¯_(?)_/¯

0

That one might stun us all, saying idk the awnser ????

2 answers

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

1 comment

0

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

1 comment

0

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.