How to put model in a r6 players hand

Im trying to weld a knife to a player’s hand, it cannot be a tool btw just welded on. When I do clone it and then weld it, it is just where it used to be before it was in Replicated storage, how do I weld it so it is in his hand. (R6 avatar, cant be a tool)

This is a normal script.

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local DB = false
local proximity = script.Parent
local ChickenModel = ReplicatedStorage.RawChicken
local ChickenSlice = ReplicatedStorage.RawChickenPiece
local Knife = ReplicatedStorage.Knife

local ChickenAni = ReplicatedStorage.ChickenAni

local pp = game.Workspace.AniPos


proximity.Triggered:Connect(function(Player)
	if not DB then
local Chicken = Player.Character:FindFirstChild("RawChicken")
		if Chicken then
			Chicken:Destroy()
			ChickenSlice:Clone()
			ChickenSlice.Parent = workspace
			ChickenSlice.PrimaryPart = ChickenSlice.Union
			ChickenSlice:SetPrimaryPartCFrame(CFrame.new(26.017, 3.265, -34.312))
			
			Player.Character.HumanoidRootPart.CFrame = pp.CFrame
			wait(.5)
			ChickenAni:FireClient(Player)
			Knife:Clone()
			Knife.Parent =  Player.Character
			local weld = Instance.new("WeldConstraint")
			weld.Part0 = Knife.Handle
			weld.Part1 = Player.Character["Right Arm"]
			weld.Parent = Knife.Handle
			
		end
	end
end)
			
	
3 Likes

Have you turned off Anchored? if yes you can try turning on massless
Also i don’t see any code that set the position of the knife to player’s hand

3 Likes

There is no code to set it at the players hand, because when I do set it to the players hand it just gets teleported even farther away than before.

2 Likes

From what i see your Knife is a model have you tried to set its Primary Part CFrame?
Like Knife.PrimaryPart.CFrame = Player.Character:WaitForChild(“Right Arm”).CFrame

2 Likes

Ohhhhhhhhhhhhhhhhhh I completely forgot 'bout that, which is kinda goofy cus I have done the same thing over and over at this point.

1 Like

So all good now? or you encountered other problem?

1 Like

I set the primary part and now I am just trying to set its position.

1 Like

No matter what I do CFrames just dont do anything

Ah ok. I suggest you set its position by create a weld from workspace and try to weld it in a Rig then copy that weld value to your code. That will be quicker

Wdym?
Are you using WeldConstraint?

I will try that out, i’ll let you know if it works.

It is fixed now, thanks for the help!

Np you should mark it as solution then. Good luck to you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.