Why doesn't tool animation play even at the high priority?
01 | local Gun = script.Parent |
02 | local Hold = Gun:WaitForChild( "Hold" ) |
03 | local Sprint = Gun:WaitForChild( "Sprint" ) |
04 | local Reload = Gun:WaitForChild( "Reload" ) |
05 | local Crouch = Gun:WaitForChild( "Crouch" ) |
08 | Gun.Equipped:Connect( function (part) |
10 | local humanoid = Gun.Parent:WaitForChild( "Humanoid" ) |
11 | print (humanoid.Parent) |
13 | local HoldTrack = humanoid:LoadAnimation(Hold) |
14 | HoldTrack.Priority = Enum.AnimationPriority.Action |
16 | print (HoldTrack.Priority) |
Here, no errors are printed. I've tried to set priority to highest, and also checked with the last print in the function that it is set to Action. I'm trying to get Hold animation to play while the player is holding the tool. Help appreciated, thanks!