You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want the gun to be in the player’s hand, like this:

-
What is the issue? Include screenshots / videos if possible!
This happens everytime:

-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried some stuff, but nothing worked yet
function characterMod(weapon, character)
local model = Models:FindFirstChild(weapon):Clone()
model.Parent = game.ReplicatedFirst
--//weld\\--
for i,v in model:GetDescendants() do
if v:IsA('BasePart') and v ~= model.PrimaryPart then
local weld = Instance.new('WeldConstraint', v)
weld.Part0 = v
weld.Part1 = model.PrimaryPart
weld.Name = "_"..v.Name
v.Anchored = false
end
end
local armWeld = Instance.new('WeldConstraint', model.PrimaryPart)
armWeld.Part0 = model.PrimaryPart
armWeld.Part1 = character:FindFirstChild("Right Arm")
armWeld.Name = "RightArm"
--//parent\\--
model.PrimaryPart.Anchored = false
--//cf\\--
model:SetPrimaryPartCFrame(character.HumanoidRootPart.CFrame * model.PrimaryPart.CFrame)
--//parent\\--
model.Parent = character
model.Name = "ThirdPersonGun"
end

