Local Audio is paused when the client freezes

Hello, I am making a game that has an animation with a sound(song) attached to it. If a player freezes, the sound is paused but the animation still plays. Both the animation and sound are locally played/made. Is there anyway to fix this?

I want the animation to match with the sound, not the other way around.

Freezes - The client opens up their accessibility tools on mobile. (There might be other ways to freeze on other devices)
Example:

Game link if you want to try it out
Game

Edit: I already know this is “normal behavior”. I just want to know how to workaround it!

isn’t this normal behavior?

I need more information like a script and a more clear definition of what you mean by freeze

This is from my friend,
When he(the client) opens his phone’s menu, the audio starts to stop connecting with the animation

The script is basically just
Animation:Play()
Sound:Play()

The post was to ask if there’s a way to stop it or workaround

By your reply, it’s the same thing as this:

Someone: “Hey guys I need some help, there’s an error that says “Unable to cast value to object”. How do I fix the error?”

You: “Isn’t this normal behavior?”

I didn’t mean that to be rude, I just didn’t know how else to explain it.

It is normal behaivour, add keyframes for when the sound should to fix de-syncing issues, other than that I dont know of any ways to fix this

It is all one audio. The animation is around 30 seconds long. Would it work?

You could split the audio using audacity/other audio tools

This does seem to look like normal behavior. From what I know, the only workaround to this problem would be to have a loop run every few seconds, and if the audio’s TimePosition is too far off, just re-sync it to the animation.

I feel like TimePosition is glitching too. The game uses two animations and the second animation plays at a specific timestamp of the sound. When the sound de syncs, the second animation still plays at the timestamp as if the sound was still synced.

Here is the game link if you want to try it out
Game

I still need help with this. Someone help or I will scratch the skin off my back

meowwwwwwwwwwwwwwwwwwwwwwwwwwwwww!

@PeculiarMei
There’s this though.

again, this is a roblox intended feature for whatever reason? bit weird imo. you can still use keyframes to know when to do what. best solution i can think of rn

I want to match the animation with the sound. Not the other way around

you’re out of options then afaik

1 Like

image

1 Like

is there a reason it needs to be synced with the audio?

Yeah, it’s just a lot more easier that way. Especially for my upcoming projects too.

Why’s it easier?

char limitttttttt