Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I change the R6 type body colors??

I was trying to do that and i saw the name of the parts have spaces on it, like "right arm" and "left arm". So, how do i do that??

local Tool = script.Parent;

local player = script.Parent.Parent

Tool.Equipped:connect(function()

player.Right Arm.BrickColor = BrickColor.new("Linen")

end)


it didnt work for me. Help pls

1 answer

✓ Accepted answer

When trying to get instances/objects with names that have a space (" ") in them, use []s. (e.g. game.Workspace["Some Stuff Here"]).

In your case, you can use ["Right Arm"].

local Tool = script.Parent;

local player = script.Parent.Parent

Tool.Equipped:connect(function()

	player["Right Arm"].BrickColor = BrickColor.new("Linen")

end)

I hope this will help. Feel free to leave any questions in the comments.

This discussion is preserved as it was. New answers, comments, and votes are closed.