Saving Blocks Placed

Hello Everyone, My Name Is Nehoray

I Have a quick question:
How I can save Blocks that Players Placed on the ground and their position (of the block)

And How to implement this to Datastore

Thanks For Everyone.

Well, basically make a Datastore, where in table you will have player’s ID, amount of parts and position (or CFrame) for each part.

How to use datastores: Roblox DataStore Tutorial - Data Stores & Saving Data - Scripting Tutorial - YouTube

1 Like

Thank you… = )

Helped me a lot

1 Like

By the way, to store all parts, try making table before that. Let’s, for instance, imagine that you put them all in workspace but in special folder which has player’s name, so we will use somethng like this construction:

for _, v in pairs (workspace.PlayerNameFolder:GetChildren()) do

… put “v”-s in table (haven’t scripted since August, so recomend watching this video or reading documentation)

end

and after that store that table in datastore

2 Likes