When character resets weapon animations stop working?
I noticed that after resetting you player weapon animations stop working. Not sure if I have to have a script to where the localscript in the tool resets itself so that way the weapon animations start working again.
Here is the script for the tool (I know I posted this script in the last post but just going to post it here updated and so that way I can have help)
01 | local plr = game:GetService( "Players" ).LocalPlayer |
02 | local char = plr.Character or plr.CharacterAdded:Wait() |
03 | local h = char:WaitForChild( "Humanoid" ) |
04 | local anim = h:LoadAnimation(script.Parent:WaitForChild( "Animation" )) |
06 | local tool = script.Parent |
08 | tool.Equipped:Connect( function () |
12 | tool.Unequipped:Connect( function () |