Help understanding error and how I can fix it

This may be pretty simple but I am not understanding this error. Can anyone help?

Error:
image

Code:

local NewestCar = NewCar:Clone()

local pads = game.Workspace.CarSpawns
local SpawnPad = pads:FindFirstChild("Pad"..math.random(1,#pads:GetChildren()))
NewestCar:SetPrimaryPartCFrame(SpawnPad.CFrame + Vector3.new(0,3,0))
wait()
NewestCar.Parent = workspace
1 Like

This means that your car doesn’t have a primary part. Set a primary part in explorer or through a script.

1 Like

You have to set the ‘Primary part’ property to the primary part of your model.

Example:

If your model contains 10 parts, you can set the Primary part property of your model to the main part or instance of it.

(For example, the NPCS have set the primary part to “HumanoidRootPart”)

And that part will receive every word set on a script, in your case, the primary part will move to 0,3,0

1 Like