Hagar5000
|
  |
| Joined: 02 Apr 2008 |
| Total Posts: 467 |
|
|
| 14 Jul 2011 05:00 PM |
| New to any sort of real scripting, I was wondering how you properly add the name of an item with a space in it, like "Left Arm", into a script? Doesnt work with a space... |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 14 Jul 2011 05:01 PM |
Workspace.Player["Left Arm"]
Workspace.Player:FindFirstChild("Left Arm") |
|
|
| Report Abuse |
|
|
tofwap
|
  |
| Joined: 06 Dec 2007 |
| Total Posts: 6596 |
|
|
| 14 Jul 2011 05:01 PM |
two methods
A=Workspace:findFirstChild("Left Arm")
or
A=Workspace["Left Arm"] |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2011 05:01 PM |
If you're actually trying to get the left arm, do it as if you are indexing a table (because that's technically what you're doing):
workspace.Hagar5000["Left Arm"].Property |
|
|
| Report Abuse |
|
|
Hagar5000
|
  |
| Joined: 02 Apr 2008 |
| Total Posts: 467 |
|
| |
|
Mario8236
|
  |
| Joined: 11 Sep 2010 |
| Total Posts: 716 |
|
| |
|
| |
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 14 Jul 2011 05:02 PM |
@Mario8236
Won't work then. |
|
|
| Report Abuse |
|
|
Mario8236
|
  |
| Joined: 11 Sep 2010 |
| Total Posts: 716 |
|
|
| 14 Jul 2011 05:03 PM |
| I know, I suck at scwipting. DX |
|
|
| Report Abuse |
|
|
| |
|