How would I reset player data in my game?[ProfileService]

I’m trying to make a battlepass system but I don’t know how I reset player data(level, experience) for every player that has data in my game.

I thought of doing:

levels = {
	[1] = 1,
	[2] = 1,
	[3] = 1
}

index being the season and the number being the level for that season. I would simply move to another season. I think this method is strange though and more knowledge in this topic would help.

To swap seasons, I would have to change every time I access a level(change the season, e.g. levels[2] = 1)

Nevermind, I know what I’d do.

I’d create a IntValue in the ServerStorage acting as the season. If the player does not have that same season in their profile. Parts of their data will reset to 0.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.