1

# ERROR: attempt to perform arithmetic (add) on nil and Vector3?

Edited by Xapelize 4 days ago
target.PrimaryPart=target.HumanoidRootPart
target:SetPrimaryPartCFrame(
CFrame.new(pos,pos+target.HumanoidRootPart.CFrame.lookVector))


What is wrong with these lines of code that would give me this error message? (the title)

0
By the way target is the player's character Matrixmaximus867 9 — 5d
0
Can you show the script T3_MasterGamer 473 — 5d
0
because it’s hard to solve if you just show us one line. T3_MasterGamer 473 — 5d

target.HumanoidRootPart.CFrame.lookVector