Hello! I am modifying the default script in the linked sword gear to play My own animation. Everything is exactly the same except this part.
function attack()
damage = slash_damage
SlashSound:play()
local anim = Instance.new("Animation")
anim.Name = "toolanim"
anim.AnimationId = "http://www.roblox.com/asset/?id=211308302"
anim.Parent = Tool
script.Parent.toolanim:Play()
end
The animation will not play. In my out put it says: 19:00:42.155 - Play is not a valid member of Animation. I understand it is saying that it does not know what play is in the animation. What do I need to put there to make it play? Oh and the animation is just a simple customized hand swing, If that helps any.
Danke ~Minikitkat

4 comments
Updated my answer. I didn't put anim as an argument
What's the animation's priority?
It is a simple sword swing but customized.
I just realized I made the animation a core and not an action. I updated it but that did not do anything.