Shirt is not a valid member of Model "Workspace.HertsDan"

I’m so confused, It’s literally the member/child of the player’s character how do I fix this? I’m trying to make a local shirt rack thing, It’s a local script btw.

My script:

local Camera = workspace.CurrentCamera

if not Camera then
	local Camera = workspace.CurrentCamera
	Camera.Name = "LocalCamera"
end
	
local Player = game.Players.LocalPlayer
local Char = Player.Character or Player.CharacterAdded:Wait()

function Add1()
	local PlrShirt = Char.Shirt:Clone()
	PlrShirt.Parent = workspace.PlayerClothes1.Clothing
	workspace.PlayerClothes1.Parent = Camera
	
	local PlrPants = Char.Pants:Clone()
	PlrPants.Parent = workspace.PlayerClothes1.Clothing
	
	return
end

function Add2()
	local PlrShirt = Char.Shirt:Clone()
	PlrShirt.Parent = workspace.PlayerClothes2.Clothing
	workspace.PlayerClothes1.Parent = Camera

	local PlrPants = Char.Pants:Clone()
	PlrPants.Parent = workspace.PlayerClothes2.Clothing

	return
end

Add1()
Add2()

You can try using Character:WaitForChild(“Shirt”)

1 Like

You should consider using the WaitForChild() function instead of trying to reference Char.Shirt directly, for example: Char:WaitForChild("Shirt").

EDIT: Darn typos.

1 Like

Thank yall! rlly appreciate it