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)
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
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