Hey ya, so there are visual effects and sounds that I want to play during a certain threshold through animation tracks that replicates to all clients without the use of RemoteEvents, checks within the server or creating/using animation tracks from the server
Right now the way I handle it is by simply making a thread to not yield the function for what I want to do, I really do not like this method at all and it makes it difficult to get the right time of the animation tracks to get the effects you want more accurately, also this is just bad practice..
If anyone knows a workaround for this then it’d be VERY appreciated, I know that a fully safe way to do this is not possible but I’d like the one that wouldn’t put too much work on the server.
There is no work around for this, unless you load and play the animation on the server and setup the animation event stuff there. (and fire remote events to all clients when the marker is reached) Usually people do it the way you’re doing, or setup a system where when a marker is reached on the client, it sends a remote event to the server and then the server sends the event to everyone else except the original client playing the animation.
The best approach if you don’t want to use Remotes imo, you can also just play the sound and effects on the server if you are on the server-side already
That sounds like you are trying to sabotage/create vulnerability in someone’s project by enabling property that would let exploiters play any sound they want.
The animation events are part of the Animation though no? So if the server waited for a specific event he would also receive it once the animation reaches that point