I have a person and when a player clicks it? No errors do appear. Any suggestions are appreciated!
local debounce = true
local Click = script.Parent.ClickDetector
Click.MouseClick:Connect(function(hit)
local h = hit.Parent:FindFirstChild("Humanoid")
if (h ~= nil and debounce == true) then
debounce = false
local p = script.Parent.Parent.Shirt:Clone()
p.Parent = hit.Parent
wait(1)
debounce = true
print("it works")
end
end)

1 comment
hit means the LocalPlayer, you do realise?