|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 20 Jun 2014 12:57 PM |
JavaScript
Patriots Red Sox Bruins Celtics Golden Eagles Crusaders Cannons Whitecaps Soul Bandits BRING IT |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|