I created a script and put it in the server script service to change a players skin color when they join the game. There are no errors but it doesn't do anything.
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) if character.Humanoid.RigType == Enum.HumanoidRigType.R15 then character.Head.BrickColor = BrickColor.new("Royal purple")` character.UpperTorso.BrickColor = BrickColor.new("Royal purple") character.LowerTorso.BrickColor = BrickColor.new("Royal purple") character.LeftUpperArm.BrickColor = BrickColor.new("Royal purple") character.LeftLowerArm.BrickColor = BrickColor.new("Royal purple") character.RightUpperArm.BrickColor = BrickColor.new("Royal purple") character.RightLowerArm.BrickColor = BrickColor.new("Royal purple") character.LeftUpperLeg.BrickColor = BrickColor.new("Royal purple") character.LeftLowerLeg.BrickColor = BrickColor.new("Royal purple") character.RightUpperLeg.BrickColor = BrickColor.new("Royal purple") character.RightLowerLeg.BrickColor = BrickColor.new("Royal purple") character.LeftHand.BrickColor = BrickColor.new("Royal purple") character.RightHand.BrickColor = BrickColor.new("Royal purple") character.LeftFoot.BrickColor = BrickColor.new("Royal purple") character.RightFoot.BrickColor = BrickColor.new("Royal purple") end if character.Humanoid.RigType == Enum.HumanoidRigType.R6 then character.Head.BrickColor = BrickColor.new("Royal purple") character.Torso.BrickColor = BrickColor.new("Royal purple") character.RightArm.BrickColor = BrickColor.new("Royal purple") character.LeftArm.BrickColor = BrickColor.new("Royal purple") character.RightLeg.BrickColor = BrickColor.new("Royal purple") character.LeftLeg.BrickColor = BrickColor.new("Royal purple") end end) end)
In the players character there is a BodyColor Instance. You can simply change the properties of it to change the characters BodyColor. If the BodyColor instance is not there, you can insert it with Instance.new() Read more here: https://developer.roblox.com/en-us/api-reference/class/BodyColors