#what are things ingame made using meta tables

1 messages · Page 1 of 1 (latest)

plush mirage
#

i just want like 5 examples

craggy crescent
#

oop

steady lagoon
#

easily make items like consumables in a more data-structured way

craggy crescent
#

see changes in a table

#

run functions when changing values

plush mirage
plush mirage
#

:<

craggy crescent
#

no just like the first few the other ones aren't really usefull

#

in most cases

plush mirage
#

i just dont get the use of meta tables

craggy crescent
#

you can make oop

#

mainly why i use metatables

plush mirage
craggy crescent
#

uh

#

basicly instead of

#

not oop
module.function(Something)

oop
Something:function()

#

Something is not a module btw

plush mirage
craggy crescent
#

what do you mean?

plush mirage
#

i dont even know

#

am confused

#

what's "something"

craggy crescent
#

a table

#

sorry

#

for not explaining

#

so you can basicly do

#

{Name = "Freddy"}:Hello()

#

but this is incomplete

#

you need to create a table for the function

#

set the metatable to that table

#

and create an hello function

plush mirage
#

so... a meta table is a table inside a table with a bunch of stuff to control something?

#

uh

#

i feel like am rushing the process

#

if am tryna learn OOP where should i start

proven wigeon
#

By making smth simple

craggy crescent
#

seach up a toturial on roblox devforum

harsh blade
#

a meta table is a special table where magical things happen so we can have classes