For some reason I can't play animations on the character and it is not displaying any errors in output. For something so simple, it is really frustrating me that I can't get it to work. The script is placed in StarterCharacterScripts and does have an animation object that it refers to in the code(Uppercut). The issue is that the animation does not play. Thanks in advance. Here is the code:
local hum = script.Parent:WaitForChild("Humanoid")
local animation = script:WaitForChild("Uppercut")
local animator = hum:WaitForChild("Animator")
print(animator)
local track = animator:LoadAnimation(animation)
track.Looped = true
print(track.Looped)
track:Play()
** You are now Level 1! **