#my animation only plays when sword isnt equipped how do i fix this

6 messages · Page 1 of 1 (latest)

plucky glade
#

don't double load the animation

#

local model = game.Workspace:FindFirstChild("Sword Animations")
local Swordidle = model.Animations:FindFirstChild("idle")

local tool = script.Parent
local humanoid = game.Players.LocalPlayer.Character.Humanoid
local animation = humanoid.Animator:LoadAnimation(Swordidle)

tool.Equipped:Connect(function()
animation:Play()
end)

tool.Unequipped:Connect(function()
animation:Stop()
end)

#

why is the sword animations in workspace?

plucky glade
#

is this a localscript

#

or a serverscript

#

then game.workspace won't work