heres the code i use for attaching it:
if toolInstance then
local rightArm = player.Character:FindFirstChild("Right Arm")
local root = player.Character.HumanoidRootPart
local tool = toolInstance:Clone()
tool.Parent = player.Character
local weaponGrip = game.ReplicatedStorage.Assets.WeaponGrip:Clone()
weaponGrip.Parent = tool
local m6d = Instance.new("Motor6D")
m6d.Part0 = rightArm
m6d.Part1 = weaponGrip
m6d.C1 = CFrame.new(0,1,0)
m6d.Parent = weaponGrip
if rightArm:FindFirstChild("RightGrip") then
rightArm.RightGrip:Destroy()
end
local weld = Instance.new("Weld")
weld.Part0 = weaponGrip
weld.Part1 = tool.Handle
weld.C1 = tool.Grip
weld.Parent = tool
if WeaponType then
tool:SetAttribute("WeaponType", WeaponType)
player.Character.Humanoid:SetAttribute("WeaponType", WeaponType)
animationsModule.Equip(player, "Weapon", WeaponType)
end
else
warn("Tool or FallBackTool not found in ServerStorage.")
end