Shirt Change not working!

If i manually put another shirt and pants instance, there’s going to be 2 of each.

Because of parenting the clone from Replicated Storage?

I mean like you make a folder inside of the player and put a new shirt and pants instance inside of the folder.

Yeah that’s what I’m doing, but if it replicates to the player, won’t there be 2 sets?

Why would you clone it from replicatedstorage when you can just rewrite the shirt and pants templates.

That was his problem. It didn’t worked. Maybe it is a code problem?

Yeah but theres one in the player and one in the character so it wont cause any issues if you parent the folder to the player when they join.

He isn’t cloning it from ReplicatedStorage though.

I just said tho try that. He could simply move the shirt and pants, if it is better.

Why would that be good though if we wants to save the templates?

Alright I tried adding the instances in a folder in replicated storage manually but it ain’t working.

local SuitParts = ReplicatedStorage.SuitParts
local Top = SuitParts.Top
local Bottom = SuitParts.Bottom


SuitUp.OnServerEvent:Connect(function(Player)
	local Character = Player.Character or Player.CharacterAdded:Wait()
	local Humanoid = Player.Character:FindFirstChild("Humanoid")
	local OriginalShirt = Character.Shirt.ShirtTemplate
	local OriginalPants = Character.Pants.PantsTemplate
	for _,v in pairs(Character:GetChildren()) do
		if v:IsA("Accessory") and not v.Handle:FindFirstChild("HairAttachment")then
			v.Handle.Transparency = 1
		end
	end
	Top.Parent = Character
	Bottom.Parent = Character
	
	
end)

Man i never knew freaking CLOTHING would be so annoying.

I suggested that before he told that he wants to save the templates.

No i mean like create a new folder in every player when they join because every player will have different shirts and pants.

So where do i put the folder? Starterplayer?

I think StarterCharacter Scripts, to be cloned inside the rig

So not the replicated storage like you’ve been saying?

	game:GetService("Players").PlayerAdded:Connect(function(Player)
		local newFolder = Instance.new("Folder") 
		newFolder.Name = "DefaultClothing"
		newFolder.Parent = Player
		local Shirt = Instance.new("Shirt")
		local Pants = Instance.new("Pants")
		Shirt.Parent = newFolder
		Pants.Parent = newFolder
		Player.CharacterAdded:Connect(function(Character)
			Shirt.ShirtTemplate = Character.Shirt.ShirtTemplate
			Pants.PantsTemplate = Character.Pants.PantsTemplate
		end)
	end)

	SuitUp.OnServerEvent:Connect(function(Player)
		local SuitParts = Player.DefaultClothing
		local Top = SuitParts.Top
		local Bottom = SuitParts.Bottom
		local Character = Player.Character or Player.CharacterAdded:Wait()
		local Humanoid = Player.Character:FindFirstChild("Humanoid")
		local OriginalShirt = Character.Shirt.ShirtTemplate
		local OriginalPants = Character.Pants.PantsTemplate
		for _,v in pairs(Character:GetChildren()) do
			if v:IsA("Accessory") and not v.Handle:FindFirstChild("HairAttachment")then
				v.Handle.Transparency = 1
			end
		end
		OriginalShirt = "ShirtTemplate"
		OriginalPants = "PantsTemplate"
	end)

put this inside of the server script and get rid of the folder you made

I didn’t said to put the folder in Replicated Storage

Here is the quote man. Okay maybe not folder, but shirt and pants.

The instances, not a folder. That is what i said