vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 06 Jul 2014 09:28 AM |
Frame = script.Parent print("B") Options = Frame:WaitForChild("Options") print("C") MainColor = Options:WaitForChild("MainColor") print("Waited")
http://prntscr.com/3zxvnl
Never prints Waited |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2014 11:14 AM |
| u probably spelled maincolor wrong in some way, like accidentally added a space to the end of it in its properties |
|
|
| Report Abuse |
|
|
Dicentium
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 18560 |
|
|
| 06 Jul 2014 11:17 AM |
Nothing is impossible; there are ways that lead to everything, and if we had sufficient will we should always have sufficient means. It is often merely for an excuse that we say things are impossible.
|
|
|
| Report Abuse |
|
|
|
| 06 Jul 2014 11:24 AM |
Because 'MainColor' can never be found, so it was waiting forever. Just a tip that I have learned: When there seems to be an impossible error, make sure to read the code line-by-line, going through all of the possible reasons that you are not getting the output that you want.
|
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
|
| 06 Jul 2014 11:33 AM |
| Put a wait(1) at the beginning. WaitForChild literally breaks unless you do that. At least for me. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2014 11:36 AM |
Script is inside Options. Frame is options. Check for MainColor inside Frame. |
|
|
| Report Abuse |
|
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 06 Jul 2014 02:41 PM |
| No space and looked through carefully. |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
RealLua
|
  |
| Joined: 19 Jul 2013 |
| Total Posts: 50 |
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 07 Jul 2014 06:19 AM |
K it sees that its always nil.
FilteringEnabled is enabled. |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 07 Jul 2014 06:25 AM |
| It also says it has no children at all. |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
|
| 07 Jul 2014 06:53 AM |
| Did you try putting wait(1) at the beginning of the script? |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
jasondee1
|
  |
| Joined: 26 Jul 2008 |
| Total Posts: 8002 |
|
|
| 07 Jul 2014 08:57 AM |
| try replacing "Options" with Frame:FindFirstChild("Options") and then adding WaitForChild below that. I would think the reason is because your assigning WaitForChild to a variable, and Lua doesnt know how to handle it when its called (I wouldn't even know HOW it would be called that way) |
|
|
| Report Abuse |
|
|
jasondee1
|
  |
| Joined: 26 Jul 2008 |
| Total Posts: 8002 |
|
|
| 07 Jul 2014 08:58 AM |
| Could be a filtering enabled problem. But follow my advice and see if that works |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 07 Jul 2014 09:18 AM |
It says it doesn't have childs at all. OH NO NOOOOOOOOOOOOOOOOOOOOOOOOOOOOO Ugh. I found the problem. I had another thing called Options. Such Stupiid Me. |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 07 Jul 2014 09:21 AM |
| Sorry and thanks for your help everyone... :/ |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 07 Jul 2014 10:02 AM |
| How is this still the #1 just replied post. |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
|
| 07 Jul 2014 10:07 AM |
| - __________________________________________________ - |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2014 10:09 AM |
| Why is this not in SH, anyway? |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 07 Jul 2014 11:16 AM |
Because I found this question hard, and couldn't figure it out. SH likely doesn't know the master errors and fixes, which in this case it wasen't. :/ |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2014 11:20 AM |
| But this belongs in SH, not here... |
|
|
| Report Abuse |
|
|
leilahcat
|
  |
| Joined: 08 Feb 2014 |
| Total Posts: 120 |
|
|
| 07 Jul 2014 11:27 AM |
>- __________________________________________________ -
Oysi is whale confirmed. |
|
|
| Report Abuse |
|
|
RealLua
|
  |
| Joined: 19 Jul 2013 |
| Total Posts: 50 |
|
|
| 07 Jul 2014 03:35 PM |
| Make moving it from a local script into a normal will help? |
|
|
| Report Abuse |
|
|