I am trying to perform a data save on a clone in a folder(The clone gets created when you buy the thing in the shop) Does anyone know how to Save(or data save this object)And one more thing is that I m already saving a module script of properties(This is tat module script)That apply to said model.
local module = {}
module.FluffInventory = {
BodyType = (""),
BodyColor = (""),
FluffDescription = (""),
FluffInfo = {
FluffName = (""),
FluffGender = ("")
}
}
return module

3 comments
For the first bit I used a variable in the outside script for the require thing which I would have bee more clear of and for the second part about not being able to access them I have the Fluff one underneath another variable within that so what should I do
It seems that you haven't embedded your whole script on your post, so it is really hard to read. Can you make sure that the all of the code on your post is under the squiggly lines (~~~~~~~~~~~)?
Also, one thing that I naively left out is the use of classes in this case. Notice how every time you create a "Fluff" you have to redefine all of those properties such as BodyType, BodyColor, etc? What you can do instead is make fluff an object that you can create new instances of. I STRONGLY suggest you read this post: https://devforum.roblox.com/t/all-about-object-oriented-programming/8585