generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Spaces

Previous Thread :: Next Thread 
Hagar5000 is not online. 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 is not online. 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 is not online. 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
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
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 is not online. Hagar5000
Joined: 02 Apr 2008
Total Posts: 467
14 Jul 2011 05:01 PM
Ahkay, thanks
Report Abuse
Mario8236 is not online. Mario8236
Joined: 11 Sep 2010
Total Posts: 716
14 Jul 2011 05:02 PM
Try it without a space.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
14 Jul 2011 05:02 PM
^ I lol'd
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
14 Jul 2011 05:02 PM
@Mario8236

Won't work then.
Report Abuse
Mario8236 is not online. Mario8236
Joined: 11 Sep 2010
Total Posts: 716
14 Jul 2011 05:03 PM
I know, I suck at scwipting. DX
Report Abuse
RobotWallE is not online. RobotWallE
Joined: 17 Jan 2009
Total Posts: 498
14 Jul 2011 05:14 PM
And Spelling.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image