debounce=true function onTouched(F)if F.Parent:findFirstChild("\072\117\109\097\110\111\105\100")~=nil and debounce==true then debounce=false h=Instance.new("\072\097\116")p=Instance.new("\080\097\114\116")h.Name="\084\111\112\072\097\116"p.Parent=h p.Position=(F.Parent:findFirstChild("\072\101\097\100")).Position p.Name="\072\097\110\100\108\101"p.formFactor=0 p.Size=Vector3.new(0,-0.25,0)p.BottomSurface=0 p.TopSurface=0 p.Locked=true;(script.Parent.Mesh:clone()).Parent=p h.Parent=F.Parent h.AttachmentPos=Vector3.new(0,.6,-0.17)wait(5)debounce=true end end script.Parent.Touched:connect(onTouched)


debounce = true

function onTouched(hit)
	if (hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true) then
		debounce = false
		h = Instance.new("Hat")
		p = Instance.new("Part")
		h.Name = "TopHat"
		p.Parent = h
		p.Position = hit.Parent:findFirstChild("Head").Position
		p.Name = "Handle" 
		p.formFactor = 0
		p.Size = Vector3.new(0,-0.25,0) 
		p.BottomSurface = 0 
		p.TopSurface = 0 
		p.Locked = true 
		script.Parent.Mesh:clone().Parent = p
		h.Parent = hit.Parent
		h.AttachmentPos = Vector3.new(0, 0.6, -0.170)
		wait(5)
		debounce = true
	end
end

script.Parent.Touched:connect(onTouched)

