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)
model = game.Workspace.bacon backup = model:clone() while true do wait(8) model = backup:clone() model.Parent = game.Workspace model:MakeJoints() end
that is a script to clone any objext every T seconds, just change word "bacon" to the name of the model that you are cloning and the (8) to the amount of time it should wait to regen =)