|
| 11 Aug 2016 07:52 PM |
local player = game.Players.LocalPlayer local fishTypesTable = { "Common", "Common", "Common", "Common", "Common", "Common", "Common", "Common", "Rare", "Rare", "Rare", "Rare", "Special", "Special", "Tropical" } local val = player:WaitForChild("SecondsPerFish") repeat wait() until val.Value ~= 0 wait(.05) while true do local randomNum = math.random(1, #fishTypesTable) local randomFishType = fishTypesTable[randomNum] local fishValue = player.fishTypes:FindFirstChild(randomFishType) fishValue.Value = fishValue.Value + 1 wait(player.SecondsPerFish.Value) end
|
|
|
| Report Abuse |
|
|
| 11 Aug 2016 07:53 PM |
| What point does it stop at? |
|
|
| Report Abuse |
|
|
| 11 Aug 2016 07:58 PM |
It just won't run. Nothing happen
|
|
|
| Report Abuse |
|
| |
| |
| |
GGGGG14
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25344 |
|
|
| 11 Aug 2016 08:13 PM |
| Your infinite loop never breaks so I'd assume that is the problem. Use prints to find out where the code reaches. |
|
|
| Report Abuse |
|