Do you need auto save intervals or is player on removed fine? as I know roblox has datastore issues

Do you need auto save intervals or is player on removed fine? as I know roblox has datastore issues

You should use both, as well as game:BindToClose() for when the server shutsdown. Datastores are reliable usually if coded right, but if Roblox starts having issues then it can be unreliable.

1 Like

Thanks, so I have an inventory system aswell would this be performant i’m using profileservice also it would empty the table and reinsert the items everytime an item got remove or added.

	local function UpdateInventory()
	profile.Data.Inventory = {}
	for i,v in pairs(player.Inventory:GetChildren()) do
	if v.Name == "I" and v.Value > 0 then	
	table.insert(profile.Data.Inventory,{v.Name, v.Value})	
	end
	end	
	end
  	player.Inventory.AncestryChanged:Connect(UpdateInventory)

You should try making your inventory tables only instead of using stringvalues and numbervalues, as when the player leaves everything inside the player is immediately deleted, and it’ll cause less lag.