#What is runservice and heartbeat and what is setmetatable()

1 messages · Page 1 of 1 (latest)

acoustic sundial
#

??

summer grotto
#

Run Service is just an API service that allows developers to better connect to the running process of Roblox that is allowing developers to check what system is current in use: client, server, studio, running, or not. Also it allows them to sync with threads that being prior, post, or anywhere between physics or render simulations/frames.

#

setmetatable() is just a way to create a metatable seems like you are trying to understand OOP you should searching some OOP community tutorials in the official roblox developer forum

trail forge
#

brawldev is gonna post one soon

#

soon

flint girder
#

metatable is SOMETHING that is optional unless you’re creating a module or somethin similar

cursive inlet
trail forge
#

its just a way to organize your scripts

heavy forge
#

Runservice, Connects to roblox API run, Hearbeat is 1 frame. and setmetable is functionality for OOP.

#

This is the video I personally learned oop with

#

But this is a good one to move to after

#

The first one covers some basics, and logic behind them, the second shows some more functionality

acoustic sundial
#

can u help me with this

#

why is this an error

heavy forge
#

Self id a function only variable

#

Is*

acoustic sundial
#

how is this one no error

heavy forge
#

Are those in a function?

#

This isn't right

#

Just completely, there's no one issue with it

#

The whole thing is the issue

#

Watch those two videos

acoustic sundial
#

ok

acoustic sundial
#

i just following a dialogue system video

#

im kinda like do it

#

learn it later

heavy forge
#

well

#

its broken, and it's not gonna work

#

You're doing OOP coding, without doing OOP

#

it doesn't work like that

cursive inlet
heavy forge
#

Neither?

#

Both?