I wanted to make my character stay on the last keyframe when it finished playing the animation but cant find a way to do that. I see that you can adjust speed to 0 but idk how to implement it only on the last frame... and I dont think that is the best way to get what I want.
local humanoid = script.Parent:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local walk = animator:LoadAnimation(script:WaitForChild("Walk"))
local sit = animator:LoadAnimation(script:WaitForChild("Sit"))
local loaf = animator:LoadAnimation(script:WaitForChild("Sit to Loaf"))
sit:Play()