I'm making a sword, and I want it so that when you equip the tool and click it swings the sword through the animation i made. Why wont it work?
tool = script.Parent
local char = script.Parent.Parent.Parent.Character
tool.Activated:connect(function()
local char = tool.Parent
local hum = char.Humanoid
hum:LoadAnimation(script.Parent.Animation):Play()
end)

3 comments
thanks! How do I make the animation faster?
By changing the time
Animation Editor