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"?

1 comment
What? You don't.. it's defined from the beginning, it's the parameter for your touched event. This is as simple as it gets.