i couldnt find a soulution for this on google or dev forums so im asking here.
it doesnt work for the unequip by the way
local weapon = script.Parent
local equipAnim = script:FindFirstChild("WeaponEquip")
local idleAnim = script:FindFirstChild("WeaponIdle")
weapon.Equipped:Connect(function()
local hum = script.Parent.Parent.Humanoid
-- anim tracks
local equipAnimTrack = hum:LoadAnimation(equipAnim)
local idleAnimTrack = hum:LoadAnimation(idleAnim)
-- anim playing
equipAnimTrack:Play()
idleAnimTrack:Play()
Equipped = true
end)
weapon.Unequipped:Connect(function()
local hum = script.Parent.Parent.Humanoid
-- anim tracks
local unequipAnimTrack = hum:LoadAnimation(equipAnim)
-- anim playing
unequipAnimTrack:Play()
unequipAnimTrack:AdjustSpeed(-1) -- reverse
end)
and here is where the script is located:
any more images or code (even though i have barely) i am free to do