|
| 19 Mar 2013 09:41 PM |
This script is supposed to lower your gas every 20 seconds, and if your gas becomes 0, you can't drive. However, the only problem is that when the gas reaches 0, you can still drive, I don't know why. Output gave me nothing on this script... Help please!? Script:
local val = script.Parent script.Parent.Changed:connect(function(c) if (c=="Value") and (val.Value<1) then script.Parent.Parent.VehicleSeat.Disabled = true elseif not (val.Value>1) then script.Parent.Parent.VehicleSeat.Disabled = false end end)
while wait(20) do if val.Value > 0 then val.Value = val.Value - 1 end end |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 19 Mar 2013 09:47 PM |
..
elseif not (val.Value>1) then
..
elseif (val.Value>1) then
-Alex |
|
|
| Report Abuse |
|
|
| |
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
| |
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
| |
|