#my animation only plays when sword isnt equipped how do i fix this
6 messages · Page 1 of 1 (latest)
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?