Skip to content

Instantly share code, notes, and snippets.

View kingdudely's full-sized avatar
😻
Roblox is life

a kingdudely

😻
Roblox is life
View GitHub Profile
@SMUsamaShah
SMUsamaShah / gist:54e6921c300d1a31bc18b5aeafc2ca97
Last active April 29, 2025 20:16
List of websites with specific movie clips

A metatable in Lua defines various extraneous behaviors for a table when indexed, modified, interacted with, etc. They are Lua's core metaprogramming feature; most well known for being useful to emulate classes much like an OOP language.

Any table (and userdata) may be assigned a metatable. You can define a metatable for a table as such:

-- Our sample table
local tab = {}
-- Our metatable
local metatable = {
 -- This table is then what holds the metamethods or metafields
@t32k
t32k / foobar.md
Created September 25, 2013 02:05
foo, bar, baz, qux, quux, corge, grault, garply, waldo, fred, plugh, xyzzy, thud