InstanceService - Save Objects using DataStore2

Instance Service

Programmed by Z_lqify

V0.1


InstanceService is a module to save objects using DataStore2. It’s currently impossible to save objects using DataStore2. Because, DataStore2 can only handle valid UTF-8 characters. You can only save objects using serialization and deserialization. You can learn how to serialize an object’s properties by this post created by @starmaq


Why Instance Service?

InstanceService does save lots of time that you need to spend to save an object data.
InstanceService does the all serialization for you and saves it for you. Instance Service has custom built-in functions which saves time.


InstanceService currently does have only few functions and signals to use and it also have bugs. I need your support on this to improve it and fix the bugs.


How do we use?

Pretty simple, here’s a part saving and loading system:

local InstanceService = require(script.Parent.InstanceService)
local id = 	"Parts"
game.ReplicatedStorage.Save.OnServerEvent:Connect(function(Player)
	

	
	InstanceService:SaveObjectAsync(Player, id , game.Workspace.one, {"Color","Size","Position", "Material", "Transparency","Reflectance"})
	
end)

game.ReplicatedStorage.Load.OnServerEvent:Connect(function(Player)
	

	InstanceService:OverwriteObjectAsync(Player, id, game.Workspace.one)

end)

Donate meh :3

if you want to support me you can donate me, patreon.com/zelqify

Extra

If you have any questions or if you find any bugs, please contact me.

11 Likes

thank you!
I no longer have to constantly save objects with values ​​other than objectvalue
:sweat_smile:

No problem. If you encounter bugs, please report them to me.

1 Like

thanks for telling me but i already got your contacts :sweat_smile:

Oh really? Is it discord or something?

1 Like

i am Theaho#7796 you should know :grin:

1 Like

I cannot get this to work, maybe its broken?
EDIT:
just put the script in the wrong place lol

1 Like

Can it save children of parts too?

No it doesn’t, you should loop trough and save them

The example game has a bad script in it, it sends you to a “logo maker” game

I own that game, instanceservice is no longer supported and used the place for something that’s why.

you should edit your post then