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: What is Wrong with This?

Previous Thread :: Next Thread 
Ithesportsbomb is not online. Ithesportsbomb
Joined: 03 Dec 2010
Total Posts: 30128
20 Jun 2014 12:32 PM
// Check if the user is ready to play!

confirm("I am ready to play!")
if(age is less than 13)
{
console.log("You're allowed to play and I am not responsible")
}
else
{
console.log("Play on!")
}

Patriots Red Sox Bruins Celtics Golden Eagles Crusaders Cannons Whitecaps Soul Bandits BRING IT
Report Abuse
Ithesportsbomb is not online. Ithesportsbomb
Joined: 03 Dec 2010
Total Posts: 30128
20 Jun 2014 12:40 PM
Yet some more brilliant help from Scripting Helpers!

Patriots Red Sox Bruins Celtics Golden Eagles Crusaders Cannons Whitecaps Soul Bandits BRING IT
Report Abuse
Ithesportsbomb is not online. Ithesportsbomb
Joined: 03 Dec 2010
Total Posts: 30128
20 Jun 2014 12:49 PM
This sub-forum sucks... I don't even know why I bother to ask for help here anymore.

Patriots Red Sox Bruins Celtics Golden Eagles Crusaders Cannons Whitecaps Soul Bandits BRING IT
Report Abuse
jakej78b is not online. jakej78b
Joined: 09 Mar 2011
Total Posts: 813
20 Jun 2014 12:51 PM
Did you like formerly code in a different language? Because from my eyes like none of that looks like even a decent attempt at lua.
Report Abuse
Phyclops is not online. Phyclops
Joined: 27 Sep 2012
Total Posts: 5895
20 Jun 2014 12:51 PM
pretty sure you'd get a better response from the scripters subforum since this is for roblox lua only i believe
Report Abuse
jakej78b is not online. jakej78b
Joined: 09 Mar 2011
Total Posts: 813
20 Jun 2014 12:52 PM
You'd use print and not console.log and using brackets is not an lua practice.

if requirement then
-- Do stuff
elseif requirement2 then
-- Do stuff2
elseif requirement3 then
-- Do stuff3
end
Report Abuse
jakej78b is not online. jakej78b
Joined: 09 Mar 2011
Total Posts: 813
20 Jun 2014 12:53 PM
Currently there is no way to check a users way in game unless you use a gui textbox where they input their own information.
Report Abuse
jakej78b is not online. jakej78b
Joined: 09 Mar 2011
Total Posts: 813
20 Jun 2014 12:54 PM
Looks almost like maybe GLua. But he still hasn't defined confirm the function.
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
20 Jun 2014 12:55 PM
Is that JavaScript? What is this for, anyway?

And "age is less than 13" should probably be "age < 13"
Report Abuse
Ithesportsbomb is not online. Ithesportsbomb
Joined: 03 Dec 2010
Total Posts: 30128
20 Jun 2014 12:57 PM
JavaScript

Patriots Red Sox Bruins Celtics Golden Eagles Crusaders Cannons Whitecaps Soul Bandits BRING IT
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
20 Jun 2014 01:10 PM
This isnt lua.
THIS IS ONLY MENT FOR ROBLOX.Lua
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
20 Jun 2014 01:16 PM
Well the issue is most likely your if statement.

Also, there are going to be better places; we may not have the knowledge of other languages required.
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
20 Jun 2014 01:18 PM
"This isnt lua.
THIS IS ONLY MENT FOR ROBLOX.Lua"

please point me to where it says that, and @op, the less than symbol is < and you dont define age.

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