3sorey
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 1611 |
|
|
| 14 Dec 2013 06:24 PM |
Workspace.3sorey.Head:Destroy()
I Get the error Error in script: malformed number near '.3sorey' when I put this in the command bar.
Does anyone know what it is? |
|
|
| Report Abuse |
|
|
3sorey
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 1611 |
|
|
| 14 Dec 2013 06:26 PM |
| sorry wrong fourm I posted it again in scripting help. |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2013 06:50 PM |
I am nice and you apologised.
["3sorey"] instead of .3sorey |
|
|
| Report Abuse |
|
|
VilleSlay
|
  |
| Joined: 14 May 2011 |
| Total Posts: 1405 |
|
|
| 14 Dec 2013 07:14 PM |
Just because you apologised, if you are in play solo mode, use Player1 instead of your username.
~~> Ville <~~ |
|
|
| Report Abuse |
|
|
MettaurSp
|
  |
| Joined: 20 Mar 2010 |
| Total Posts: 3179 |
|
|
| 14 Dec 2013 07:15 PM |
| Try indexing using brackets when it comes to names starting with numbers. |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 14 Dec 2013 07:33 PM |
remember
a.b is only syntax sugar a["b"] is where the real goods are |
|
|
| Report Abuse |
|
|