Please help my push up animation is not rotating

my code:

local animation = script:WaitForChild("Animation")
local humanoid = script.Parent:FindFirstChild("Humanoid")
local animTrack = humanoid.Animator:LoadAnimation(animation)

debounce = nil

game.Workspace.Part.Touched:Connect(function(hit)
	local player = game.Players:GetPlayerFromCharacter(hit.Parent)
	if player and debounce == nil then
		debounce = true
		animTrack:Play()
		wait(1)
		debounce = nil
	end
end)

simply set the animation priority to a higher one then try again, id recommend using the highest priority
image

2 Likes

Yeah, this code would probably fix it

local animTrack = humanoid.Animator:LoadAnimation(animation)
animTrack.Priority = Enum.AnimationPriority.Action4
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.