=Overview=
Plays an animation(regular script, place is fe)
=Problem=
Works in studio but not when played
=Script=
local animation = Instance.new("Animation")
animation.AnimationId = 'rbxassetid://616005223'
animTrack = Character:WaitForChild('Humanoid'):LoadAnimation(animation)
animTrack:Play()

2 comments
You don't define Character.
that isnt the full script