So i'm making a game and i want to get a players skin tone onto a brick and i want to know how to do that. If you want to know what I am doing then I will tell you for more context. I am making a shooter game and the arms for the shooter game needs to be the color of the players arm so it matches up.
My code:
------Variables------
local PlayerName = game.Players.LocalPlayer.Name
local Arms = game.Workspace.Arms
local Camera = game.Workspace.Camera
local Run = game:GetService("RunService")
Run.RenderStepped:Connect(function()
Arms.HumanoidRootPart.CFrame = (Camera.CFrame * CFrame.new(0,-1.5,0))
end)
------Hand Color------
while true do
Arms.LeftArm.BrickColor = PlayerName("Left Arm").BrickColor
Arms.RightArm.BrickColor = Arms.LeftArm.BrickColor
end

1 comment
I'm not 100% sure, but in line 15 it should be PlayerName["Left Arm"]. Also, there should be a wait() in the loop otherwise it will timeout, secondly it's better if you put lines 15 and 16 in the RenderStepped connection in line 08.