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

How do I script a songs beat to a brick to?

Asked by 5 years ago

Like if I were to play a song, as the beat hits a certain point the brick changes color

1 answer

Log in to vote
1
Answered by 5 years ago

You can probably set up timing. Something like this:

local brick = script.Parent


function brickChange(time)
    wait (time)
    brick.BrickColor -- whatever the parameter is (brick color name whatever)
end


while true do
    brickChange() -- insert time inside there
end

this might not work, but you have to just tweak it. I don't think there is a way to detect bass in a song inside of Roblox.

Ad

Answer this question