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
 

Re: attempt to index local 'beter' (a nil value)

Previous Thread :: Next Thread 
s_nowfall is online. s_nowfall
Joined: 19 Aug 2015
Total Posts: 12855
24 Jun 2017 02:49 PM
this is the func

function waitForDialogChildrenMyLord(beter, name)
while not beter:FindFirstChild(name) do
beter.ChildAdded:wait()
end
end
Report Abuse
kojocrash is not online. kojocrash
Joined: 07 Sep 2013
Total Posts: 277
24 Jun 2017 02:52 PM
where is the variable calling it, and what is beter
Report Abuse
rondefrain is not online. rondefrain
Joined: 25 Apr 2014
Total Posts: 261
24 Jun 2017 02:52 PM
what are beter and name in this function
Report Abuse
Legoman654 is not online. Legoman654
Joined: 05 Jun 2008
Total Posts: 534
24 Jun 2017 03:10 PM
beter is your passed argument and your error states that nothing is actually being passed/exists. So you'd want to look back at where you call this function and make sure beter is being properly defined
Report Abuse
s_nowfall is online. s_nowfall
Joined: 19 Aug 2015
Total Posts: 12855
24 Jun 2017 03:17 PM
I put "local beter". What should I add to it?
Report Abuse
Legoman654 is not online. Legoman654
Joined: 05 Jun 2008
Total Posts: 534
24 Jun 2017 03:18 PM
Well what is beter? You need to define that for the function, not just local beter
Report Abuse
s_nowfall is online. s_nowfall
Joined: 19 Aug 2015
Total Posts: 12855
24 Jun 2017 03:26 PM
How would I do that? Sorry for the stupid question, I'm a newb at lua
Report Abuse
Legoman654 is not online. Legoman654
Joined: 05 Jun 2008
Total Posts: 534
24 Jun 2017 03:35 PM
What is beter defining or referring to? If it's a model you have to let Lua know that

local beter = workspace.someModel

You have to give a reference to its location
Report Abuse
s_nowfall is online. s_nowfall
Joined: 19 Aug 2015
Total Posts: 12855
24 Jun 2017 03:53 PM
Thanks, that fixed it!!
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