What are you attempting to achieve? (Keep it simple and clear)
I am trying to datastore models so any time a player joins they can load in a model. For example, if I made a tycoon game and wanted to save the whole tycoon including the bricks and scripts.
What is the issue? (Keep it simple and clear - Include screenshots/videos/GIFs if possible)
I have tried over and over again and I can’t figure out how to do this.
What solutions have you tried so far? (Have you searched for solutions through the Roblox Wiki yet?)
I have tried modifying a regular datastore for leaderboards, but that didn’t work. Also, I have looked all over the Wiki, but nothing pops up about what I need.
(Sorry if you don’t understand what I need. Just tell me if you don’t understand. Also, sorry if this is really basic, I am not very advanced into scripting. I am more of a moderate scripter.)
You probably dont want to store the objects themselves but the bare minium data required to rebuild the tycoon on load. Do you need to save the model of the rollercoaster they placed, or just the piece IDs and their grid locations?
DataStoring doesn’t accept objects, therefor you need to save the CFrame (Location they placed it) as well as the object they placed (A string or object ID)
Example:
PlacedObjects = {
Player1 = {
Chair = CFrame.New() -- Index is the name, value is the CFrame
}
}
Example 2…
PlacedObjects = {
Player1 = {
Object = {
Position = CFrame.New() -- Position in CFrame
Name = "Test" -- Objects name
}
}
}
I know it’s not what they do, but I would like to know how I would do what I said in the example. The thing I am making isn’t a tycoon, that’s just an example.