So i did this script for the tool im making to replace the Idle animation, the weird thing is, that the player animation gets frozen when its playing, its like a TPose, but the player isn't with the arms 90°, its like standing still in every single animation with the Tool Equipped.

the Animation Priority is Action, and it loops, i think the code got an error, does someone know what might be happening?

Tool = script.Parent
local jugador = game.Players.LocalPlayer
repeat wait() until jugador.Character ~= nil
local hum = jugador.Character:WaitForChild("Humanoid")

local animation = Tool.Idle
local AnimTrack = hum:LoadAnimation(animation) 

Tool.Equipped:connect(function()
		print("Working")
        AnimTrack:Play()
    end)

Tool.Unequipped:connect(function()
		print("Disabled")
    AnimTrack:Stop()
end)

3 comments

0

What language do you speak?

0

Spanish, im from Chile

0

No errors?