Hello all! Once again I am met with an obstacle, the fact that sounds do not have events…
I would link threads but I’m too tired so maybe later.
Download link:
SOUNDBOX
What is it useful for?
Soundbox allows you to visually add events to audios on Roblox, similar to Animation:GetMarkerReachedSignal.
Other than the technical explanation, soundbox can make musical games or even any game way more immersive, with on beat actions such as light effects or maybe even fire or explosions, adding events to your audio will most definitely add an extra level of detail.
What does it look like?
What does it export?
Simple: a table with the time stamps being the index and the value being a table containing.
How do I actually put this to use…
Well it all depends on how you want to handle sound events.
Example ( Data being the table the plugin outputs ) :
Audio:Play();
local Indexed = {};
game["Run Service"].Heartbeat:Connect(function()
for i,v in pairs(Data) do
if not table.find(Indexed, i) then
if Audio.TimePosition >= i then
print'Reached marker'
table.insert(Indexed, i);
end
end
end
end)
All the plugin does is make the creation of stamp tables easier… it won’t do the event code for you.
Hopefully this helps someone! report any bugs in DMs…