Help with my animation!

Hello everyone, I recently made a kick animation. In the game and in the animator editor, they look different, and I don’t know why. I need your help!

local gui = script.Parent.Parent
local button = gui.anim.TextButton

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local hitAnim = Instance.new("Animation")
hitAnim.AnimationId = "rbxassetid://121206676733104"
local hitTrack = humanoid:LoadAnimation(hitAnim)

button.MouseButton1Click:Connect(function()
	hitTrack:Play()
	print("Anim is started!")
end)
4 Likes

did you set the animation priority correctly?

1 Like

I agree with Alexis, prioritize the animation.
Just add this line:
hitAnim.Priority = Enum.AnimationPriority.Action
(I use a translator.)

try adding this line after creating hitTrack

hitTrack.Priority = Enum.AnimationPriority.Action

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