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

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

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

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

2 comments

0

as a local script? also would this be in a script already made or a new one

0

any of the above

This discussion is preserved as it was. New answers, comments, and votes are closed.