I’ve been trying to animate the player when they hide under a table for days now, but every time the animation plays, it plays halfway, then reverses, and then ends right where it started.
This is my current (relevant) code.
-- Animate the player
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://16845753534"
local humanoid = plr.Character:FindFirstChild("Humanoid")
humanoid.Animator.Looping = false
local loadAnim = humanoid.Animator:LoadAnimation(anim)
loadAnim:Play()
This is running in a server script.
Any ideas?