Is there a better way of playing animations then what I have used below?
Animating tool for the player:
Inside of Tool is a Script with an Animation parented to it:
Script:
local Tool = script.Parent
local Handle = Tool.Handle
local ToolAttackAnimation = script.ToolAttackAnimation
local Debounce = false
Tool.Activated:Connect(function()
if not Debounce then
Debounce = true
local Humanoid = Tool.Parent:WaitForChild("Humanoid")
local AnimationTrack = Humanoid:LoadAnimation(ToolAttackAnimation)
AnimationTrack:Play()
wait(1)
Debounce = false
end
end)