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

Beginner here. Need a script on playbackloudness to change a parts colour?

Asked by
vxsqi 5
3 years ago

Hello, I'm beginning to start scripting and I need help that changes a brick colour from blue to dark blue based off playbackloudness. I have my audios in a folder that runs from a loop script, which is also used for a music player gui.

1 answer

Log in to vote
0
Answered by
0hsa 193
3 years ago

idk if this would work but

while true do
    thing.BackgroundColor = Color3.fromHSV(0.6, math.clamp(sound.PlaybackLoudness / 400 --[[change this depending on how loud the audio is]], 0.3, 1), 1)
    game:GetService('RunService').Heartbeat:Wait()
end
0
as a local script? also would this be in a script already made or a new one vxsqi 5 — 2y
0
any of the above 0hsa 193 — 2y
Ad

Answer this question