Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Saving models in dataStore?

Asked by 8 years ago

Title says it all. I haven't tried this, because i know it will end catastrophically. Here's what i think it would look like:

local Save = {}

game.Players.PlayerRemoved:connect(function(player)
    table.insert(Save,1,game.Workspace:FindFirstChild("Model"...player.userId))
--It's a building thing where everything the player places get's put onto their model.
end)

But will it save the Positions and Colors correctly? I mean, will it add to the table correctly, and then save correctly in a datastore. Will this work, or do i need to get the values of position and color for all the parts?

1 answer

Log in to vote
0
Answered by 8 years ago

http://wiki.roblox.com/index.php?title=Data_persistence

What about data persistence?

0
So SaveInstance will save the model and all of it's descendants properties? Will it save the scripts inside of them? ScriptsAhoy 202 — 8y
0
Probably will save the scripts Operation_Meme 890 — 8y
0
will it keep the scripts running? i Have a loop in them ScriptsAhoy 202 — 8y
Ad

Answer this question