✓ Accepted answer
Ok, you must not know much about animation or scripting cause this is very simple. Anyway when scripting a animation you always have to load it. Such as:
In this script I'm assuming you already have the Player set as a variable
local anim1 = script.Parent.EquipAnimation
local anim2 = Player.Character.Humanoid:LoadAnimation(anim1)
anim2:Play()
This script is basically getting the animation. Once got it loaded it into your humanoid. Then Plays it. Now lets imply this into your script. And i will assuming you already have the correct variables.
local tool = script.Parent.Parent.Parent.M16A4
local anim1 = script.Parent.EquipAnimation
tool.Equipped:Connect(function()
local anim2 = Player.Character.Humanoid:LoadAnimation(anim1)
anim2:Play()
end)
If this helped you please give it a answeared thingy
Regards, Bl_ueHistory
2 comments
This makes much more sense, But now its not saying its a valid member of the Handle?
Nvm I got it working, I just used, :FindFirstChild() to get it. Thanks!