This may be pretty simple but I am not understanding this error. Can anyone help?
Error:
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