|
| 27 Jul 2011 08:48 AM |
item = game.Lighting.['iPod Nano']:Clone() --I forgot how to do this player = script.Parent.Parent.Parent.Parent.Parent function onClicked() item.Parent = player.Backpack end script.Parent.MouseButton1Down:connect(onClicked) |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Jul 2011 08:56 AM |
| Is this for a GUI or a ClickDetector? Also, where is the script? And how are you referencing which player clicked it? |
|
|
| Report Abuse |
|
|
|
| 27 Jul 2011 08:59 AM |
That's all fine its the first line I don't get...where it says: item = game.Lighting.['iPod Nano']:Clone() I didn't do it right can someone fix it? |
|
|
| Report Abuse |
|
|
nike6330
|
  |
| Joined: 11 Feb 2009 |
| Total Posts: 154 |
|
|
| 27 Jul 2011 09:01 AM |
| I quess you dont need "." before [ |
|
|
| Report Abuse |
|
|
xvgigakid
|
  |
| Joined: 22 Jun 2008 |
| Total Posts: 4407 |
|
|
| 27 Jul 2011 09:01 AM |
item = game.Lighting['iPod Nano']:Clone()
The '.' after lightning has to be removed. Although im not veyr familiar with this statement I ussualy use thiss technique.
item = game.Lighting:findFirstChild("iPod Nano"):Clone()
|
|
|
| Report Abuse |
|
|
|
| 27 Jul 2011 09:01 AM |
| Oh! That's what I forgot! Thanks. |
|
|
| Report Abuse |
|
|
Actoz
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 2745 |
|
|
| 27 Jul 2011 09:04 AM |
| item = game.Lighting["iPod Nano"]:Clone() |
|
|
| Report Abuse |
|
|
|
| 27 Jul 2011 09:07 AM |
It should just be like this:
item = game.Lighting.["iPod Nano"]:Clone() --I forgot how to do this player = script.Parent.Parent.Parent.Parent.Parent function onClicked() item.Parent = player.Backpack end script.Parent.MouseButton1Down:connect(onClicked) ------------------------- item = game.Lighting.["iPod Nano"]:Clone() --I forgot how to do this Your simple error was just the ['iPod Nano'] ^ I make simple errors all the time xD
|
|
|
| Report Abuse |
|
|
| |
|