What I mean by Models is that in a game I'm working on, it requires to save a players three characters and all the base equipment they're using, e.g. the brick color, the mesh and the hats. It's like what happens in Vampire Hunters 2 or Apocalypse Rising when you load up a game.
Data Stores
are not able to save Instances
so you would therefore need to put all your data into a table or something like that and save it using that, here's an example:
local ds = game:GetService("DataStoreService") local Stats = ds:GetDataStore("Stats") game.Players.PlayerRemoving:connect(function(plr) local key = "user_"..plr.userId Stats:SetAsync(key, {goldKnife = true, goldGun = false}) end)
Then loading would be like this:
local ds = game:GetService("DataStoreService") local Stats = ds:GetDataStore("Stats") game.Players.PlayerAdded:connect(function(plr) local key = "user_"..plr.userId local stats = Stats:GetAsync(key) if stats and stats.goldKnife then game.ReplicatedStorage.Knife:Clone().Parent = plr.StarterGear end end)