worker=false part=script.Parent function onTouch(T)local z=T.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")if z~=nil and worker==false then print("\083\117\099\099\101\115\115")worker=true wait(.1)local z=T.Parent:GetChildren()for T=1,#z,1 do if z[T].className=="\080\097\110\116\115"then z[T].PantsTemplate=""end end local C=T.Parent:GetChildren()for T=1,#C,1 do if C[T].className=="\083\104\105\114\116"then C[T].ShirtTemplate=""wait(1)worker=false end end end end script.Parent.Touched:connect(onTouch)


worker = false
part = script.Parent

function onTouch(hit)
	local human = hit.Parent:FindFirstChild("Humanoid")
	if (human ~= nil) and (worker == false) then
		print ("Success")
		worker = true
		wait(.1)
		local pant = hit.Parent:GetChildren()
		for i=1,#pant do
		if (pant[i].className == "Pants") then
			pant[i].PantsTemplate = ""
			end
		end
		local shirt = hit.Parent:GetChildren()
		for i=1,#shirt do
		if (shirt[i].className == "Shirt") then
			shirt[i].ShirtTemplate = ""
			wait(1)
			worker = false
			end
		end
	end
end

script.Parent.Touched:connect(onTouch)
