I know lots of posts have answers to this but none of them work for me. I need to change my tools stance animation to a custom one, and I dont know how.
When you mean be “Tool’s default animation”, do you mean by changing the player’s idle animation when they are holding a tool?
Yep, normally it is just them holding out the tool, I want to change that. Also I need it so Every tool can have their own animation.
It’s quite simple actually! There are multiple ways to do that although I do it like this:
- Insert a tool.
- Insert a local script and an animation inside.
- Write the following:
local Tool = script.Parent
local Anim = Tool:WaitForChild("Anim") --The animation inside of your tool. if the animation has a different name, replace Anim with the anim's name
--//Plr and Hum
local Player = game:GetService("Players").LocalPlayer
local Char = Player.Character or Player.CharacterAdded:Wait()
local Hum = Char:WaitForChild("Humanoid")
--//Func
Tool.Equipped:Connect(function()
local IdleAnim = Hum:WaitForChild("Animator"):LoadAnimation(Anim)
IdleAnim:Play()
Tool.Unequipped:Connect(function()
IdleAnim:Stop()
end)
end)
Not going to lie however, this might be bad practice but it still works overall.
Will the animation not have to be lopped? Edit: And if it is how do I stop it properly because ik looped animation dont stop properly sometimes.
- No, the idle animation for the tool has to be looped.
- The script I provided should always stop the looped animation.
That is so weird, having some sort of Mandela effect cus I swear that it was different back then for me lol. It worked, thanks!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.