function hit() print("got it") if hit.Parent:FindFirstChild("Humanoid") then print("ayy") end end script.Parent.Lighten.Touched:Connect(hit) script.Parent.Lighten2.Touched:Connect(hit)
It's in a script which has other things too It doesn't print anything too.
Here's a proper example of how to use .Touched
--we can do this one of two ways: local part = workspace.Part --for example part.Touched:Connect(function(PartThatTouched) if PartThatTouched.Parent:FindFirstChild("Humanoid") then print(PartThatTouched.Name) end end) --or we can use a named function function OnTouch(PartThatTouched) if PartThatTouched.Parent:FindFirstChild("Humanoid") then print(PartThatTouched.Name) end end part.Touched:Connect(OnTouch)