i made a script that clones a model when event is fired. But it does not clone anything. No errors.
script:
game.ReplicatedStorage:WaitForChild("SpawnCar").OnServerEvent:Connect(function(player)
for _,e in pairs(game.Workspace:GetChildren()) do
if e.Name == player.Name.."'s Car" then
e:Destroy()
end
end
wait(0.1)
for i,v in pairs(player:WaitForChild("SelectedCar"):GetChildren()) do
local car = v:Clone()
car.Parent = game.Workspace
car:MakeJoints()
car.Name = player.Name.."'s Car"
end
end)

3 comments
check that the code runs by adding in prints
i did
model = game.Workspace.bacon backup = model:clone() while true do wait(8) model = backup:clone() model.Parent = game.Workspace model:MakeJoints() end