If i have two functions with the same name but different parameters taken that get called OnServerEvent, will this work?
game.ReplicatedStorage.addToFishCountEvent.OnServerEvent:Connect(function(player, fishName)
end)
game.ReplicatedStorage.addToFishCountEvent.OnServerEvent:Connect(function(player, fishName, Quantity)
--this one has Quantity as a parameter
end)
Can you overload like this?
Thank you for any help.

3 comments
You can use while loops, they are loops that repeat over and over.
lol
No. You can't overload functions in Lua. Instead, people often use ternary operators to correct wrongly assigned parameters.