Hello! I have come to the DevForum to ask how to detect if a player has already done something. In my game I want it so that if a player has completed an obstacle course before, if they do it again, they can’t get points. How would I do this, and how would I save that data so that if they play again, they still can’t get points even though they beat it?
Yes but I want to set it for forever so the player can’t get points again.
Maby a value inside of the player with datastore (sorry if it won’t work I’m still learning to script)
1 Like
You need to explicitly tell us what “done something” because any answer more specific than “just use a debounce pattern” is dependent on knowing that.
1 Like
When a player completes my obby, I want them to get a point, and make it so that obby is completed. If it is then in the future, they can still play it, but they won’t get any points.
Use a datastore, if the player completes the obby update a boolean value and increment a integer value. If in future occurrences the player completes that section you should check the datastore to see if they should be rewarded.
3 Likes