Help with Data Stores

Hello, I am having a hard time with data stores. I just cant wrap my head around it. I want to create a data saving system in my permadeath game, where the user loads in the game etc. But if they leave it will save their data like Level, Weapon, and also I have 2 folder I want to have also called Signs (which is just the plain old abilities) and Blessings (which are just like attributes like, you longer lose speed when blocking something like that). These will also save as I don’t want to players attributes or abilities to not save.
image

However, I don’t want values such as Blocking, Sprinting, Parrying to be saved as those values are temporary and they change alot.

I am wondering what is the most easy way to make a data store.

Here the template of the datastore but there is more in my PlayerData folder which i want to be saved as I explained above.

local ProfileTemplate = {
	PrimaryWeapon = "Sword",
	PlayerBlessings = "",
	PlayerSigns = "",
	Kills = 0,
	Kunnan = Elements[math.random(1, #Elements)],
	Armor = "",
	Enchant = "",
	Level = 1,
	AnimationStyle = "TwoHand",
	Race = Races[math.random(1, #Races)],
}

Any help is appreciated!

I’m not quite sure what specifically you’re asking about DataStores, so if you could be a little bit more clear with what you’re looking for, I can probably help you better.

Are you confused about how to specifically use DataStoreService, if so then I’d recommend reading this: Data Stores | Documentation - Roblox Creator Hub

If you’re confused about how to implement it into your code, that I can help you do. But you need to be more specific with what you’re asking, as the “easy way to make a data store” is to just implement it. (Which doesn’t really help you so much :frowning: )

This video:
https://www.youtube.com/watch?v=zpw7Kg8S14k&list=PLx4a2uHh3p6FbFUO5YZqAoqwTIjFnKHFN&index=25&pp=gAQBiAQB
Is absolutely AMAZING. Everyone should watch this. It easily does most of the work for you. There is no shame in using someone else’s code or models when they offer it to you. No need to re-invent the wheel. :man_shrugging:

2 Likes

Hello, Sorry for the late reply. I tried using ProfileService. However, confused on what the Template actually does.