Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

00:42:26.400 - parent is not a valid member of Model how does this work?

Asked by
fleydz 0
5 years ago
Edited by minikitkat 5 years ago
local car = game.ServerStorage.car
local botton = game.Workspace.bottonCar

local function createCarCopy ()
    clonedCar = car:Clone()
    clonedCar.parent = game.Players
end

while botton.Touched do
    createCarCopy()
    wait(3)
end

car = a model
botton = a part

1 answer

Log in to vote
2
Answered by 5 years ago
Edited 5 years ago

Instead of using the lowercase parent, use a capital

clonedCar.Parent = game.Players

the lowercase parent is looking for the model's parent rather than modifying it.

Also, remember to use codeblock when asking questions :)

Ad

Answer this question