01 | wait( 1 ) |
02 | local Player = game.Players.LocalPlayer |
03 | ra = Player.Character:FindFirstChild( "Right Arm" ) |
04 |
05 | if ra.BrickColor then |
06 |
07 | script.Parent.Handle.BrickColor.Color = ra.BrickColor.Color |
08 |
09 |
10 | end |
I want to find the color of the characters right arm and make it the color of the Handle This is in a LocalScript
This might work:
01 | wait( 1 ) |
02 |
03 | Player = game.Players.LocalPlayer |
04 |
05 | local ra = Player.Character:FindFirstChild( "Right Arm" ) |
06 |
07 | if ra.BrickColor then |
08 |
09 | script.Parent.Handle.BrickColor = BrickColor.new(ra.BrickColor) |
10 |
11 | end |
Sorry if I'm wrong.
If this is in a part, I don't think you can use LocalPlayer. So try this:
1 | player = script.Parent.Parent |
2 | wait( 1 ) |
3 | Player:WaitForChild( "Right Arm" ) |
4 | script.Parent.Handle.BrickColor.Color = ra.BrickColor.Color |
This should work...
1 | local Player = game.Players.LocalPlayer |
2 | repeat wait() until Player.Character.Humanoid ~ = nil -- Checks to make sure the Players Character is Loaded |
3 | ra = Player.Character:FindFirstChild( "Right Arm" ) |
4 |
5 | if ra then -- Checks to make sure ra Exists |
6 | script.Parent.Handle.BrickColor = BrickColor.new( ra.BrickColor) |
7 | end |