Zyperion
|
  |
| Joined: 10 May 2014 |
| Total Posts: 184 |
|
|
| 15 May 2015 09:18 PM |
i have a gui, that needs to display an amount of money grabbed from a value inside leaderstats which is named money so it would be game.Players.LocalPlayer.leaderstats.Money is where the money value would be located, i need help puttting this into a GUI where it will auto-update when a player gets a certain amount of cash, help?
weeabooism convert
weeabooism convert |
|
|
| Report Abuse |
|
|
Zyperion
|
  |
| Joined: 10 May 2014 |
| Total Posts: 184 |
|
| |
|
Zyperion
|
  |
| Joined: 10 May 2014 |
| Total Posts: 184 |
|
|
| 15 May 2015 09:21 PM |
Help mee
weeabooism convert |
|
|
| Report Abuse |
|
|
drager980
|
  |
| Joined: 25 May 2009 |
| Total Posts: 13385 |
|
|
| 15 May 2015 09:24 PM |
LAZY 3 LINE CODE BELOW
game.Players.LocalPlayer:WaitForChild("leaderstats"):WaitForChild("Money").Changed:connect(function() script.Parent.Text = "Money: ".. game.Players.LocalPlayer.leaderstats.Money.Value end)
put that inside a textbox
AND THE TIGER GOES ROAR |
|
|
| Report Abuse |
|
|
Zyperion
|
  |
| Joined: 10 May 2014 |
| Total Posts: 184 |
|
|
| 15 May 2015 09:27 PM |
i love u <3
weeabooism convert |
|
|
| Report Abuse |
|
|
|
| 15 May 2015 09:43 PM |
| drager, a text label you dummdummz. |
|
|
| Report Abuse |
|
|
|
| 16 May 2015 02:01 AM |
Replace gui with where the gui thing is Script:
Local Money = game.Players.LocalPlayer.leaderstats.Money.Value gui.Text = "Money: " .. Money |
|
|
| Report Abuse |
|
|
|
| 16 May 2015 02:03 AM |
^
That will only do it once. You want a money GUI to update whenever the money updates, so make sure to use the .Changed event like the person far above me has done! |
|
|
| Report Abuse |
|
|