i’m trying to connect this gun to the arm. i’m trying to make it so that when the character equips the gun, the animation will play with the gun in the hand like this gif down below. the problem is, is that when i equip the gun, the gun is inside the arm. it’s not connected right. ty 4 the help!
animation of gun gif:
https://gyazo.com/0afb8a3214f8437a8c4b40783d9a9e7e
problem gif:
https://gyazo.com/11064730032e8fda39eb42de163a7272
script:
script.Parent.Equipped:Connect(function()
local char = game.Players.LocalPlayer.Character
local hum = char:WaitForChild("Humanoid")
local anim = script.Parent.Animation
local m6d = Instance.new("Motor6D", char["Right Arm"])
m6d.Part0 = char["Right Arm"]
m6d.Part1 = script.Parent.glock.Handle
local animtrack1 = hum.Animator:LoadAnimation(anim)
animtrack1:Play()
end)
You could use this free tool grip editor to make your life easier, could I have a solution please?
just use a tool grip Editor Plugin To Edit The Pos Of The Tool
@Alfiepro98234 @OfficialPlatinumMan
thank u for ur help! the gun is positioned correctly however the gun part (the bolt) isn’t sliding back at all.
gif:
https://gyazo.com/764e3f0e10efdd751e23027a8d10ea6a
script:
script.Parent.Equipped:Connect(function()
local char = game.Players.LocalPlayer.Character
local hum = char:WaitForChild("Humanoid")
local anim = script.Parent.Animation
local m6d = Instance.new("Motor6D", char["Right Arm"])
m6d.Name = "glockM6D"
m6d.Part0 = char["Right Arm"]
m6d.Part1 = script.Parent.Handle
local animtrack1 = hum.Animator:LoadAnimation(anim)
animtrack1:Play()
end)
here’s the gun in starterpack:

cant you do the bolt manually? Like with CFrames