I made something like percentage for dropping fishes. For example, Fish 1 has 30 % to be dropped but Fish 2 has 70%. I was trying to use math.random but it didn't work. Any suggestions on how to do it( with explanation and modifying percentage). // Edit, another problem
local rod = script.Parent
local pomost = game.Workspace.PomostLvl1
local FishOdds = math.random(1,100)
local Fish1Odds = 1,30
local Fish2Odds = 31,100
db = false
pomost.Touched:Connect(function()
rod.Activated:Connect(function()
db = true
if FishOdds == Fish1Odds then
wait(1)
print("Catched fish number 1!")
db = false
end
if FishOdds == Fish2Odds then
wait(1)
print("Catched fish number 2!")
db = false
end
end)
end)

2 comments
just do math.random(0,100) and change that to the percentage :3
I was trying to do it but I wanted to do something like Fish 1 odds: 30, fish 2 odds: 70