Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 07 Aug 2013 04:36 PM |
_G.Open = {} _G.Closed = {}
script.Parent.Touched:connect(function(hit) if hit.Name ~= "GridPart" then script.Parent.Available.Value = false table.insert(_G.Closed,script.Parent) elseif hit.Name == "GridPart" then script.Parent.Available.Value = true table.insert(_G.Open,script.Parent) end end)
|
|
|
| Report Abuse |
|
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
| |
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
| |
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
| |
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 08 Aug 2013 04:21 PM |
| Alright since no one is helping I tried a few tests. It appears the whole script is not working. When I do print(_G.Open) it returns false |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2013 04:32 PM |
Because in this line:
table.insert(--whatever you put in here)
You put 'script.Parent'. You need to put the table name. |
|
|
| Report Abuse |
|
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 08 Aug 2013 04:33 PM |
| The table name is _G.Open, I am inserting script.Parent into the table |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2013 04:37 PM |
What is 'script.Parent' ?
A brick? A script? |
|
|
| Report Abuse |
|
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
| |
|