|
| 09 May 2016 07:45 PM |
| I'm working on a game and i got my whole gui done, but the problem is i want the values to be with all the players, which means i have to add some sort of global value which could change my whole gui anyone know how it would be done? |
|
|
| Report Abuse |
|
|
lululukas
|
  |
| Joined: 23 Aug 2010 |
| Total Posts: 1043 |
|
|
| 09 May 2016 07:48 PM |
| just clone the gui to all the players PlayerGuis... |
|
|
| Report Abuse |
|
|
|
| 09 May 2016 07:50 PM |
| The best way to do this is through RemoteEvents. |
|
|
| Report Abuse |
|
|
|
| 09 May 2016 07:50 PM |
| well thats not that hard, but i have a value thats bassically an item stock, but i cant just have someone buy the item 3 times, i want 3 differnt people to buy it |
|
|
| Report Abuse |
|
|
|
| 09 May 2016 07:51 PM |
| @agentfirefox, idk how to use remote events |
|
|
| Report Abuse |
|
|
lululukas
|
  |
| Joined: 23 Aug 2010 |
| Total Posts: 1043 |
|
|
| 09 May 2016 07:57 PM |
| when something happens you just change that one persons gui. |
|
|
| Report Abuse |
|
|
|
| 09 May 2016 08:03 PM |
| so still that would mean i would have to use a remote event |
|
|
| Report Abuse |
|
|
lululukas
|
  |
| Joined: 23 Aug 2010 |
| Total Posts: 1043 |
|
| |
|
|
| 09 May 2016 08:20 PM |
you do not need to do this through global events, you want everyone to have the same player GUi, then place it in starter Gui
if you want the Gui to only appear once then make it a clone of it
|
|
|
| Report Abuse |
|
|
lululukas
|
  |
| Joined: 23 Aug 2010 |
| Total Posts: 1043 |
|
|
| 09 May 2016 08:28 PM |
| ^ He wants everyone to have a different gui, kinda like how much money you have. Every player won't have the same amount, therefore the gui has to change for that 1 person. |
|
|
| Report Abuse |
|
|
Phonicz
|
  |
| Joined: 10 Apr 2010 |
| Total Posts: 400 |
|
|
| 09 May 2016 08:28 PM |
| Best way is to set a variable of some sort, boolean, num, etc in the workspace or somewhere like that and in the gui just use that as the path for it. |
|
|
| Report Abuse |
|
|
WoolHat
|
  |
| Joined: 19 May 2013 |
| Total Posts: 1873 |
|
|
| 09 May 2016 08:34 PM |
| Place a variable object into ReplicatedStorage; have localscripts in the gui to change when the object is changed. blah blah. Something something send remoteevent to server blah verify change blah the change event solves itself blah |
|
|
| Report Abuse |
|
|
|
| 10 May 2016 03:50 PM |
| @wool, i was thinking that too, just make a folder for each seprate item in the folder and add a value and if one person buys the item it will remove 1 value from the stock value, then it should work, but the problem is idk how to make it globaly remove 1 value once one person buys it |
|
|
| Report Abuse |
|
|