local tool = script.Parent local anim = tool:WaitForChild("animation") local player = game:GetService("Players").LocalPlayer local char = player.CharacterAdded:Wait() local humanoid = char:WaitForChild("Humanoid") local loadanim = humanoid:LoadAnimation(anim)
tool.Activated:Connect(function() loadanim:Play() end)
I already have the animation on the tool with the id

1 comment
Oh my bad, how do i format the script? And the script works with only animations that are not the hand of the tool, by this I mean that when it is another hand that isnt the one holding the tool it works if it is another it doesnt work.