generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Script won't run

Previous Thread :: Next Thread 
UnderworldFPS is not online. UnderworldFPS
Joined: 30 Mar 2016
Total Posts: 706
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
PerilousDanger is not online. PerilousDanger
Joined: 21 Aug 2012
Total Posts: 3773
11 Aug 2016 07:53 PM
What point does it stop at?
Report Abuse
UnderworldFPS is not online. UnderworldFPS
Joined: 30 Mar 2016
Total Posts: 706
11 Aug 2016 07:58 PM
It just won't run. Nothing happen


Report Abuse
UnderworldFPS is not online. UnderworldFPS
Joined: 30 Mar 2016
Total Posts: 706
11 Aug 2016 08:03 PM
b1


Report Abuse
UnderworldFPS is not online. UnderworldFPS
Joined: 30 Mar 2016
Total Posts: 706
11 Aug 2016 08:07 PM
b2


Report Abuse
UnderworldFPS is not online. UnderworldFPS
Joined: 30 Mar 2016
Total Posts: 706
11 Aug 2016 08:09 PM
b3


Report Abuse
GGGGG14 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image