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:
The arms themselves:
Thanks for reading, apologies for any format issues