Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why don't the player's arms move when the gun animation is played?

Asked by 4 years ago

I am making a gun script and setting up some animations. The animations play on the gun model perfectly, however, the arms of the player character don't move to hold the gun or anything like they were animated to do. The animations have a priority of "Action". Any ideas?

Here is the script, just testing to see if the animation works.

local plr = game.Players.LocalPlayer local char = plr.Character or plr.CharacterAdded:Wait()

local tool = script.Parent

script.Parent.Equipped:Connect(function()

game.ReplicatedStorage.ConnectM6D:FireServer(tool.BodyAttach)

char.HumanoidRootPart.ToolGrip.Part0 = char.HumanoidRootPart
char.HumanoidRootPart.ToolGrip.Part1 = tool.BodyAttach
char.Humanoid:LoadAnimation(script.Idle).Looped = true
--char.Humanoid:LoadAnimation(script.Idle):Play()

end)

tool.Unequipped:Connect(function()

game.ReplicatedStorage.DisconnectM6D:FireServer()

end)

tool.Activated:Connect(function() char.Humanoid:LoadAnimation(script.Reload):Play() end)

0
Remove the -- from the sixth line. WoTrox 345 — 4y
0
It still doesn't work. The animation plays on the gun itself but the player model doesnt move Joaqstarr 0 — 4y
0
Try using a motor6d to connect the tool to the hand instead of a weld ultrasonicboomer 85 — 4y
0
I'm using a motor 6D to the Humanoid Root Part Joaqstarr 0 — 4y

Answer this question