AwHellNoo
|
  |
| Joined: 21 Mar 2014 |
| Total Posts: 125 |
|
|
| 07 Nov 2015 03:15 PM |
So script one says(btw stat is a string value):
stat = game.Workspace.stat
wait(1) print('Alright lets do this') wait(5)
stat.Value = "Ready"
then script two says(pow is a #value):
stat = game.Workspace.stat pow = game.Workspace.pow
if stat.Value == "Ready" then while true do pow.Value = pow.Value + 1 wait(1) end end
But the thing is that it switches it to "ready" but the other script doesnt pick up on it. Anyone tell me why? |
|
|
| Report Abuse |
|
|
hkep
|
  |
| Joined: 19 Jul 2014 |
| Total Posts: 550 |
|
|
| 07 Nov 2015 03:18 PM |
| your adding integers to a string value?!? |
|
|
| Report Abuse |
|
|
hkep
|
  |
| Joined: 19 Jul 2014 |
| Total Posts: 550 |
|
|
| 07 Nov 2015 03:20 PM |
try doing
if (stat.Value == "Ready") then
end |
|
|
| Report Abuse |
|
|
AwHellNoo
|
  |
| Joined: 21 Mar 2014 |
| Total Posts: 125 |
|
|
| 07 Nov 2015 03:22 PM |
@hkep
I just flippin said pow is a NumberValue, no where does it say ' add 1 to stat', stat is a string value. |
|
|
| Report Abuse |
|
|
AwHellNoo
|
  |
| Joined: 21 Mar 2014 |
| Total Posts: 125 |
|
| |
|
hkep
|
  |
| Joined: 19 Jul 2014 |
| Total Posts: 550 |
|
|
| 07 Nov 2015 03:28 PM |
local function StartAdding(pow) while true do pow.Value = pow.Value + 1 wait(1) end end; if (stat.Value == "Ready") then StartAdding(pow); else while not (stat.Value == "Ready") do stat.Changed:wait(); end; StartAdding(pow); end |
|
|
| Report Abuse |
|
|
AwHellNoo
|
  |
| Joined: 21 Mar 2014 |
| Total Posts: 125 |
|
|
| 07 Nov 2015 03:37 PM |
| @h Hm, aint working either. I'll just use an alternative method. Thanks for at least trying to help. |
|
|
| Report Abuse |
|
|