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: Learning how to script Q3

Previous Thread :: Next Thread 
cannonssk is not online. cannonssk
Joined: 02 Mar 2010
Total Posts: 278
06 Aug 2012 07:40 PM
In this script here,


tab = {}
function tab.func( arg )
print "I'm in a table"
end
tab.func(1)


How would you define a tab.func(2)? would you just do like


tab = {}
function tab.func( arg )
print "I'm in a table"
end
function tab.func( arg )
print "Table 2"
end
tab.func(1)
tab.func(2)


does the table automatically assign the variable ?
Report Abuse
redpenchill is not online. redpenchill
Joined: 24 Jul 2008
Total Posts: 450
06 Aug 2012 07:48 PM
tab = {"data1","data2"}
function printfunc()
print(rawget(tab,1))
print(rawget(tab,2))
end
printfunc()
Report Abuse
cannonssk is not online. cannonssk
Joined: 02 Mar 2010
Total Posts: 278
06 Aug 2012 07:49 PM
Is the "Rawget" part of this script just a variable?
Report Abuse
redpenchill is not online. redpenchill
Joined: 24 Jul 2008
Total Posts: 450
06 Aug 2012 08:03 PM
rawget is a function to get raw data out of tables
Report Abuse
cannonssk is not online. cannonssk
Joined: 02 Mar 2010
Total Posts: 278
06 Aug 2012 08:04 PM
raw data such as?
Report Abuse
redpenchill is not online. redpenchill
Joined: 24 Jul 2008
Total Posts: 450
06 Aug 2012 08:06 PM
the output for the script i wrote would be

data1
data2

just prints what i got with the rawget
Report Abuse
cannonssk is not online. cannonssk
Joined: 02 Mar 2010
Total Posts: 278
06 Aug 2012 08:07 PM
sweet alright thank you
Report Abuse
GearKoo2 is not online. GearKoo2
Joined: 18 Jul 2012
Total Posts: 64
06 Aug 2012 08:07 PM
[ Content Deleted ]
Report Abuse
GearKoo2 is not online. GearKoo2
Joined: 18 Jul 2012
Total Posts: 64
06 Aug 2012 08:08 PM
^ IF DIS GETS DELETED EVERYONE ON DIS THREAD IS A NOOB BESIDES ME! HHHAHAHHAHAHAHHAH!
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
06 Aug 2012 08:10 PM
LOL. TROLLLLLOLOLOL.

-------------------------
~thedestroyer115, some of the most kind and helpful posts possible!~
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