kylepj7
(TheNewSpiderman)
March 7, 2026, 9:42pm
1
A player can gain currency when they click. They can complete quests and get upgrades to increase the amount per click.
The problem is I don’t know how I should save the data when the player leaves. I have 2 ways and I don’t know which I should do:
Save the amount of currency per click directly
Save the quests and upgrades they have. Then determine the amount of currency per click based on which quests and upgrades they have completed
(sorry if this is the wrong category, I don’t really know which category this would go in)
There is a player removed event that fires when someone leaves and yiu cna use datastores in that
Also there is a tutorial for exactly what ur tryna do. Look up brawldev on youtube and find datastores in his advanced scripting series.
kylepj7
(TheNewSpiderman)
March 7, 2026, 10:11pm
3
I know how to use datastores, I just didn’t know if I wanted to save the amount of currency per click or use the player’s completed quests to determine it. I think I know what to do now though, but thanks for trying to help
Ohhhhh. Then definitely per quest because it can be pretty costly to save player data every input. You’ll prob lose performance.