I have been having a problem where animations can not run while a tool is equipped, but can run if I make the scripts without a tool (Keybinded or simply just clicking instead of equipping a tool). I have looked over the script with my friends many times over, there should be no flaws, and the tool works with him. Because of this my friend assumed it was a virus, and I had no choice but to go off of it. I also tried using the tool in a different place, but it still didn't work. Another thing is if I click and then immediately unequip the tool, it shows me the animation running for a second or whats left of it, for this I believe that the animation can only run if a tool is not equipped. Please help me!
Tool = script.Parent Character = Tool.Parent Tool.Activated:connect(function() Character = script.Parent.Parent print("Player has clicked") local hum = Character.Humanoid local aim = hum:LoadAnimation(script.Parent["Animation"]) aim:play() print("Animation has been ran properly") end)

1 comment
Your question does not relate to your content.