Hello, I'm trying to figure out how to save models and load them for later (in-game). I've been told this is possible by saving the properties of the model's children, but I don't know how to do that. Can anyone help? Here's my code (uses data persistence, which is deprecated).
script.Parent.MouseButton1Click:connect(function()
if game.Players.LocalPlayer.DataReady == true then
local house = game.ReplicatedStorage.AverageHouse:Clone()
house.Parent = workspace
game.Players.LocalPlayer:SaveInstance("House", house)
game.Players.LocalPlayer.PlayerGui.HouseGUI:Destroy()
else print("wait")
end
end)

3 comments
Yes. I know it's annoying!
Aw man! This is gonna be a problem for me since the models I plan to save are fairly big. Is there any other way to do this?
Nope. Unless you save then as strings, e.g. model = "parent:workspace;name:Something" and then use string functions to find the name and stuff. This is more complicated so I advise you use the table idea instead.