In the console it says "OroHair is not a valid member of Workspace "Workspace", but the hair IS in Workspace.

game.Players.PlayerAdded:connect(function(player)
	player.CharacterAdded:connect(function(char)


		local plr = game.Players:FindFirstChild(char.Name) 

		if player.Name == "Incinerxte" then 
			plr.CanLoadCharacterAppearance = false 
			local Shirt = Instance.new("Shirt",plr.Character)
			Shirt.ShirtTemplate = "rbxassetid://5523615166"
			local Pants = Instance.new("Pants",plr.Character)
			Pants.PantsTemplate = "rbxassetid://5997687492"
			local Hair = game.Workspace.OroHair:Clone()
			Hair.Parent = plr.Character
			local Weld = Instance.new("Weld",Hair)
			Weld.Part0 = Hair
			Weld.Part1 = plr.Character.Head
			Weld.C0 = CFrame.new(-0.05,1.29,.23)
			Weld.C0 = Hair.Weld.C0 * CFrame.Angles(0, math.rad(180), 0)
			plr.Character.Head.face.Texture = "rbxassetid://2406686606" 
			local BodyColors = Instance.new("BodyColors",plr.Character)
			BodyColors.HeadColor = BrickColor.new("White")
			BodyColors.HeadColor3 = Color3.fromRGB(242, 243, 243)
			BodyColors.LeftArmColor = BrickColor.new("White")
			BodyColors.LeftArmColor3 = Color3.fromRGB(242, 243, 243)
			BodyColors.LeftLegColor = BrickColor.new("White")
			BodyColors.LeftLegColor3 = Color3.fromRGB(242, 243, 243)
			BodyColors.RightArmColor = BrickColor.new("White")
			BodyColors.RightArmColor3 = Color3.fromRGB(242, 243, 243)
			BodyColors.RightLegColor = BrickColor.new("White")
			BodyColors.RightLegColor3 = Color3.fromRGB(242, 243, 243)
			BodyColors.TorsoColor = BrickColor.new("White")
			BodyColors.TorsoColor3 = Color3.fromRGB(242, 243, 243)


		else if player.Name == "example" then 






			end
		end	
	end)
end)

screenshot of console error: https://gyazo.com/95a4f463166f4f16a9f8d450e764b209

screenshot of workspace: https://gyazo.com/51259290578d1e6e13ffb5828321b2d9

2 comments

0

are you really trying to change the appearance of 1 person or all cuz if its all then you should look at this https://devforum.roblox.com/t/replacing-the-default-character-with-a-custom-character/19344 if not though then it probably hasnt loaded in yet and was getting called

0

use WaitForChild("OroHair")