|
| 14 Apr 2013 12:38 PM |
Like an example: If I had a map in lighting named blablabl_blablabl_blablabl
And I wanted to clone it, do the _'s have any effect on that, do I have to use :FindFirstChild(" ") or can I just say game.Lighting.blablabl_BLablalb_blalbal:Clone() |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2013 12:40 PM |
I don't believe so. if it has a space or starts with a number number you can just do
Game.Lighting["21313 blah blah blah"] |
|
|
| Report Abuse |
|
|
ForceSky
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 2379 |
|
|
| 14 Apr 2013 12:41 PM |
| Test the script and find out. |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2013 12:42 PM |
thank's pwned. I have a table of maps, like {vv.Map, vv.Mapp} Just an example. So I can do {vv.Map, vv.Mapp, vv[This has spaces]} |
|
|
| Report Abuse |
|
|
killjoy37
|
  |
| Joined: 27 Aug 2008 |
| Total Posts: 2821 |
|
|
| 14 Apr 2013 01:46 PM |
| Not sure if you can use periods |
|
|
| Report Abuse |
|
|
adark
|
  |
| Joined: 13 Jan 2008 |
| Total Posts: 6412 |
|
|
| 14 Apr 2013 02:12 PM |
| You have to use quotation marks inside the square brackets if you're using a string literal to find the object. No quotes means that Lua is looking for the variable with the name of whatever you put in there. |
|
|
| Report Abuse |
|
|
btft
|
  |
| Joined: 19 Feb 2011 |
| Total Posts: 1512 |
|
|
| 14 Apr 2013 02:29 PM |
| game.Lighting["blablabl_blablalb_blalba"].asdf |
|
|
| Report Abuse |
|
|
adark
|
  |
| Joined: 13 Jan 2008 |
| Total Posts: 6412 |
|
| |
|
|
| 15 Apr 2013 01:15 PM |
Um...
workspace.This_Is_My_Object
That's valid. _ is a valid identifier character in Lua, meaning you can use it as a name for indexing as well. |
|
|
| Report Abuse |
|
|