Clone from server storage

Probably cause I forgot to make the joints

--ServerScript
local Event = game.ReplicatedStorage:WaitForChild("RemoteEvent")

Event.OnServerEvent:Connect(function(Player)
    local Character = Player.Character
    local HRP = Character:WaitForChild("HumanoidRootPart")

    local ClonedPart = game.ReplicatedStorage.Part:Clone()
    ClonedPart.Parent = workspace
    ClonedPart:MakeJoints() --Still don't understand why this is deprecated
    ClonedPart:SetPrimaryPartCFrame(CFrame.new(HRP.CFrame.LookVector * 5))
end)

uhhhhh this is a strange mess

You have to set a PrimaryPart for the Model Object, preferably the HumanoidRootPart

do i write

Model.PrimaryPart = Part.HumanoidRootPart

No, you have to set the ClonedPart’s PrimaryPart to where your HumanoidRootPart is

ClonedPart.PrimaryPart = ClonedPart.HumanoidRootPart

still no work…like this?

local Event = game.ReplicatedStorage:WaitForChild("RemoteEvent")

Event.OnServerEvent:Connect(function(Player)
	local Character = Player.Character
	local HRP = Character:WaitForChild("HumanoidRootPart")

	local ClonedPart = game.ReplicatedStorage.Part:Clone()
	ClonedPart.Parent = workspace
	ClonedPart:MakeJoints() --Still don't understand why this is deprecated
	ClonedPart:SetPrimaryPartCFrame(CFrame.new(HRP.CFrame.LookVector * 5))
	ClonedPart.PrimaryPart = ClonedPart.HumanoidRootPart
end)

Set it before you call your SetPrimaryPartCFrame function, the order matters

wait so where do i put it? like behind the local hrp?

local Event = game.ReplicatedStorage:WaitForChild("RemoteEvent")

Event.OnServerEvent:Connect(function(Player)
	local Character = Player.Character
	local HRP = Character:WaitForChild("HumanoidRootPart")

	local ClonedPart = game.ReplicatedStorage.Part:Clone()
	ClonedPart.Parent = workspace
	ClonedPart:MakeJoints() --Still don't understand why this is deprecated
	ClonedPart.PrimaryPart = ClonedPart.HumanoidRootPart --This is called first before calling the PrimaryPartCFrame function
	ClonedPart:SetPrimaryPartCFrame(CFrame.new(HRP.CFrame.LookVector * 5))
end)