generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Nil Value?

Previous Thread :: Next Thread 
DevKonner is not online. 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 is not online. 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 is not online. DevKonner
Joined: 04 Feb 2012
Total Posts: 519
18 Jan 2016 10:20 AM
So they cannot find a value then?
Report Abuse
xlaser23 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image