Animation not playing

I made a game under a group. I also made an animation, also under the group. I own this group, so the animation should play. The thing is, it doesn’t. I scripted everything right, when I use another animation (one by Roblox) it works. Here is the script:

script.Parent.RequiresHandle = false
anim = script:WaitForChild("punch")
char = game.Players.LocalPlayer.Character

script.Parent.Activated:Connect(function()
	print("punch")
	local a = game.Players.LocalPlayer.Character.Humanoid.Animator:LoadAnimation(anim)
	a.Priority = Enum.AnimationPriority.Action
	a:Play()
	a.Ended:Wait()
	print("executed")
end)

Its obviously something with the animation. I exported it properly, and exported it under the group, and myself. Someone help me.

2 Likes

bump ///////////////////////////