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: Throw some metatables at me!

Previous Thread :: Next Thread 
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
10 Jan 2013 12:43 PM
Okay, just give me some bits of code with metatables, so I can suck all of that information up. I'm not requesting you to make anything, I just want to master metatables by looking at them, since I kind of know how they work, but not enough.
Report Abuse
BAUER102 is not online. BAUER102
Joined: 03 Apr 2010
Total Posts: 5936
10 Jan 2013 01:54 PM
gutta find something nice for ya
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
10 Jan 2013 02:00 PM
Kk, mean while I'll try to find fun uses and figure out what I'm doing out.
Report Abuse
BAUER102 is not online. BAUER102
Joined: 03 Apr 2010
Total Posts: 5936
10 Jan 2013 02:10 PM
not the best examples, but everything I can publish at the moment

http://pastebin.com/dNL1qWxw
http://pastebin.com/4uPKhuMi

srry, but I can't publish borderline code

used tons of metastuff there
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
10 Jan 2013 02:12 PM
Yaay, got first one working.

kk = {"Lold", "Test", "Okay"}

kk = setmetatable(kk,{
__unm = function (self)
output = {}
for num,obj in pairs(self) do
if type(obj) == "string" then
output[num] = string.reverse(obj)
end
end

return output
end
})


n = -kk

print(n[1])



I'll go check what you haz there.
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
10 Jan 2013 02:13 PM
Pil > Metatables.
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
10 Jan 2013 02:16 PM
..Wait what? I'm talking about roblox only since I just wanted to learn em quickly.
Report Abuse
BAUER102 is not online. BAUER102
Joined: 03 Apr 2010
Total Posts: 5936
10 Jan 2013 02:17 PM
y u use pairs :(

use nexttt
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
10 Jan 2013 02:24 PM
Waat, but wai? Can't really see nice way to use it.
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