|
| 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 |
|
|
| |
|
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 |
|
|
|
| 01 Jan 2015 01:06 PM |
you'll want to do
:WaitForChild'Character' |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|