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: Functions

Previous Thread :: Next Thread 
SilverArgentum is not online. SilverArgentum
Joined: 01 Nov 2011
Total Posts: 1162
26 Apr 2014 02:43 PM
After I define a function, how do I run it, so that it loops when it finishes?

what i tried to do:

while true do
local gameplr = game.Players:GetChildren()
if #gameplr > 1 then do
start()
end
else do
m.Text = "Not enough players. There is currently "..numplrs.."/2 required players."
end
end
wait(1)
end
Report Abuse
SilverArgentum is not online. SilverArgentum
Joined: 01 Nov 2011
Total Posts: 1162
26 Apr 2014 02:44 PM
AND just say i already defined numplrs, and the function start()
Report Abuse
SilverArgentum is not online. SilverArgentum
Joined: 01 Nov 2011
Total Posts: 1162
26 Apr 2014 02:46 PM
Why lie? This is a bump.
Report Abuse
SilverArgentum is not online. SilverArgentum
Joined: 01 Nov 2011
Total Posts: 1162
26 Apr 2014 02:49 PM
bump
Report Abuse
gijsbel11 is not online. gijsbel11
Joined: 07 Feb 2009
Total Posts: 4223
26 Apr 2014 02:51 PM
while wait(1) do

local gameplr = game.Players:GetChildren()

if #gameplr > 1 then
start()
else
m.Text = "Not enough players. There is currently "..numplrs.."/2 required players."
end


end
Report Abuse
SilverArgentum is not online. SilverArgentum
Joined: 01 Nov 2011
Total Posts: 1162
26 Apr 2014 02:52 PM
What a small change...
Report Abuse
SilverArgentum is not online. SilverArgentum
Joined: 01 Nov 2011
Total Posts: 1162
26 Apr 2014 02:54 PM
You lied to me.
Report Abuse
TheAltOfDavid12 is not online. TheAltOfDavid12
Joined: 05 Feb 2014
Total Posts: 352
26 Apr 2014 02:54 PM
@Silver

Your script wouldn't work if he hadn't made that change...
Report Abuse
SilverArgentum is not online. SilverArgentum
Joined: 01 Nov 2011
Total Posts: 1162
26 Apr 2014 02:57 PM
wait....no not yet maybe not maybe you did
Report Abuse
SilverArgentum is not online. SilverArgentum
Joined: 01 Nov 2011
Total Posts: 1162
26 Apr 2014 02:58 PM
No I forgot one part of the script change thing. Thats all.
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