Your code doesn’t make sense, why parent the clone into the main model? When all of the children of the model are destroyed, it doesn’t work anymore.
Yeah, I agree that the code makes no sense.
First where is the script located? it is not destroyed along with the model?
Then.
You reference this under variable MainModel: script.Parent.Parent.Model
Then you clone MainModel and name it backup. You placed this in SS
Then you clone backup and place it in MainModel… is the Model still in workspace? or its destroyed cause it fell to void?
The script seems that is inside the model due to script.Parent.Parent.Model. If the Model is in workspace, you could reference it game.Workspace.Train instead of doing Parent.Parent.Parent.Parent…
And seems you are cloning backup model, to place it inside the model that got destroyed.
You’re whole clone script is overcomplicated. But here’s your answer.
Change this:
To this:
modelclone.Parent = game.Workspace
The problem is whenever MainModel gets destroyed, you can no longer place modelclone in MainModel. If you open your output log you should be getting errors warning you about this.
This is also what the other two replies are trying tell you.