I made a script to make a backup of every model inside a group, and then clone them in ReplicatedStorage, but it doesn't seem to work. Can someone help me with this?
Script
Upgrades = script.Parent:GetChildren() for i = 1, #Upgrades do Upgrades[i]:Clone() Upgrades[i].Parent = game.ReplicatedStorage.Upgrades Upgrades[i]:Destroy() wait() end
The script's inside a model, sharing space with some other models.
You're trying to set the Parents of the Object itself, not the clone of it. The Clone is never touched at all, actually. Here's a fix:
Upgrades = script.Parent:GetChildren() for i = 1, #Upgrades do Upgrades[i]:Clone().Parent = game.ReplicatedStorage.Upgrades --Yes, you can do this. Upgrades[i]:Destroy() wait() end