I've tried this,
handle = script.Parent.Handle Weapon.Equipped:connect(function(mouse) handle.idle:Play() end)
This script works fine when playing a sound but I haven't been able to get it to work with animations.
Animations are a bit different. You need to load animations into the Players Humanoid.
LocalScript:
repeat wait() until game.Players.LocalPlayer.Character local Player = game.Players.LocalPlayer local anim = Player.Character.Humanoid:LoadAnimation(script.Animation) local tool = script.Parent tool.Equipped:connect(function() wait(0.5) anim:Play() wait(1.5) anim:Stop() end)
Please accept this answer if it solved your problem, thanks!