|
| 05 Aug 2015 08:56 PM |
| how would i make it so a code that a player used for ex. Beta Keys, you only want them to be used once, how would i do this? |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Aug 2015 09:24 PM |
| You use :SetAsync() and :GetAsync() |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 05 Aug 2015 10:39 PM |
Create the datastore Once the player is requesting to put the code, check the datastore with :GetAsync(Player.userId) if it returns nil then let the player activate the code, then use :SetAsync(Player.userId) to let the game know they've used the code. |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Aug 2015 02:43 PM |
| In other words you're asking us to make it for you. |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2015 03:05 PM |
| I don't know what to tell you, if I made you the script chances are you wouldn't even know how to use it. Read the wiki article on DataStores and apply it yourself with the instructions I gave you. |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2015 08:25 PM |
| b, i know how to work with setasync from peas tutorial but how would i do it when a player inserts a code and it permanently disables it ;-; |
|
|
| Report Abuse |
|
|