hi, i was testing FindFirstChild instance but its not working at all, i tried to make it say human touched me when a humanoid touch it, but its not working
script.Parent.Touched:connect(function(onTouched)
local Human = onTouched:FindFirstChild("Humanoid")
if Human then
print("human touched me")
end
end)

1 comment
I don't reallly what isn't working, but maybe it's the Part variable? Try naming the part "hit" instead of "onTouched". If that isn't it, maybe open the output, so we can see if any errors pop up