So I wanted to make a script that makes a player's body colour change when they touch a part but so far what I've tried doesn't work. Please help

	game.Players.PlayerAdded:connect(function(player)
		player.CharacterAdded:connect(function(character)
			wait(1)
			for _, child in pairs(character:GetChildren()) do
				if child:IsA("BasePart") then
					child.BrickColor = BrickColor.new("Dark green")

Is what I've tried

4 comments

0

I'd personally use a HumanoidDescription and make the Humanoid of the Character use the description. Not only is it easier, but it saves you quite a bit of time.

0

If you need BrickColor references as well, use https://developer.roblox.com/en-us/articles/BrickColor-Codes

0

Thanks! It works perfectly now.