Fridge animation | help needed

hey devs, i need help with smth simple.

i am creating a fridge system for a personal project and i recently added an animation that plays after the user selects the item. while the animation players, i want the player to not be able to move for the duration of the animation. how would i do that?

2 Likes

By detecting the animation when playing

https://developer.roblox.com/en-us/api-reference/property/AnimationTrack/IsPlaying

and setting the player’s walkspeed to 0 so that they’re unable to move
if you want the player to move back when the animation finishes you can use the stopped event