DevKonner
|
  |
| Joined: 04 Feb 2012 |
| Total Posts: 519 |
|
|
| 18 Jan 2016 10:17 AM |
person = game.Workspace:findFirstChild(script.Parent.Parent.Owner.Value) gasGUI = script.Parent
while true do wait(0.1) if person:findFirstChild(script.Parent.Parent.Owner.Value) ~= nil then local fuel = person:findFirstChild(script.Parent.Parent.Owner.Value):findFirstChild("Drive").Gas.Value if fuel == 18 then script.Parent.Text = fuel.." Gallons" elseif fuel == 17 then script.Parent.Text = fuel.." Gallons" end end end
I dont know why this is giving me a nil value on line 1 and the 7th line |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 18 Jan 2016 10:19 AM |
>finds a value
http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$231 Tx377 (づ ゚ ³ ゚)づ |
|
|
| Report Abuse |
|
|
DevKonner
|
  |
| Joined: 04 Feb 2012 |
| Total Posts: 519 |
|
|
| 18 Jan 2016 10:20 AM |
| So they cannot find a value then? |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 18 Jan 2016 10:24 AM |
idk u tell me
self proclaimed developer
http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$231 Tx377 (づ ゚ ³ ゚)づ |
|
|
| Report Abuse |
|
|