The problem is i'm trying to make a gui that gives black hair to a character but it doesn't generate
print("Hello output!")
plr = game.Players.LocalPlayer
hair = workspace["Beautiful Hair For Beautiful People"]:Clone()
debounce = true
function onTouched()
if (plr.Character:findFirstChild("Humanoid") ~= nil and debounce == true) then
debounce = false
local h = Instance.new("Hat")
local p = Instance.new("Part")
h.Name = "Ultra-Fabulous Hair"
p.Parent = h
p.Position = plr.Character:FindFirstChild("Head").Position
p.Name = "Handle"
p.formFactor = 0
p.Size = Vector3.new(2,2,2)
p.BottomSurface = 0
p.TopSurface = 0
p.Locked = true
hair.Mesh:clone().Parent = p
h.Parent = plr.Character
h.AttachmentPos = Vector3.new(0, 0, 0)
wait(5)
debounce = true
end
end

2 comments
First up take out Hello output that whole line second up you could just use a morph button or take a hat and make it into the tool it takes a while and then you can hook it up to the script or just use a screen GUI with it click it and youll get it.
I don't want a tool i want a hair gui giver...