#Can't play animations on player character:

1 messages · Page 1 of 1 (latest)

vague owl
#

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()
upbeat lynx
#

Maybe set animation.Priority

#

show ur error log

#

@vague owl

vague owl
#

Animation priority is not the issue

#

Also there are no errors

#

I tried this script aswell, which sets the priority to 4:

local hum = script.Parent:WaitForChild("Humanoid")
local animation = script:WaitForChild("Uppercut")
local animator = hum:WaitForChild("Animator")
print(animator)
local track = animator:LoadAnimation(animation)
track.Priority = Enum.AnimationPriority.Action4 -- Priority set here
print(track.Priority)

track.Looped = true
print(track.Looped)
track:Play()
upbeat lynx
#

show me ur directory in rblx studio

#

idk maybe its the anim itself?

vague owl
#

sry one sec lightshot is buggin out

vague owl
upbeat lynx
#

Oh

#

ok

vague owl
#

Check dms I sent the hierarchy

next driftBOT
#

studio** You are now Level 1! **studio