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 » Scripting Helpers
Home Search
 

Re: Would this work?

Previous Thread :: Next Thread 
MajorEric123 is not online. MajorEric123
Joined: 14 Sep 2010
Total Posts: 348
28 Sep 2011 04:05 PM
GLabel = script.Parent.Parent.Parent.Players:findFirstChild(""..script.Parent.Parent.Name.."")

if script.Parent.StoredAmmo = 0
if nil ~= return
if else then
check if script.Parent.Ammo = 0
if nil ~= return
if == then
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
GLabel = "Ammo Restocked"GLabel = script.Parent.Parent.Parent.Players:findFirstChild(""..script.Parent.Parent.Name.."")
end
end
end
end
end
end
Report Abuse
MajorEric123 is not online. MajorEric123
Joined: 14 Sep 2010
Total Posts: 348
28 Sep 2011 07:13 PM
Please reply
Report Abuse
PompeyTheGreat is not online. PompeyTheGreat
Joined: 10 Apr 2011
Total Posts: 5615
28 Sep 2011 07:25 PM
I laugh at your code.
Report Abuse
MajorEric123 is not online. MajorEric123
Joined: 14 Sep 2010
Total Posts: 348
29 Sep 2011 06:22 AM
:( Why?
Report Abuse
AntiBoomz0r is online. AntiBoomz0r
Joined: 02 Oct 2009
Total Posts: 1345
29 Sep 2011 07:25 AM
I laugh at your script too... Too much unnecessary stuff.. And you could do that whole time thingie in 3 lines.. Learn to use loops :)
Report Abuse
Kirby12349 is not online. Kirby12349
Joined: 01 Aug 2009
Total Posts: 7866
29 Sep 2011 08:02 AM
im not that good at this stuff but i don't think you need the 1 sec thing and the same thing over and over and over
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
29 Sep 2011 08:54 AM
GLabel = script.Parent.Parent.Parent.Players:findFirstChild(""..script.Parent.Parent.Name.."")

if script.Parent.StoredAmmo = 0
if nil ~= return
if else then
check if script.Parent.Ammo = 0
if nil ~= return
if == then
for t=1, 20 do
GLabel = "Restocking in Ammo please wait. Time:"..script.Parent.WaitValue.Value.."s" left.
script.Parent.WaitValue.Value -1
wait(1)
end
GLabel = "Ammo Restocked"GLabel = script.Parent.Parent.Parent.Players:findFirstChild(""..script.Parent.Parent.Name.."")
end
end
end
end
end
end
Report Abuse
Lightmaster9 is not online. Lightmaster9
Joined: 14 May 2009
Total Posts: 8659
29 Sep 2011 09:31 AM
?????!
Report Abuse
MajorEric123 is not online. MajorEric123
Joined: 14 Sep 2010
Total Posts: 348
01 Oct 2011 02:52 PM
Now that I look closer I see a few problems.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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