How to make a global code creator

I have a UI that is supposed to make codes. When you make a code, I want that code to be global so everyone can redeem it and get a reward. Here’s a picture example of the ui:
image

Scripting support isn’t for asking for entire scripts, its for helping or improving current scripts.

I just need an idea on how to do it, not the actual script.

Generally, what I am thinking of is, to have a datastore, and when a developer requests a new code, it updates the current code data by adding a new code to the data with updateasync.

Store the data in a Data-Store. Whenever the player tries to enter a code, loop through all the codes in the data store and if the time length hasn’t passed yet, Give them the reward they’re supposed to be getting

1 Like

I think #help-and-feedback:code-review is made for that.

1 Like

Yes, however it’s not for

That’s code review. Scripting support is a category people use to
A.) Get an idea of how to make something
B.) Learn what something does and how to use it
C.) Get error helps.

1 Like

im pretty sure this is gonna work, i just dont know what to use, setasync, updateasymc

I kind of got it working, but it just overlaps the old code data whenever you try to make a new code. Plus, I’m not sure how to get all the data keys in the code data.