i made a script that copys a model to a folder. but it keeps giving me the error The Parent property of Ca is locked, current parent: NULL, new parent Carbin.
script:
game.ReplicatedStorage.CopyCarToSlot.OnServerEvent:Connect(function(player,car1) local car = game.ReplicatedStorage.Ca:Clone() car:MakeJoints() if #car1:GetChildren() == 0 then car.Parent = car1 end if #car1:GetChildren() == 1 then for i,v in pairs(car1:GetChildren()) do v:Destroy() wait(.1) car.Parent = car1 end end end)
thx