Sallomy
|
  |
| Joined: 06 Jun 2013 |
| Total Posts: 8 |
|
|
| 15 Aug 2017 12:24 AM |
| How to make twitter code gui And put more than one code with different rewards like The code Zombie Gives you Gravity Coil and the code New Gives You 5000 Cash How? |
|
|
| Report Abuse |
|
DevSpec
|
  |
| Joined: 01 Apr 2017 |
| Total Posts: 295 |
|
|
| 15 Aug 2017 01:23 AM |
It depends on how you've structured your game. Basically, what you'll want to do is create a RemoteFunction somewhere in your game. Next, create a TextBox GUI from which you'll read inputs from the client, as well as a submit button for entering the code. On the server, have a script that listens for invocations of said RemoteFunction from clients, and validating the inputted text. If the text is valid and has not been previously redeemed by the player (use datastores to save a list of redeemed codes for each player), award the player accordingly, and send back to the client a success/invalid response. On the client, listen for pressing of the submit button, and on the pressing of that button, invoke the RemoteFunction with the contents of the TextBox, and display the success/invalidity message that's returned by the server.
Take a look at these pages for more info:
http://wiki.roblox.com/index.php?title=Experimental_Mode
http://wiki.roblox.com/index.php?title=Building_Games_with_Experimental_Mode_Off
http://wiki.roblox.com/index.php?title=Saving_Player_Data
http://wiki.roblox.com/index.php?title=The_Fundamentals_of_Scripting_with_GUIs
|
|
|
| Report Abuse |
|
RuizuKun
|
  |
| Joined: 20 Jan 2016 |
| Total Posts: 1133 |
|
|
| 15 Aug 2017 01:26 AM |
AlvinBlox
This is Reality, NOT a Dream. |
|
|
| Report Abuse |
|