RoyMer
|
  |
| Joined: 06 Jan 2010 |
| Total Posts: 1922 |
|
|
| 18 Jul 2015 05:06 PM |
while true do local player = game.Players.LocalPlayer script.Parent.Text = player.ds:FindFirstChild("Cash").Value end
What is wrong with this script? |
|
|
| Report Abuse |
|
|
ShungTzu
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 959 |
|
|
| 18 Jul 2015 05:09 PM |
It's a while loop.
In addition to that problem, it doesn't have a wait. |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2015 05:10 PM |
There is no wait and it will crash!
Try using the .Changed event!
player.ds.Cash.Changed:connect(function() script.Parent.Text = player.ds.Cash.Value end) |
|
|
| Report Abuse |
|
|
RoyMer
|
  |
| Joined: 06 Jan 2010 |
| Total Posts: 1922 |
|
|
| 18 Jul 2015 05:17 PM |
| Still cannot get it to work, it is a Local Script in a Text Label, should that be correct? |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2015 05:18 PM |
| What is the output in Studio telling you when you test it? |
|
|
| Report Abuse |
|
|
RoyMer
|
  |
| Joined: 06 Jan 2010 |
| Total Posts: 1922 |
|
|
| 18 Jul 2015 05:20 PM |
| Nothing, everything seems correct :/ |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2015 05:21 PM |
Try this
script.Parent.Text = ""..player.ds.Cash.Value.."" player.ds.Cash.Changed:connect(function() script.Parent.Text = ""..player.ds.Cash.Value.."" end) |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2015 05:21 PM |
| No errors and it's not changing when you start the game and change the value? Is the script disabled? |
|
|
| Report Abuse |
|
|
RoyMer
|
  |
| Joined: 06 Jan 2010 |
| Total Posts: 1922 |
|
|
| 18 Jul 2015 05:23 PM |
| Nothing is working, no the script is not disabled. |
|
|
| Report Abuse |
|
|
ShungTzu
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 959 |
|
| |
|
RoyMer
|
  |
| Joined: 06 Jan 2010 |
| Total Posts: 1922 |
|
|
| 18 Jul 2015 05:26 PM |
| Thanks for the help, but have found a working version |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2015 05:27 PM |
| Do you mind telling me how you fixed it? |
|
|
| Report Abuse |
|
|
ShungTzu
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 959 |
|
|
| 18 Jul 2015 05:27 PM |
| It wouldn't hurt to find out what was going wrong, so you can know. |
|
|
| Report Abuse |
|
|
RoyMer
|
  |
| Joined: 06 Jan 2010 |
| Total Posts: 1922 |
|
|
| 18 Jul 2015 05:57 PM |
| Didn't fix it, just found a working version |
|
|
| Report Abuse |
|
|