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 » Scripters
Home Search
 

Re: Metatables Inquiry

Previous Thread :: Next Thread 
easy_dev is not online. easy_dev
Joined: 25 Feb 2016
Total Posts: 46
07 Feb 2017 08:55 AM
How exactly do metatables work, and in which places are they best used for?
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
07 Feb 2017 09:16 AM
metatables are pretty much like tables with events and they can be used for a ton of things


Report Abuse
Customality is not online. Customality
Joined: 11 Aug 2015
Total Posts: 590
07 Feb 2017 09:29 AM
local # # ## local mt = {__call = function() print("u called the table") end} setmetatable(a, mt) a()
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
07 Feb 2017 09:33 AM
Metatables are regular tables. Nothing special about them.

Where things get interesting is when you add metamethods to them.

You can think of metamethods as fallback events.
Report Abuse
AxonMega is online. AxonMega
Joined: 29 Aug 2014
Total Posts: 2403
07 Feb 2017 09:47 AM
Metamethods allow you to make custom things happen to your table when different operators are used on it.
Report Abuse
easy_dev is not online. easy_dev
Joined: 25 Feb 2016
Total Posts: 46
07 Feb 2017 10:46 AM
Metamethods were probably the word I was looking for, not metatables. But thanks for the help.
Report Abuse
XCVlll is not online. XCVlll
Joined: 23 Oct 2008
Total Posts: 963
07 Feb 2017 10:49 AM
here's all of them:

http://wiki.roblox.com/index.php?title=Metamethods
Report Abuse
easy_dev is not online. easy_dev
Joined: 25 Feb 2016
Total Posts: 46
07 Feb 2017 11:07 AM
Aight. So far, I partially know how to use __call.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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