In my friends game, fish are spawned in a random location every 5 seconds. I have a script and I need it to check if any of the existing fish in workspace have been touched. How am I supposed to do this? I have tried writing:
game.Workspace.Fish.Touched:Connect(function(hit) --Fires if fish touched
if hit.Parent.Name == "WoodenFishingRod" then
fish:Destroy()
print("Fish Caught!")
script.Value = script.Value + 1
end
end)
but that only runs once, and it only checks for one fish. I need it to always be checking rather than only check once and also checking if anything called fish is touched. Does anybody know how to do this? Help is greatly appreciated. Thanks.

2 comments
Added a 'while wait(5) do' to the 2nd script and it worked. Thanks!
Instead of adding a while wait(5) do, it's probably better to do a workspace.ChildAdded:Connect(function() ... end) because that will make the code run every time a new object is added in the workspace, rather than waiting every 5 seconds and checking that way.