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 » Scripters
Home Search
 

Re: How do I access parts with a space in their name?

Previous Thread :: Next Thread 
cornholio234 is not online. cornholio234
Joined: 22 Oct 2010
Total Posts: 15142
01 Jan 2015 01:03 PM
For example, I was experimenting with a local script and the arm of your character is called "Left Arm", instead of "LeftArm". How do I access it?


playa = game.Players.LocalPlayer:FindFirstChild("Left Arm")

playa.BrickColor = BrickColor.new ("Really blue")

It says playa is a nil value?
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
01 Jan 2015 01:05 PM
parent["Child Here"]
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
01 Jan 2015 01:05 PM

playa = game.Players.LocalPlayer.Character:FindFirstChild("Left Arm") -- there are not any parts in local player

Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
01 Jan 2015 01:06 PM
you'll want to do


:WaitForChild'Character'
Report Abuse
cornholio234 is not online. cornholio234
Joined: 22 Oct 2010
Total Posts: 15142
01 Jan 2015 01:31 PM
i can't do one thing on this game right

without the bool part of this script i'm about to post - it works but then my default character overrides the really blue color, how do i keep it from doing that

playa = game.Players.LocalPlayer
bool = false
if bool then
playa.Character["Left Arm"].BrickColor = BrickColor.new ("Really blue")
print("Turned blue")

end
Report Abuse
Mikesly is not online. Mikesly
Joined: 07 Sep 2007
Total Posts: 4593
01 Jan 2015 01:34 PM
Change your player's "Body Colors" values instead of the BrickColors in the actual body parts.
Report Abuse
cornholio234 is not online. cornholio234
Joined: 22 Oct 2010
Total Posts: 15142
01 Jan 2015 01:46 PM
That isn't working and there's nothing in the output bar, please help.

playa = game.Players.LocalPlayer
playa.Character["Body Colors"].LeftArmColor = "Really Blue"
print("Turned blue")

end
Report Abuse
cornholio234 is not online. cornholio234
Joined: 22 Oct 2010
Total Posts: 15142
01 Jan 2015 01:48 PM
actually, omit that end. Now it's giving me an error that Body Colors isn't part of model
Report Abuse
haydebug2003 is not online. haydebug2003
Joined: 21 Jan 2012
Total Posts: 5302
01 Jan 2015 01:49 PM
playa = game.Players.LocalPlayer
playa.Character["Body Colors"].LeftArmColor = BrickColor.new("Really Blue")
print("Turned blue")

end

I believe this should work.


That awkward moment when you read this siggy and are like "What is this"
Report Abuse
cornholio234 is not online. cornholio234
Joined: 22 Oct 2010
Total Posts: 15142
01 Jan 2015 01:52 PM
that didn't work, bodycolors isn't a brickcolor thing either i think, my problem is that Body Colors isn't a part of model
Report Abuse
cornholio234 is not online. cornholio234
Joined: 22 Oct 2010
Total Posts: 15142
01 Jan 2015 02:04 PM
bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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