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: Learn to Script game

Previous Thread :: Next Thread 
MyNameIsPuck is not online. MyNameIsPuck
Joined: 23 Apr 2014
Total Posts: 129
05 Aug 2014 11:05 AM
Hello fellow Scripting Helpers. I know this is just advertising, but I figured that this forum might be a good place to slap the link down because many people come here looking for help with scripting.

Over the past few weeks I've been working on a game that will hopefully help teach scripting in Roblox to people looking to get started. It has interactive questions, lots of pictures, and project ideas so people can get some practice.

I hope an interactive and chronological way of learning scripting in Roblox will be helpful to people. http://www.roblox.com/Learn-to-Script-place?id=167721659
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
05 Aug 2014 11:13 AM
pretty good.
Report Abuse
MyNameIsPuck is not online. MyNameIsPuck
Joined: 23 Apr 2014
Total Posts: 129
05 Aug 2014 01:11 PM
Bump
Report Abuse
MyNameIsPuck is not online. MyNameIsPuck
Joined: 23 Apr 2014
Total Posts: 129
05 Aug 2014 01:54 PM
Bump x2
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
05 Aug 2014 01:59 PM
I got stuck on the starter gui part because it was "case sensitive".
Report Abuse
MyNameIsPuck is not online. MyNameIsPuck
Joined: 23 Apr 2014
Total Posts: 129
05 Aug 2014 03:51 PM
was there an error with it being case sensitive? I'm pretty sure I copied it all right.

bump x3
Report Abuse
MyNameIsPuck is not online. MyNameIsPuck
Joined: 23 Apr 2014
Total Posts: 129
05 Aug 2014 06:26 PM
Bump x4
Report Abuse
Laedere is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
05 Aug 2014 06:26 PM
you ######## suck kill yourself ########## noob
Report Abuse
MyNameIsPuck is not online. MyNameIsPuck
Joined: 23 Apr 2014
Total Posts: 129
06 Aug 2014 09:22 AM
Bump x5
Report Abuse
AlternativeAcc is not online. AlternativeAcc
Joined: 29 Mar 2012
Total Posts: 1337
06 Aug 2014 10:03 AM
Very nice game, only had time to play it for a short while, but it goes into detail very well. Good job!
Report Abuse
MyNameIsPuck is not online. MyNameIsPuck
Joined: 23 Apr 2014
Total Posts: 129
06 Aug 2014 03:58 PM
Bump x6
Report Abuse
MyNameIsPuck is not online. MyNameIsPuck
Joined: 23 Apr 2014
Total Posts: 129
07 Aug 2014 08:38 AM
Bump x7
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
07 Aug 2014 08:39 AM
nics alls and bc alts LOL
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
07 Aug 2014 08:41 AM
Well i went there and it is a nice place.
Good work i guess,
Report Abuse
MyNameIsPuck is not online. MyNameIsPuck
Joined: 23 Apr 2014
Total Posts: 129
07 Aug 2014 05:20 PM
Bump x8
Report Abuse
MyNameIsPuck is not online. MyNameIsPuck
Joined: 23 Apr 2014
Total Posts: 129
07 Aug 2014 08:11 PM
Bump x9
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
07 Aug 2014 08:55 PM
QQ
I can't do Game and I can't index with brackets and I can't use semi-colons...

It would be better to check by actually checking if it exists as opposed to if the text equals something.
Report Abuse
togov is not online. togov
Joined: 21 Apr 2010
Total Posts: 3740
07 Aug 2014 08:57 PM
what is this ?
Report Abuse
MyNameIsPuck is not online. MyNameIsPuck
Joined: 23 Apr 2014
Total Posts: 129
08 Aug 2014 02:42 PM
@cntkillme Sorry about it being tedious sometimes, but I don't really know how to take a string and actually run it as a script. Hopefully you can figure out what I intended for you to type in the question. The typed questions never have really crazy answers.
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
08 Aug 2014 02:50 PM
I just entered a script that would work, but it's more advanced than the actual reference thing and it took away 2 points. q.q
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
08 Aug 2014 03:04 PM
An easy way would be loadstring but that is going to be removed in the future.
You can do some string manipulation to have it ignore some spaces and words and whatnot.

Like define local x = 5 can be tested like:
str = "local x= 5";
local correct = str:match("[local]+%s+[x]%s-%=%s-[5]");
print(correct ~= nil);
Report Abuse
Berraider is not online. Berraider
Joined: 02 Aug 2014
Total Posts: 5
08 Aug 2014 03:05 PM
THANK U
Report Abuse
MyNameIsPuck is not online. MyNameIsPuck
Joined: 23 Apr 2014
Total Posts: 129
08 Aug 2014 09:20 PM
Right now it only ignores spaces. I honestly didn't know semicolons were aloud to be plopped in everything in Lua :P so I should probably make it ignore semicolons too.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
08 Aug 2014 09:27 PM
I guess you can do (since Lua does allow >= 0 semi-colons):
local correct = str:match("[local]+%s+[x]%s-=%s-[5]%;-$");
Report Abuse
MyNameIsPuck is not online. MyNameIsPuck
Joined: 23 Apr 2014
Total Posts: 129
08 Aug 2014 09:45 PM
I just used string.gsub (http://www.lua.org/manual/5.2/manual.html#pdf-string.gsub), the first lua string function that I happened to stumble upon in the lua documentation. Then I just filter the whitespace (and now semicolons) out of the response text and see if it matched the answer.

The answers are just strings with no spaces in them in a huge table

local questions = {
..
{ -- 2 (typed answer)
p = "What were you asked to type in?",
a = "ILoveChicago"
},
..
..
}
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