#What is runservice and heartbeat and what is setmetatable()
1 messages · Page 1 of 1 (latest)
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
ok
yes
brawldev is gonna post one soon
soon
metatable is SOMETHING that is optional unless you’re creating a module or somethin similar
WE ❤️ BRAWLDEV
true
its just a way to organize your scripts
Runservice, Connects to roblox API run, Hearbeat is 1 frame. and setmetable is functionality for OOP.
Dive into the OOP paradigm and how it works within Luau.
For more, check out these links:
https://create.roblox.com/docs/luau/metatables
https://luau.org/typecheck
Chapters:
00:00 Intro
00:24 What is it?
01:36 Why do I care?
02:01 How do I it?
02:31 Example
03:25 Tangent
04:07 Example pt 2
09:59 When should I use it?
This is the video I personally learned oop with
This video gives a brief overview of object-oriented programming and how we can implement it into Studio using tables, metatables, and module scripts!
Ever wanted to learn Roblox Studio & scripting? Check out my course:
https://bit.ly/LuaScriptingCourse
Use code DEVELOPMENT for 33% off!
Music used:
Lucid Dreaming by | e s c p | https://www.esc...
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
o
can u help me with this
why is this an error
oh i didn't make a function
how is this one no error
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
ok
both are wrong?
i just following a dialogue system video
im kinda like do it
learn it later
well
its broken, and it's not gonna work
You're doing OOP coding, without doing OOP
it doesn't work like that
when trying to make a hitbox should you use a runservice or a heartbeat