animations will not play in this simple local script
script:
local tool = script.Parent
tool.Activated:Connect(function(hit)
local hum = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
local Animator = hum:FindFirstChild("Animator")
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://11817692882"
local SwingAnim = Animator:LoadAnimation(anim)
SwingAnim:Play()
end)
I have this connected to a serverscript to but didn’t put that part in