i am working on a customization gui and when I use load asset through insert service the hat keeps cloning and I only want it to go in to the character ounce, I just need some help, I want the hat to clone in after it deletes a hat, Heres the code I have:

while wait(0.2)do
	local Content = script.Parent.Parent.ChooserValue
	local p = game.Players.LocalPlayer
	local c = p.Character
	
	
	if Content.Value == 1 then
		script.Parent.Text = "HairNameGoesHere"
		for _,x in pairs(c:GetChildren()) do
			if x.ClassName == "Hat" then
				x:Destroy()
			end
		end
	end
	

end

1 comment

0

Just clone the hat model into the character and it will automatically be placed on the user's head.