I have this:
water = script.Parent water.Touched:connect(function(hit) if hit.Name == ("Sponge") then hit.Sound:Play() water.TouchEnded:connect(function(hit) if hit.Name == ("Sponge") then hit.Sound:Play() wait() end end) end end)
How can I simplify this so I won't have to keep redefining "hit"?