it’s simple, you can make a function that you can trigger every time you want your character to flip.
local animation = YOURFLIPANIMATION
local humanoid = Character:FindFirstChildOfClass("Humanoid")
local animator = humanoid:FindFirstChildOfClass("Animator")
local animationTrack = animator:LoadAnimation(animation)
local character = script.Parent