The problem is.. That when I catch a fish.. The value of Inventory and the total are increased by a number between 10 to 13 when it's supposed to be increased once... HELP!
local rate = math.random(10,13)
local rod = script.Parent.Rope
local Player = game.Players.LocalPlayer
local fish = Player.leaderstats['Inventory']
local Total = Player.leaderstats['Total Fish Caught']
rod.Touched:Connect(function(Hit)
if Hit == game.Workspace["Drown pls"] then
while wait(rate)do --Loops every 10 to 13 secs
print("lel")
fish.Value = fish.Value + 1 --increases the Inventory by 1
Total.Value = fish.Value + 1 --increases the total by 1
end
end
end)

5 comments
You shouldn’t be using connect but Connect
Opps typo
Is there any difference between the deprecated 'connect' and the 'Connect' in terms of functionality?
one is deprecated one isn’t. one has uppercase C whilst the other doesn’t. one has chance of completely being removed other doesn’t
Well that I already knew, I was just asking if anything was functionally different. So I'm gonna take that as a 'No'.