I wanna make some lighting effects that go to the beat of a song. Like upping the brightness of a light or something. Is there any way to do something like this?
I do NOT want someone to make this script for me, please just point me to where I’d start. Thanks!
as a side note, i am decently versed in scripting.
You can’t get the beat of the song but you can use Sound.PlaybackLoudness
Example
local function GetGameSound()
local Volume = 0
for i, Object in pairs(game:GetDescendants()) do
if Object:IsA("Sound") then
Volume += Object.PlaybackLoudness
end
end
return Volume
end
while task.wait() do
print(GetGameSound())
end
If you’re using a specific song, you can probably set up a timed loop that sends signals in sync with the beat of the song, then pulse the light every time the signal is fired.