The Animation is not Playing when I am Equipping a Gun?
I tried making an UserInputService, when player presses Q, the animation plays, and it worked fine.
But when I try to make the same but when the tool is clicked it doesn't work.
I don't get any error or anything, it just won't play, am I missing something?!
01 | local Mouse = game.Players.LocalPlayer:GetMouse() |
03 | script.Parent.Activated:Connect( function () |
05 | if Mouse.Target.Parent:FindFirstChild( "Humanoid" ) then |
06 | print ( "There is humanoid" ) |
07 | script.Parent.RemoteEvent:FireServer(Mouse.Target) |
08 | game.Players.LocalPlayer.Character.Humanoid.Animator:LoadAnimation(game.ReplicatedStorage.Animation):Play() |