Changing avatar of chosen player

How can I make this script change the avatar of the current player into the classic ROBLOX noob, by deleting all accessories and changing the skin colour?

local plrs = game.Players

local survivors = {}

while wait(5) do
	local chosen = plrs:GetChildren()[math.random(1, #plrs:GetChildren())]	
	chosen.PlayerGui.Picker.Background.RoleGiven.Text = "Noob"
	chosen.PlayerGui.Picker.Background.RoleGiven.TextColor3 = Color3.fromRGB(0, 170, 255)			
	chosen.PlayerGui.Picker.Background.Visible = true
	print(chosen)
	char = game.Workspace:FindFirstChild(chosen.Name)
	print(char)

-- here is where I would change the avatar, I've started changing the 
-- colours here and it's been tested and works

	char["Body Colors"].HeadColor = BrickColor.new("Bright yellow")
	char["Body Colors"].LeftArmColor = BrickColor.new("Bright yellow")
	char["Body Colors"].RightArmColor = BrickColor.new("Bright yellow")	
end
1 Like

Don’t manually change all of the accessories, use a HumanoidDescription. It will make your life so much easier.

2 Likes

How can I use this to set the players avatar to a Noob, to make it R6 and block limbs

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.