This question is more about the idea than the implementation.
I want to make “global radio system”. Based on global value, function generates random seed to pick ID from list and play it.
Here are problems I need to solve and I need your help to do that:
- I can’t play music directly based on seed because random value changes every fixed period of time. Audio lenghts aren’t same, and that’s a problem
- I can use MessagingService, but for almost perfect sync I need to send messages every second (it doesn’t break roblox limits btw), so problem above is still needs to be solved
I really don’t know what can I do in this situtation.
You mean like a radio in a car?
and if yes, what is it for? It would just be bloat.
But if you REALLY want to do that maybe this or that could help:
Global radio would be one of main mechanics in my game. Thanks for these articles, I’ll check them later
If the global radio is for music then it’s not worth the time it would take
What if you used MessagingService to send the audio ID and a future start time (e.g., os.time() + 5 )? Each client would receive the message and simply wait until that exact moment to play. This would solve the variable length issue.
definitely not the audio ID, rather the index of the audio in a storage as that would be cheaper to send