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.