DeHata
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 617 |
|
|
| 06 Oct 2011 07:04 PM |
x = script.Parent.Money
while true do script.Parent.Text = x.value + (x.Value * .06) x.Value = x.value + (x.Value * .06) Wait (10) end
--- This script should raise the value by six percent every ten seconds, as well as the text. Right? If there are any flaws, please tell me. |
|
|
| Report Abuse |
|
|
DeHata
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 617 |
|
|
| 06 Oct 2011 07:05 PM |
Wait, nevermind about that.. just this...
x = script.Parent.Money
while true do script.Parent.Text = x.value x.Value = x.value + (x.Value * .06) Wait (10) end
Or else the text would be WAY ahead.. |
|
|
| Report Abuse |
|
|
Lowcart
|
  |
| Joined: 12 Sep 2011 |
| Total Posts: 1323 |
|
| |
|
|
| 06 Oct 2011 07:08 PM |
x = script.Parent.Money
x.Changed:connect(function(s) if s == "Value" then script.Parent.Text = x.Value end end)
while true do x.Value = x.value + (x.Value * .06) Wait (10) end |
|
|
| Report Abuse |
|
|
DeHata
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 617 |
|
|
| 06 Oct 2011 07:10 PM |
| I'm using a number value, the Value is named money, and this is to edit money's value. |
|
|
| Report Abuse |
|
|
|
| 06 Oct 2011 07:10 PM |
| yeah, when it changes the text is the value |
|
|
| Report Abuse |
|
|
DeHata
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 617 |
|
|
| 06 Oct 2011 07:11 PM |
| it's for a tycoon bank that adds interest. |
|
|
| Report Abuse |
|
|
|
| 06 Oct 2011 07:14 PM |
| Just try it. if it doesn't work the way u dont want to then post back |
|
|
| Report Abuse |
|
|
xvgigakid
|
  |
| Joined: 22 Jun 2008 |
| Total Posts: 4407 |
|
|
| 06 Oct 2011 07:18 PM |
x = script.Parent.Money
while true do script.Parent.Text = x.value x.Value = x.Value + (x.Value * .06) --<-- You forgot to capitilize the V on Value. Wait (10) end
|
|
|
| Report Abuse |
|
|