|
| 24 Sep 2013 09:55 PM |
scenario, I stuck a model in lighting, named brick, containing 1 brick. I made a button with a script that drags it out of lighting and puts it on top of the "pad brick"
function onTouched() local nxt = game.Lighting.brick nxt.Parent = script.Parent.Parent.Parent nxt:MoveTo(script.Parent.Parent.Parent.pad.Position, script.Parent.Parent.Parent.pad) end
script.Parent.Touched:connect(onTouched)
error - Brick is not a valid member of Lighting *does what I want it to do anyways yellow text - Disconnected because of an exception
what the heck? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 24 Sep 2013 10:19 PM |
| Is the brick named "brick" or "Brick?" It is finding Lighting but it can't find the object you want. |
|
|
| Report Abuse |
|
|
| |
|