I know how to create a DataStore etc, but I am not so sure how to do this with parts, I've seen in a few games that it is possible such as Sandbox. A basic outline would be nice.
This is possible with the Data Persistence system, but not with the DataStore system. You can use the Data Persistence system for this. However, this system is deprecated, and you should not use it for new work. In addition, this sytem is heavily limited as to how much memory you can store in it.
A tutorial for using it can be found here.
Short Answer: No, you can't save parts with Data Storage.
Long Answer: Ok, so Data Storage is basically a long list which has 2 parts in it... Keys and Values the Key must be a String and it must be unique to the Player
since the Key is used to access the Value
and the Value
is what you are trying to save.... Values
can ONLY FOR NOW BE: boolean, strings, Lua tables and numbers. There are different ways people save the "Parts" such as..... if you use a function with a PlayerAdded
event in the ServerScriptService
you could make an if statement saying
--example, it won't work it's just showing you what you could do with values truly. if player.Value.String == "Sword" then local sword = script.Tool sword.Parent = player.Backpack end