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: Read this if you need help with the following:LUA,Ruby,Perl,PhP,Or Python scripting languages

Previous Thread :: Next Thread 
bilan is not online. bilan
Joined: 27 Apr 2010
Total Posts: 9
28 Jan 2012 07:41 PM
If you need help with LUA,Ruby,Perl,PhP,Or Python scripting languages then consult the one and only Bilan. If you want good admin commands like Kicking, Banning, Freezing, Slaying, Different Levels Of Administrator Privlages, Noclip(Able To Fly Through Things, Spectate, Game Settings, Mute, Gag, Csay, Tsay, Asay, Psay, or Weapon Strip Please Contact The one and only Bilan.
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
28 Jan 2012 07:42 PM
Ok, teach me about string patterns pl0x.
Report Abuse
RobloxNewb01 is not online. RobloxNewb01
Joined: 16 Apr 2011
Total Posts: 348
28 Jan 2012 07:44 PM
Ok, I need help on BF.
Report Abuse
Riderj is not online. Riderj
Joined: 15 Aug 2011
Total Posts: 1534
28 Jan 2012 07:52 PM
String patterns, wai you no understand?

[=|I rate myself 6/10 in RBLX.Lua|=]
Report Abuse
bilan is not online. bilan
Joined: 27 Apr 2010
Total Posts: 9
29 Jan 2012 07:39 PM
I rate myself 11/10 in LUA :)
STRINGS:

Strings have the usual meaning: a sequence of characters. Lua is eight-bit clean and so strings may contain characters with any numeric value, including embedded zeros. That means that you can store any binary data into a string. Strings in Lua are immutable values. You cannot change a character inside a string, as you may in C; instead, you create a new string with the desired modifications, as in the next example:

a = "one string"
b = string.gsub(a, "one", "another") -- change string parts
print(a) --> one string
print(b) --> another string
Strings in Lua are subject to automatic memory management, like all Lua objects. That means that you do not have to worry about allocation and deallocation of strings; Lua handles this for you. A string may contain a single letter or an entire book. Lua handles long strings quite efficiently. Programs that manipulate strings with 100K or 1M characters are not unusual in Lua.

We can delimit literal strings by matching single or double quotes:

a = "a line"
b = 'another line'
As a matter of style, you should use always the same kind of quotes (single or double) in a program, unless the string itself has quotes; then you use the other quote, or escape those quotes with backslashes. Strings in Lua can contain the following C-like escape sequences:
\a bell
\b back space
\f form feed
\n newline
\r carriage return
\t horizontal tab
\v vertical tab
\\ backslash
\" double quote
\' single quote
\[ left square bracket
\] right square bracket

We illustrate their use in the following examples:

> print("one line\nnext line\n\"in quotes\", 'in quotes'")
one line
next line
"in quotes", 'in quotes'
> print('a backslash inside quotes: \'\\\'')
a backslash inside quotes: '\'
> print("a simpler way: '\\'")
a simpler way: '\'
We can specify a character in a string also by its numeric value through the escape sequence \ddd, where ddd is a sequence of up to three decimal digits. As a somewhat complex example, the two literals "alo\n123\"" and '\97lo\10\04923"' have the same value, in a system using ASCII: 97 is the ASCII code for a, 10 is the code for newline, and 49 (\049 in the example) is the code for the digit 1.

We can delimit literal strings also by matching double square brackets [[...]]. Literals in this bracketed form may run for several lines, may nest, and do not interpret escape sequences. Moreover, this form ignores the first character of the string when this character is a newline. This form is especially convenient for writing strings that contain program pieces; for instance,


write(page)
Lua provides automatic conversions between numbers and strings at run time. Any numeric operation applied to a string tries to convert the string to a number:

print("10" + 1) --> 11
print("10 + 1") --> 10 + 1
print("-5.3e-10"*"2") --> -1.06e-09
print("hello" + 1) -- ERROR (cannot convert "hello")
Lua applies such coercions not only in arithmetic operators, but also in other places that expect a number. Conversely, whenever it finds a number where it expects a string, Lua converts the number to a string:
print(10 .. 20) --> 1020
(The .. is the string concatenation operator in Lua. When you write it right after a numeral, you must separate them with a space; otherwise, Lua thinks that the first dot is a decimal point.)
Despite those automatic conversions, strings and numbers are different things. A comparison like 10 == "10" is always false, because 10 is a number and "10" is a string. If you need to convert a string to a number explicitly, you can use the function tonumber, which returns nil if the string does not denote a proper number:

line = io.read() -- read a line
n = tonumber(line) -- try to convert it to a number
if n == nil then
error(line .. " is not a valid number")
else
print(n*2)
end
To convert a number to a string, you can call the function tostring or concatenate the number with the empty string:

print(tostring(10) == "10") --> true
print(10 .. "" == "10") --> true
Such conversions are always valid.
Report Abuse
CrazyBananaMonkey is not online. CrazyBananaMonkey
Joined: 10 Nov 2009
Total Posts: 1599
29 Jan 2012 07:44 PM
PHP:

Create a database with accounts and forums. Teach me.

Lua:
Deleting the core gui.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
29 Jan 2012 08:28 PM
@Bilian

It's Lua, not LUA :l

That's the FIRST THING you should know...
Report Abuse
ggfunny1234 is not online. ggfunny1234
Joined: 09 Jul 2010
Total Posts: 3432
29 Jan 2012 08:33 PM
^^^
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
29 Jan 2012 08:33 PM
I support you too...
Report Abuse
ggfunny1234 is not online. ggfunny1234
Joined: 09 Jul 2010
Total Posts: 3432
29 Jan 2012 08:38 PM
HOW SWEET
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
29 Jan 2012 08:40 PM
That's how you talk to theladaz!!!
Report Abuse
bilan is not online. bilan
Joined: 27 Apr 2010
Total Posts: 9
30 Jan 2012 04:01 PM
Dude I don't care I call it LUA like other highlights of words like SOPA(Stop Online Piracy Act) and PIPA(Protect IP Act). GAWD TAHT JUST THE WAY I PUT IT.
:)___________________________________________________________________________(
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
30 Jan 2012 04:06 PM
http://wiki.roblox.com/index.php/Absolute_beginner's_guide_to_scripting

It says

"It's Lua, not LUA"

If you say LUA that means you don't get this wiki, being a beginner :l

That's just me saying a loop is callled a lump.

Report Abuse
wargarkaztestplace is not online. wargarkaztestplace
Joined: 05 Oct 2009
Total Posts: 2852
30 Jan 2012 04:11 PM
y u copy paste off wikipedia tho?
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
30 Jan 2012 04:18 PM
Because he knows it's prove and I'm not making it up.
Report Abuse
buildthomas is online. buildthomas
Joined: 05 Dec 2008
Total Posts: 715
30 Jan 2012 04:20 PM
"the one and only"
"I rate myself 11/10 in LUA :)"

An actually good scripter would be more modest about it.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
30 Jan 2012 04:21 PM
@Bilan
"Dude I don't care I call it LUA like other highlights of words like SOPA(Stop Online Piracy Act) and PIPA(Protect IP Act"
Those are different. You say "SOPA" or "PIPA" because they're acronyms. Lua is not an acronym.

"GAWD TAHT JUST THE WAY I PUT IT."
You're *wrong*.

† KMXD †
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
30 Jan 2012 04:21 PM
Like who?
Report Abuse
buildthomas is online. buildthomas
Joined: 05 Dec 2008
Total Posts: 715
30 Jan 2012 04:22 PM
I wasn't implying anyone, just saying the arrogant behaviour ticks me off.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
30 Jan 2012 04:23 PM
Oh.
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
30 Jan 2012 04:45 PM
everyone > billian
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
30 Jan 2012 04:46 PM
If that's coming from trappingnoobs then it must be true.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
30 Jan 2012 04:48 PM
Make me a flying pony that shoots Lazers that uses Raycasting, Donuts, Robux,Words.

It's not easy being cheesy. I love Marilyn Mason,Sucicide Silence, and IWABO. Baseplate Maker Plugin here: http://www.roblox.com/Baseplate-maker-plugin-item?id=71012144
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
30 Jan 2012 04:50 PM
@Bikerking

We already proved this guy ain't that good -_-
Report Abuse
Cyrok is not online. Cyrok
Joined: 11 Jan 2012
Total Posts: 630
30 Jan 2012 04:50 PM
You have some knowledge of RBX.Lua (not LUA or Lua) but you're by far not the best (nor does anyone here give you an eleven out of ten).

{ Learning normal Lua and RBX.Lua. }
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