Primary Part is not found when :SetPrimaryPartCFrame() is used

I’m trying to create some first person shooter type arms in order to create some realism into my game.
However, the code spits out an error (shown below) and I am very inexperienced with CFrame functions so I have no idea how I am supposed to try and fix the problem.
I’ve at least tried to look for some fixes regarding primary parts but am still confused at to how primary part is supposed to be set.

code:


local char = script.Parent

local cam = workspace.Camera

local run = game:GetService("RunService")

local arms = game.ReplicatedFirst.Arms:Clone()

run.RenderStepped:Connect(function()

arms:SetPrimaryPartCFrame(cam.CFrame * CFrame.new(0,-2,0))

end)

arms.Parent = cam

Error:
image

The arms themselves:
image

Thanks for reading, apologies for any format issues

1 Like

You have set the model’s primary part to the right thing in its properties, right?

I think you haven’t done this:
image

And if you did the object is probably falling out of the world if it’s not collide able and unanchored.

oh my god :man_facepalming: :blush: how did I overlook this
I’ll keep you updated on whether or not it works

1 Like