#code-discussion
1 messages · Page 278 of 1
Ye the server obviously will tell all clients
And animations replicate to all players by default
(Unless it is not a player animation)
True, but if you load them from the client then exploiters can steal them
So what?
They aren't that special there are gazillions of effects to steal
And if you do it on the server it will be very delayed
Depends on ping
larp
X
?
Twitter basically
plenty of great tutorials and guides out there though i recommend you get more experience with a easier programming lanugage like Python to learn the ropes of programming and then get into scripting with Roblox's Lua code
What would you like to make
A FPS game
Python is harder then luau but far more powerful
It's like reading plain english for most
ok
Luau is easier for far more people
ok
Depends, though @fallen heart I recommend watching some tutorials and creating some stuff on your own before actually going on to make a FPS system
So like a hide and seek game?
When you want to make a game, it’s not just coding that goes into it.
You have to develop models for the guns, have to make a map, make UI (User inteface) like buttons frames etc, animations and far much other things that all go into their own role
Programming is putting all these together.
You cannot js make a game js by knowing how to code
You need to start off with things that only take coding
For example a round system
Ok
Build whatever your heart desires, just one that isn't complicated and can teach you many things
Search up brawl dev on yt and use his tutorials
For every video u learn smth try it out and experiment with it
Can I add you and DM you if I ever need help?
Yh
Tutorials on YouTube, guides online (search up Roblox LuaU guides), read and learn how to read the documentation, etc.
Thanks
Also don’t use ai
Only use it if ur fully stuck and cannot find it on google
And when u do make sure it doesn’t write the code for u but explains the topic
Yea
Programming in it self is easy
It’s not hard at all
All it takes is consistency
ok
thank you
Np
i dont agree with allat yap
Why?
all those all nighters trying to fix my bugs in cpp
🤔
🤣
😭
One message removed from a suspended account.
u absolutely SHOULD use OOP doing that HitboxTemplate.New(WeaponData) thing is the best way. cuz think about it, u need to save data right? like u gotta keep a list of dudes u already hit so ur sword doesn't damage the same guy 60 times in one swing lol. OOP makes that super easy cuz it saves the "state" of the hitbox.
BUT... dont put it all in one script
u really shouldn't put :Melee, :Projectile, and :Area all in the exact same script. if u do that, ur gonna make what nerds call a "God Object" and its gonna be a massive headache later.
cuz the math for them is totally different bro:
Melee: is basically checking if parts touch (spatial queries).
Projectiles: are shooting raycasts every frame and using physics.
Area: is just a quick radius check.
if u cram all that junk into one script, its gonna be huge and break all the time.
what u should do instead:
u should do MULTIPLE module scripts but keep it OOP. kinda like this:
HitboxBase (just handles the basic stuff like dealing damage n checking teams)
MeleeHitbox (uses the base script, but only handles sword swings n punches)
ProjectileHitbox (uses the base script, but only handles bullets n magic)
doing it like this keeps it clean so u dont lose ur mind trying to fix bugs later.
One message removed from a suspended account.
Ur hitbox can just call the touched function with the roblox script signal supported :Once, no need to use OOP with hitboxs.
basically script A is waiting for script B to load, but script B is waiting for script A. so they just stare at each other forever and roblox crashes.
if u wanna fix it the legit pro way, u gotta use what nerds call "decoupling" or event-driven stuff. tbh ur hitbox script shouldn't even know what a PlayerState is. it shouldn't care at all.
think of the hitbox as just a dumb tool. its only job is to scan the area, find a dude, and yell "YO I HIT THIS GUY!". it shouldn't be doing any of the math or checking states.
so instead of the hitbox requiring PlayerState, u just make the hitbox fire off a custom signal or callback whenever it touches something.
since ur WeaponSystem is what created the hitbox, and WeaponSystem already knows about PlayerState, u just make the WeaponSystem listen to the hitbox. when the WeaponSystem hears the hitbox yell that it hit somebody, the WeaponSystem is the one that steps in, grabs the PlayerState, and checks the values.
doing it like this totally breaks the loop cuz the hitbox never has to require the PlayerState script ever again. the arrows only point one way now. plus it makes ur hitbox way more reusable cuz u can slap it on a falling rock or a trap that doesn't even use PlayerState and it wont break.
One message removed from a suspended account.
One message removed from a suspended account.
true, I was thinking of a system where you spawn your hitbox on activation of said tool, rather then enabling yourhitbox on activation
ur hitbox script shouldn't be the one actually taking away the health. a hitbox is literally just a sensor. it’s just an invisible box that says "hey, i touched this dude!" and that is IT.
cuz think about it like this... if u hardcode the damage stuff inside the hitbox module itself, what happens if u wanna make a healing area spell later? or like a bounce pad that just launches dudes in the air? if the hitbox always does damage, u cant reuse it for those things without making a whole new script.
but if ur hitbox just fires off a signal saying "yo I found a guy", then ur WeaponSystem (or whatever script made the hitbox) can decide what to actually do with that info.
if it’s a sword, the WeaponSystem hears the signal and deals damage. if it’s a healing staff, it hears the signal and gives health. if it hits a wall, maybe it plays a clank sound.
doing it this way makes ur hitbox completely reusable for literally anything in ur game, and totally stops those annoying require loops u were getting
One message removed from a suspended account.
One message removed from a suspended account.
if it tries to grab the main PlayerState module to look up the victim, it loops again. that makes total sense.
so here is the pro move for that. u gotta pass the message up one more level, or use a middleman!
think about it like a chain of command. ur WeaponSystem shouldn't be the one checking the victim's state either. when the Hitbox tells the WeaponSystem "yo i hit this dude", the WeaponSystem just turns around and tells its OWN PlayerState (the attacker) "yo, my sword just smacked this guy for 20 damage".
then, u have one big boss script. like a top-level Server Script (maybe call it CombatManager or something). this big boss script is the ONLY thing allowed to require the main PlayerState module to look up everyone's states.
so ur attacker's PlayerState just shouts out to the CombatManager "hey boss, i hit this guy!". and the CombatManager is the one that actually looks up the victim's PlayerState and takes away their health.
cuz the CombatManager is just a regular server script at the very top, nothing requires it, so it literally can't cause a loop! u just bubble the info all the way up the chain:
Hitbox -> WeaponSystem -> Attacker's PlayerState -> CombatManager.
doing it this way means ur modules never have to look at each other, they just report to the boss script.
PlayerState[Enemy]:TakeDamage(), u still have to get that PlayerState master table from somewhere, right? which means ur probably putting require(PlayerState) at the top of ur WeaponSystem script so u can actually look up the enemy.
and boom, there is ur loop again! cuz PlayerState requires WeaponSystem, and WeaponSystem turns around and requires PlayerState to get that master table.
One message removed from a suspended account.
since self.PlayerState is ONLY the attacker's state, ur weapon script literally has no idea who the enemy is or how to get their state. and if u try to require the master module to find the enemy, u get that loop again.
so here is the super easy fix using what u already built.
since ur WeaponSystem has self.PlayerState, u can just call a function on it!
instead of the WeaponSystem trying to look up the enemy's state, just make a new function inside ur main PlayerState script called something like :AttackEnemy(enemyCharacter, damageAmount).
then, when ur hitbox finds a guy, ur WeaponSystem just does:
self.PlayerState:AttackEnemy(Hit.Parent, Amount)
cuz think about it... that :AttackEnemy() function actually runs back inside the main PlayerState script. and the main PlayerState script ALREADY knows where the master table is! so inside that function, it can easily do PlayerState[enemyCharacter]:TakeDamage(Amount) without requiring anything at all.
One message removed from a suspended account.
u gotta make a 3rd script. literally just a totally empty module script. nerds call it a "Registry" or a "State Manager".
all this script does is hold a table of everyone's states. it has absolutely zero logic in it.
like this:
StateRegistry (just an empty table)
PlayerState (requires StateRegistry)
WeaponSystem (requires StateRegistry)
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
why does my game say "this experience is currently not available"
If you mean when published maybe because you didn't respond to the maturity content quiz
You can find it In Roblox dashboard on you're game page
Ok ill try that ty
how u should actually structure it:
just put them all in the same folder as siblings. that is the cleanest industry standard way. like this:
📁 Controllers (Folder)
📄 StateRegistry (the dumb phonebook)
📄 PlayerController (requires StateRegistry)
📄 HumanoidController (requires StateRegistry)
doing it this way means the Registry just sits there chilling. when PlayerController makes a new state, it just writes it into the Registry. when HumanoidController (or WeaponSystem) needs to smack someone, it just reads the Registry to find them. no loops, no weird parent-child rules, just clean decoupled code.
I just translate the things I write with ai cause i don't speak well english it's nothing too complicated
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
Perfect
Don't worry if feels weird right now it's what you should do
Loop should be fixed
Thx
One message removed from a suspended account.
One message removed from a suspended account.
No problem you can ask everytime you need even dm i don't mind helping
One message removed from a suspended account.
I just did combat system for all the 3 years I've been scripting and using luau
One message removed from a suspended account.
There's plenty of things to handle but now with the new libraries it's easier
And alone it's not easy at all
One message removed from a suspended account.
One message removed from a suspended account.
Chrono right now for combat
But depends on what you're doing
If you have you're own framework don't change and keep pushing by yourself
Can I see the code by chance
One message removed from a suspended account.
What code ?
Yep it's awesome
Your combat
No I'm not giving anything for free...
I don't want your combat to use
I just want to see the code
what do u guys think is the best most efficient way to make projectiles
whats the mathematical angle for pointing an r6 arm forward in dummies?
motor.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(0, math.pi, 0)
motor.C1 = CFrame.new() does not help at all, it only points it backward
use IK
maybe linear interpolation
metal object and some gunpowder
That’s boring lol
Simple code to show ain’t gonna hurt ya
sharing code and learning from each other is part of the process 🤷♂️
drop some code
print("Hello World")
what elo is this
how did you guys learn coding can someone tell im curious
me personally i learned it through college and some tutorials
3k elo
documents help alot
game:GetService("AvatarEditorService"):PromptSetFavorite(GAME_ID, 1, true)
This locks the mouse if you're in first person, and I can't get around any way to unlock it. And this doesn't yield until player closes the prompt either. Can anyone please tell me if there are any solution for this?
It only yields until the prompt is shown
But there seems to be no way of figuring out whether the prompt closed or not.
alright imaj ust do custom prompt
with modal
thats kinda a limitation of the avatar editor prompts they lock the mouse in first person and theres no clean event for when it closes if its causing issues a custom prompt with modal gui is probably the best workaround
There is tho
Theres an API for when any prompt closes iirc
Check above
Also set UserInputService.MouseBehavior to free or whatever
Every frame
Will force unlock
you can use ExperienceNotificationService.OptInPromptClosed to detect when a prompt closes but keep in mind AvatarEditorService prompts might still lock the mouse so a custom modal could still be safer for full control
You can't do a custom modal though tmk
but you can make your own gui that mimics it for visuals and flow while avoiding the mouse lock
im crine
Wow
Thanks for that
I was looking for exactly that
No... it doesnt work
It doesn't detect the favorite prompt closing
thats for notifications not favorite 😭
ohh gg i found this AvatarEditorService.PromptSetFavoriteCompleted
ye thats what im doing
best start for learning to code? (ik basics of scripting but only bcs i work in frontend primarily)
learn while creating games is what i did at first
yes this is the best advice i give to others when it comes to working on frontend
but did u use a guide along the way, if yes what did resources did u rely on
My game isnt showing up in my Ads manager. Is it because I just set it as public?
yess mostly yt tutorials and devforums
wait, you fr sent it in every channel?

How to post
In our marketplace (#marketplace-info), we have 2 different ways of making a post; a hiring and hireable post.
Hiring posts are posts which allows you to seek for developers.
Hireable posts allow people who are hiring to find you.
Hiring post
To make a hiring post, use the command </post:0> in #cmds and fill out the required fields. Remember that the marketplace doesn't accept % if your game hasn't made profit yet!
Hireable post
To make a hireable post, you first need your respective skill role; refer to the command /tag view apps for the application link and guidelines. After you get your role, use the command </post:0> in #cmds and fill out the required fields.
Please check our Marketplace Post Rules before posting.
TextButton.Modal = true?
No
I can do all just dms man
how do i scale buttons in a UiGridLayout
Wdym no? If you want to unlock mouse for players who are in first person, you should set Modal of TextButton to the true
so mouse unlocks
there is no textbutton bro
its roblox core gui
i js tested it out in roblox studio
it unlocks your mouse even if it's roblox core gui
yes, well i am aware of how to unlock mouse
it's just i couldn't figure out how wil i unlock for avatareditor because i have to lock it again too after prompt closing
just use event
. i found the fix
game:GetService("AvatarEditorService"):PromptSetFavorite(GAME_ID, 1, true)
print('turn on modal')
game:GetService("AvatarEditorService").PromptSetFavoriteCompleted:Connect(Result)
print('turn off modal')
end```
oh alr
np
is it possible to make it harder for exploiters to hookfunc
ngl i need sum assistance trying to regen this fence after i type in a code if u think u can figure it out dm me
not really. if a client has access to an event, they will be able to call that event with whatever arguments. you should focus on sanitizing the data sent from the client and making sure nothing is being manipulated. if it is, you could kick, ban, log them, whatever
hm Im not sure abou t my carry system I think I need to smooth it out or something can somone offer any tips or ideas heavily appreciate any feedback
https://www.roblox.com/games/119832175887449/FightTestV2-TestBranch
@dense spade press tab bro
mobile 
yo
does this look like its AI generated
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local guiOne = playerGui:WaitForChild("one")
local guiTwo = playerGui:WaitForChild("two")
local openButton = guiOne:FindFirstChild("OpenButton", true)
local closeButton = guiTwo:FindFirstChild("CloseButton", true)
guiOne.Enabled = true
guiTwo.Enabled = false
local function onOpenClicked()
if guiTwo then
guiTwo.Enabled = true
end
end
local function onCloseClicked()
if guiTwo then
guiTwo.Enabled = false
end
end
if openButton and openButton:IsA("GuiButton") then
openButton.MouseButton1Click:Connect(onOpenClicked)
else
warn("no button in GUI 'one'.")
end
if closeButton and closeButton:IsA("GuiButton") then
closeButton.MouseButton1Click:Connect(onCloseClicked)
else
if guiTwo:FindFirstChildOfClass("Frame") then
local mainFrame = guiTwo:FindFirstChildOfClass("Frame")
end
warn("no close button in GUI 'two'.")
end
my manager usually hires the scripters but hes taking a vacation...
yup...
ai..
can someone help me fix a simple script for 50 robux
show script
true
alr one sec
people usually use AI mostly because they haven't a clue on what scripting is
ill js postpone the project until my main scripter is back from vacation, 1 week aint that deep
this isnt ai
other guy said it is
how so?
why would he put a boolean in FindFirstChild?
ill wait for another scripter to respond to you cuz idk what that means 👍
@inland dragon
Findfirstchild is finding the child in the respective parent
Thats just finding the frame/button or any UI element in the parent guiTWO thats called "CloseButton"
@inland dragon know how to fix it?
Send the script
alr
Does anyone know to how to extract scripts from a rxbl file and put them into a rojo project?
why is it recursive, though?
I sort of managed to, but not well
i know what the function does, but why would it be recursive?
@inland dragon
Perhaps the script was made 2 parents before the element or the script moves around? That is quite dumb, and if it was ai it wouldnt put it as recursive
I understand your point though
actually
Whenever im debugging with firstchild i usually put it as recursive and even if that wasnt the problem, i dont change it if its a high-level script
why are there functions onOpenClicked and onCloseClicked
you can just do guiTwo.Enabled = not guiTwo.Enabled
and it doesn't even have to be a function too
Yeah but they didnt use the functions either way
It looks like the person who made it didnt send the full code and also thats a big sign its not ai
Ai like chatgpt or claude would not make two functions, they would do the fix that you said
yall why i cant send pics/
?
@inland dragon do yk whats wrong with the scripts?
Looking at it give me a second
bet
maybe a bug or need a certain lvl
bro i need someone to help me with very simple code
so the guy who wrote it doesn't know what he is writing
Basically yeah
Or they're just someone who hasnt seen that fix before/is js starting to code
Its not a fix ill tell u that in a second the fix but the mouse.enter and mouse.leave is very buggy and you should use a third party module instead
yall why when i take my tool its on the ground? its anchored
tools mustn't be anchored
For the first picture, i need the full code of it
alr ill dm can you help me fix it tho if its not a bug or how to use the third partij module
dming or here
No
Search it up yourself
bru
The code is ai
I dont like when people use ai to code
Learn yourself it will be much better and efficent
bro its still on the ground
Does it have a handle?
Here
wdym
Why is it too hard
like HandleConfig
Yes
Roblox studio may be confusing the handle with the configuration
ye it works, thanks guys
Watch brawl dev i think his name was
While your watching you need to do the same thing in roblox
I did that
Yeah it takes practice
yeah, great guy, great videos
Its not a instant thing
learned my scripting from him
Like if you wanna get jacked it wont take you a week or two
I dont got the patience while scripting
make tiny projects
ex. a tool that changes color every click
Also did that
its just not my thing
but why a module script?
@inland dragon
what was that again
what part of it is confusing to you? is it the syntax or just in general the coding aspect of it?
just didnt like scripting the coding aspect
dont got the patience for it
I did gui, building, animating and a little vfx
Give me like 3 minutes doing smth btw
well, coding takes some patience and attention more than other skills
thats why it doesnt fit for me
you have to learn to be patient, then
@inland dragon alr ill wait in the mean time do I just remove the normal script and put everything in module script?
respond when you can
it was also boring for me, but coding isn't meant to be as stimulating as playing games
i've learned it mostly by deducing each aspect of coding
for example, what does local do
what can variables do, what data types are there and how can i manipulate them
??? send a full screenshot of the code i siad
where will i put this variable, what are loops, if statements
or the gui?
did that did not like it
he means all of the code that isn't functioning
like the code inside of the script
if you're up for it i could teach you some of it if you're interested
The first picture send it all
thank you but I dont need it
Other script
here are the 2 local scripts
the first one printed the error
on line 27
is it hard?
warn prints out a warning-style message if the condition is false, meaning that something before line 27 is already making errors
idk whats wrong tho
right, so, what is the real issue here? is the sound not playing?
Can you show the error?
sound is not playing
I rlly wanna fix this for my game
it worked fine before
idk why it changed
show all of the errors
change line 8 and put to return workspace:FindFirstChild("RadioPart", true)
Is radio part directly in workspace or is it in a folder or something
You fixed it
thank you thank you
no problem
So bro really is the goat 
smart guy
What’s the difference in having the true vs not having it?
When childs are nested findfirstchild wont check for it
Lemme show u smth rq
Oh ok
So I got another question
Worksapce > Folder1 > Part
Workspace > Part
If u do it without the True, it will only check folder1, but not inside of it
If u do with true it will check inside
why is the light doing this
Multiple reasons
ah
not the script?
might be because in the script its saying to turn to a certain side I think
Is it unanchored
its anchored
my eyes 😭
so this essentially lets you find any part in the workspace without having to type out the path?
why is it changing the rotation on the x axis? why are there cframes if its just one part?
searches all descendants, once, so yeah practically

Very informative ty 
Np and use roblox documentation for more information/help
THIS!!!
I find it not very useful
Same
bet
so uh anyone knows how to fix the switch
Yesterday decided to learn coding at night for funsies so here we are 

try putting the math.rad(30) into the Z axis instead
or actually check what axis the part has
how do I do that
thats good u can do so much with coding
Ikr, plus the happiness I feel when I actually understand wtf I am looking at

when you get it it feels amazing
when you dont it feels like shit
just... select it, ctrl x and then paste it in the third number
Not rlly, bc that means you’ll learn smth
My main goal really is to learn how to optimize code
You could also rotate it in the workspace to where to want it then copy that and just set it to that rotation when it activates
Example:oncframe = (0,0,30)
I don’t actually know if this would work I’m on phone rn so I can’t test
offCframe * CFrame.Angles(0, 0, math.rad(30))
which line
the one where 30 is in x
Wouldn’t it be oncrframe
😔
Become a low end developer then
doesnt work
deving for a hobby 
if I ever go into something with big ambitions, I burn out before I even get there
put the math function in the middle then
um how
Why
Start with small projects
I made a easy to use system where you just call a function add a few variables and it will show a notification onscreen with formatting and will move up when other notifications get added would this be actually usefull for devs
Too much to grasp I guess

You feel unaccomplished like 99% of the time instead of being happy with what you did for the day
start with easy stuff
yep
What do you know?
okay do you know how to use a pc
yes
ctrl x and paste it in the middle number
Still have a lot a lot to learn 
ngl popped in just to see who hangs out here
Me too
hidden devs doesn’t get great publicity in some places 
but all I see are helpful and chill people
Is anyone able to make a system where when a player joins my game get a base and then make another system where they can place brinrots on one part then a certain amount of money is desplayed on another part and only the owner can collect the cash by walking on the second part and it gets added to there current cash amount?
for how much
depends if it works
If it works, how much 🥀
who's paying for a system that doesn't work
and a ton of children asking for handouts
If you wanna save your time learn with AI
asking questions here is worth it if u wanna interact with others and maybe make some connections
but theres better servers
Gong Service 😂
boi how dare u disrespec my tuff hd 💀💀💀💀😤😤
Where can I I learn coding ? 🙃
API documentation - experimentation
DevForum searches will also help you alot
AI
Ai is the best tool actually to learn fast and clean coding
i've already explained it to him in dev discussion
I guess that's why my roblox assistant recommends me this:
local b = workspace.Part2
local c = workspace.Part3
...```
nahh but I do remember this
Bro, you shouldn't learn it with roblox assistant but with Claude or Z.ai
I'm not learning it with Roblox assistant
That's code recommendation lol
Neither have I learnt with AI a lot when I first started programming
sure bro give me 7 robux tho
I have and i'm really good right now in 8 months
Claude is sometimes a bit of janky coming to heavy logic and physics. But it's good.
AI is meh for me, it's a bit unreliable, I recommend reading the documentation on what you need
Same with other AIs, they're not that good in heavy physics dealing -
Claude is good for beginners and Z.ai is for advances ones
True, tbh...
That's yall opinion, but have you tried it before calling this cause maybe you tried a bad one
Wdym
sure lol
Like have you tried some AI, ask them some questions about programming
I did. But, we're here about learning by artificial intelligence. It is good for beginners, but for advanced developers they'd rather use it to ease their time. Sometimes I've experienced this - AI does make some bloat code or code that doesn't make sense for yourself
Is anyone looking to invest in a game?
Depends on how you prompt too, me i alaways make a prompt before a chat like "Transform you in a senior roblox dev with 15 years experience" and it changes really how it code
But are you a experienced programmer?
Yep
for how much years have you been coding
Any experienced scripter I can ask for something?
Depends. I don't know but probably it has been 6 years+
DMs
So you've been coding since 9 years old wow
Lol 😭
Serious project? Payment?
Bro 15 - 6 equals 9
It's not an accurate data it could be anywhere but I started around 2019-2020
Ye
and how much are you willing to give
bro 😭
anything complex will make the AI shit itself and return the shit instead
it does say you need debug info, but when you provide, it fixes, however that stuff still breaks on your side
this is a massive issue for beginners tbh
well yeah, it's bad at debugging
Requires you like 30+ replies to get a correct answer
it's why i don't use it to code
If you don't have a prompt
same, it can't build the hierarchy we require
Neither, I but IA is really good for dumb errors and errors in overall
привет артурр
yall is it ok to try and learn davinci with lua at once?
or like will i js not understand both
did you try telling it "don't make mistakes"
not a good idea, don't rush it
which one u think is easier or i should learn first?
I checked out da vinci a while ago, looked like I entered iron man's suit or some shit. the interface was not intuitive at all, I had to actively look for stuff that I thought should already be in front of me (and I usually did not find it). I thought it was unnecessarily complex, and I didn't have any fun not gonna lie. but I do have a scripting background, and you feel galaxy brain when you finally start to understand stuff, and that is understandably entertaining. scripting does feel like a journey, and I guess it is more eventful. I'd say you learn lua (and luau if game developer) first
im so bad at scripting that i thought lua and luau r the same thing lol
that's usual, I was about to give up at parameters. it's just standard procedure to me dees days
how do i learn luau?
like what tutorial
someone gave me one but he said he didnt try it out and i got bored from the first video tbf
yeah roblox scripting videos are really boring and your attention falls off quick, you should focus more on material that has you actively doing the scripting, not watching someone else do it
that leads to something called tutorial hell, when you can't make your own systems but only what you see on youtube
i found a python interactive course i kinda liked it but i dont think there is anything similair for roblox
it gives u a lesson and u do the rest
boot.dev?
probably not
its called programming 25 mooc or smthn like that
hold on my message got moderated for some reason
I'll resend it with better wording I guesss
ok
I honestly don't even know what's wrong with it ngl
lol i mean u can send it in dms or in a screenshot maybe
hopefully lol
this is what I meant to say
whyd this get moderated lol
not one clue
Too much truth
hmm but what good resources r there?
it's kind of a badlands gonna be honest
whats the resource u used?
h
you can find genuinely helpful resources on devforum, they can explain a lot of "niche" stuff, but sometimes not fully. now this might sound counterproductive, but AI is a good tool for learning, I'm not saying you should use it for vibe coding. big emphasis on learning. it's a bit challenging to find some answers for more personal or detailed questions, I remember being stuck trying to figure out how to get the direction between two vectors. I knew that there had to be a subtraction operation, but I didn't really know the order because no one taught me that. AI helped me there, and it also taught me stuff that I would have really needed to search (like how the datamodel works on a detailed level). I learned my "basic" scripting from youtube, which was pretty insufferable. I could only do what they taught me, not what I wanted to do. I didn't know stuff that should be considered basic knowledge, like knowing that strings are immutable. I learned the more complex stuff from reading books on programming (well I've only ever read 1 in-depth), used devforum and AI for the more set-in-roblox stuff
what youtuber did u learn from
cuzz devforums r for like more specific stuff i think
BRAWLDEV
hes the guy i got bored from from the first vid lol
his objectives seem like idk dumb or very easy
Hey, you should learn from Documentation.
Please stop giving stupid advices.
idk i have a problem with docs i cant learn from them i need a course or someone to direct me and shi
Documentation are not tutorials. They are reference material
It's not stupid it's true.
Reference material helps you learn.
Not in a beginner friendly way.
started off with devking, found his tutorials hard to follow. initially thought the problem was with me for not being able to understandw what he said, he had me completely lost with his "remote events" video where everything just looked like magic because I wanted to know why it worked and not that it "just worked". then I gave up for a few months, tried again but this time I watched brawldev. had a better run with him, his videos are "detailed". but not quite. they're very long and require a decent amount of attention, brawldev usually doesn't give enough or just doesn't give anything for you to do after you watch his videos too. I think they're dragged on a lot, they're too long. could easily be 1/4th of the length considering they're not very information dense anyway. I got more burned out watching videos than actually scripting, which is a bad thing. I still think reading is better (which includes using AI to explain stuff, devforum, books, random blogs, etc)
learn the fundamentals (i've heard brawldev is good ?) and then try stuff out with the documentation by your side for reference
I had learnt from it when I was a beginner.
brawldev bored me out from the first vid
You probably knew the programming fundamentals before
uh everyone recommends him tho
C's syntax is quite different.
idk maybe the first vid is js that boring
i mean ig ill rewatch him
Lil bro, its the concept that matters not the syntax. PF is same for almost all languages.
The syntax matters when learning a programming language.
you really just have to learn the fundamentals and then its a neverending loop of trying stuff out, getting stuck, and then finding the solution
You're deviating from the point we were arguing about
everyone has a bit of bias. I'm standing strong with just reading. youtube is good, but it shouldn't be your main source of knowledge as most knowledge there is just surface-level (superficial) that most textual sources get more in-depth into. but learning programming isn't all about learning the language, it's also learning some hardware level concepts and definitions of stuff (like the singleton design in OOP). I think youtube videos are best at that, text references are hard to follow in that category unless you already have a solid programming background (which you don't). I'd recommend youtubers like fireship in this case
We're talking about learning Luau.
#code-discussion message
That's irrelevant
Learning Luau includes learning its syntax.
I mean that's technically true
Its not hard, alot easier when you understand the PF concepts.
btw i watched brawldev beginners playlist like a few months ago but i wasnt sure what to do after so like what do i do after it do i watch the advanced playlist or do i idk do smthn
Luau's syntax is designed for children; it shouldn't be hard. PF?
i usually quit after i finish the tutorials for some reason lol
Its not the "syntax" thats designed for children. Its the Roblox Engine API that abstracts everything.
these guys probably are kids
idk whats going on tho
those videos do cover the topics but don't give you any sort of task to cement the knowledge. the best way is to make what you want to make (while also being realistic with it). if you're not having any sort of fun while doing it, you're gonna be stuck in the water for a long, long time. personally, the way I got out of this was to challenge myself to make an admin system (I liked admin games back in 2017, back when admin abuse was still up). and I did enjoy it, had fun with friends using the system even if the code was insanely spaghetti and not maintainable
i mean im learning coding because im very bored
i have a game idea but im pretty sure it requires good like knowledge
i also wanna do commisions sometime in the future if i continue
i went from youtube > devforum/roblox docs > actual programming techniques/theories
as with anything, start off with shit and after getting enough experience and time you'll be better
yaaa
The syntax is quite simple though. You've got a point with the API as well.
?
whats a good way to make a grab system for 2 players so it doesnt have networking issues
Rage bait?
what did u like focus on in the devoforums and docs like what did u learn?
body pos / gyro ^
so is the syntax of C, C++, C#, Java, Rust, Zig, JS/TS,
once you know what you're doing everything is easy.
Yes.
Syntax matters 🤣
I have't programmed proficiently in Java, Rust or Zig.
just whatever i needed at the time to be honest
i still look at the docs
and devforum
Yeah
i looked at a lot of open resourced modules
don't try commission scripting early, and even if it feels like you're ready, don't take your word for it. I tried it. I regret it, I felt so burned out. stuff that looks straightforward ends up being a gap in your learning that you didn't really learn, and your starting commissions probably aren't paying good either. think about what you can put together with your knowledge, and make it if you think it's genuinely cool. most luau knowledge can carry over to lua, and I for the first time used it to make a calculator for my favourite game project lazarus so I can make an optimal strategy (with counters for stuff like "one-shot till round x"). this is the best way to learn coding, bored or not
and you experiment in studio for hours
that helped me learn a lot
Syntax is the program's rules, what one really needs to learn is basic stuff about programming in general, such as if statements, loops, variables and data types
Then i bet 100% you'll find rust very difficult because it eliminates the traditional buggy concepts like OOP, inheritance, insecure referencing with Traits, Borrow checker, Ownership etc.
You gotta execute in order to learn
would learning luau like idk help me with learning python?
cuz i got college in like a year and ppl told me to start learning early cuz cs is hard or smthn
That's quite a drastic difference.
What type of payment methods do people use for comissions? Paypal crypto and what else?
definitely
Crypto creates a mess with taxes
learn the basics, that is all you really need for a foundation
shitcoin
Yea thats what im trying to say. If you got the fundamentals right, OOP, Data structure will be easy. And if you got them right, coding will be easy in almost every language
they usually pay in robux, but you should aim for group fund payment as they're painless, instant and taxless. gamepass payments are insufferable. the client can be on any platform if USD is the case really, so it's not just paypal.
If you want to get paid in USD then what other options do they use except for PayPal and Crypto?
robux?
i feel like paypal would be better cuz what r ppl supposed to do with robux
it can't be devexed though , right ? i've been wondering this
Crypto if your country doesnt have Paypal, else just use paypal.
Paypal is infamous for freezing your account and stealing your money
i can devex my robux but i don't know if the person i pay can devex it since they would have just joined the group for a commission
i dont got a bank account anyways i need to be 18+ to get one and im 16 lol
Then use Crypto SOL/USDC/USDT , Solana blockchain have extremely low tx fee.
But when you sell your crypto and if it is in large amounts like thousands of dollars banks ask for payment source and if you say "freelance work" they ask for receipts and stuff for proof that the income you recieved in crypto was legitimate and roblox comissions dont provide that
which creates a lot of problems
Obviously. Money laundering happens 24/7. If you dont have the proof, then you probably are getting black money from illegal business/way.
lua and python are pretty similar in syntax, with some differences here and there (like how indents are an active part of code blocks, which is not the case in lua). the similarities you'll see are stuff like while loops and for loops (which functionally are virtually the same in both languages). and having a coding background anywhere definitely has an impact on learning other languages, especially if both languages in question are multi-paradigm (which basically means they're likely to be similar in the "flow", which makes learning the other language much faster because it feels "familiar"). learning luau does help with python, both languages have the same concepts executed with nuances and differences. and learning python helps with learning luau (to some extent)
How would you prove to them that the crypto you recieved was from roblox comissions though
to the banks
cool cool
ig ill watch the second video hopefully it gets better
thanks for ur help
I don't think you would get flagged for tiny commissions. But their are many ways of getting your crypto into fiat
I mean if you are a competent scripter and do big amount comissions then it can cause problems withdrawing thousands of dollars worth of crypto into your bank
what are other ways to get crypto into fiat?
It really depends on where you live. In my country banks usually do not ask about Foreign Remittance
u are from dubai?
Yeah I guess learning Lua is helpful but you gotta experiment as well manage data etc
no problem, you can ask me if you have any problems with luau (my python language is very basic, just enough for me to talk about it). also I should tell you that lua/luau and python are multi-paradigm, but that shouldn't let you confuse some concepts. like when I was first learning basics of C, I didn't know why arrays and sets and whatever were not just called "tables" like in lua. then I learned that lua simplified those datatypes into one called a table. try to fact check stuff
Don’t watch videos that’s 2 hours long and then call it a day that’s called tutorial he’ll
Paypal is horrible for recieving payments sometimes they put your money on "Hold" for 90+ days one guy got 20k usd frozen in his paypal account and then his account was deleted lmao
You gotta take action and experiment stuff in studio
What about Wise?
never heard of it
do people use it for comissions on roblox?
Where do you live?
Yes very much
A 3rd world shit hole lol
Name the country
what I'm getting at here is that languages differ in how they execute stuff, which can sometimes affect how your code actually works
kk np
What country are you in tho don’t say that about your country dude
people love there country
How much did they pay you to advertise it
thanks thanks
uhh i dont understand all that
i mean hopefully i will know what ur talking about once i finish the videos
there are lot of racists on discord dude i would rather not say
Do you care about online racism or getting payment?
from my experience, the videos don't teach you remotely enough about "fancy programming english" and you have to go out of your way to actually learn what they're saying after some embarassing moments, well at least that's what happened to me
everyone gonna forget after 10 minutes its ok
Fyi, I'm from Pakistan.
im from india
oi same
Right now just do some stuff in studio and watch little bit videos on scopes, variables, for loops, while loops, tables, metatables etc etc etc
and functions
I forgot about that
🤝
crypto is not a legal tender in Pakistan
Doesn't matter
u think claude is a good source?
alot of ppl hate on ai but when i tried learning python it explained some stuff that i didnt understand pretty well
Nice bro I hope you will be successful in your country
P2P exists on crypto exchange. And it is being legalized now.
Can somebody please explain to me how I can setup visual studio with roblox studio. and use claude or codex on top of that. Are there recommended tools? Should I use rojo for visual studio code integration?
i think i know some of them i tried learning multiple languages i js always get bored
But they will ask where you recieved that crypto from and what was the source and if u cant provide receipts and stuff it will be a problem
Visual Studio!? or VSCode?
Thanks bro u too
That’s where the laziness comes from you gotta be Self disciplined and consistent man. Thats how you will win man
you gotta work harder and smarter
vscode, sorry 😛
They won't ask you. FBR will ask you. You can just claim to be freelancer and thats it. Better yet get a Freelancer bank account
Best advice I could give you
ye i can never get past it even when i have goals lol
hopefully i can idk learn this time
Is to work in the early mornings starting from 5 am or 4 am
You just have to install an extension that will run a server to sync your files with roblox studio
that’s where there is no disturbing stuff in the background
Your Brain is sharp and focused at those peaceful mornings
Alright, what extension do you recommend? Rojo?
yes
Learn and work from 5 am all the way to your preference best thing you can do end work at 12 or 2-3 pm
AI is generally ruining the world but it is beneficial for programmers if they're using it to learn. it has basically gone through every single stack overflow post, and every mainstream programming book. it knows virtually all concepts that aren't fairly new. however, its efficiency at using that knowledge to make stuff is still not very good (for example chatgpt has a tendency to overcomplicate stuff that could be very simple into a spaghetti monster, which puts its place as a doodoo programmer but as socrates in programming knowledge). leverage this ability of the AI to your own advantage, use it as a teacher, which is quite effective if you prompt it right (so it's not jus stating facts but teaching it).
haven't tried claude though I've always used sir gpt
Ok thank you, and then I should be able to integrate the codex/claude mcp server with the vscode? Or should I integrate it directly into studio? I saw there is a new feature
it also loves to leak memory 🙏😭
not reallt a issue depending on scope but eh
Dude.. when u file income tax for crypto and you claim you are a freelancer and you recieved crypto for doing freelancing work they will ask you for proof like a contract, a receipt or something. They want to know why you are receiving crypto from a bunch of foreign crypto wallets
and for roblox comissions u dont get receipt or any proof
how will u prove it
vscode is better
is it good for learning though? I've heard it's much better at programming but not the other way around
your gonna lose your mind when I tell you there's a sales of goods tab in the transactions menu
i see AI as just another distraction, the same way modern tech is also mostly just distractions that don't last long and end up in the dump having served no real value because they're built to break after a certain point
but you gotta admit it has some merit to it other than taking all our water and electricity
Ok, thank you!
Yes don’t use gpt for learning Claude is really the boss as of right now I like it very much
chatgpt became very dumb these last few months
its becoming dumber with every update for some reason
for crypto?
i know, but it could've been done in a better way
our taxpayer dollars going into it btw
Oh wait your talking about crypto lmao
i dont pay taxes its ok
I recommend you to learn the programming language and experiment it on then you can use Claude for assistance so you can know if the code is right or sloppy
assuming everyone is american smh
you can't become a billionaire if you're not evil and only billionaires can harness this tech, so I don't even know if it's possible to do it in a better way
(im not american)
no it hasnt
it has
💀
how much of an AI user are you
Register with PSEB
ok AMERICAN taxpayer dollars going into it
there for the gentleman I corrected myself
i use it from time to time
I haven't wrote a single line of code since '09
thank you sir bedridden banan
What is that
I am of the utmost gratitude
every week or so
when im too lazy to search
🥹
everyone should start vibecoding and stop coding ngl
corporate enshittification of the world and it's happening globally... there are so many things nowadays that can be improved, but nobody actually looks into the past for anything, even though sometimes, if not most of the time it provides answers to issues that existed a very long time ago
Yes stop this digislop
AI has probably already read every devforum post you'd need, so using it to get this knowledge isn't a bad thing if you're learning and not skidding 🤢
The Pakistan Software Export Board (PSEB) is the national IT body of Pakistan, working to promote the country’s IT industry by facilitating software exports and supporting the growth of tech businesses.
not the new ones but you can always ask it to just fetch lol
it's quite good at that
yes but not chatgpt hes dumb
he literally couldnt answer a simple question
ya prolly only need the old ones though, but yeah that too
And instead of crypto you can open a Freelancing Bank account which is far better and secure
I can generally find my way around it with better prompting, but it's overall I'd say it's not very pleasant but gets the learning job done
gpt will answer 45 unrelated questions then give a extremely ambiguous answer
like vro
yeah my problem, need to poke it a bit to get what you want. is claude better at this?
dude i asked him if i should drive or walk to a car wash thats 1km away and he argued for 10 minutes that i should walk
even when i told him that doesnt make any sense he didnt understand
i wasted like 10 liters or smth explaining it to him
I guess lol
Use Cluade OPUS 4.6 with agentic env
claude usually either gets it wrong so you have to clarify it or it actually gives multiple answers, but also it can actually admit it's wrong lmao unlike gpt which will say some random bs
oh it's doggy shit for ANY kind of advice, not just "overall", ANY kind of advice. its best to figure it out yourself or listen to a homeless man rant about his take
homeless ppl r the best i always ask them for financial advice
I could spend a hour telling gpt that yes, that function or method exists, or spend 20 seconds telling Claude lmao
If AI gets an answer wrong it is always because of the lack of context awareness. Which is common when chatting and explaining to AI instead of it having access to the entire context / codebase / enviroment you're working on.
only thing I would say its good at is objective stuff that doesn't change like programming knowledge (the subjective part would be how you apply it I reckon, which gpt does horribly as usual)
tell me your a vibe coder without telling me your a vibe coder
does anybody know how you can implement comments to get accepted as a luau programmer
we didn't even ask for a source but now I'll believe you
What?
Yes you must be talking about BS Benchmark.
like readability idk what they expect its impossible to get accepeted
Holy fucking shit thank you
catalogue every keyword
extra extra read all about it
you should explain how and why your code works, prove that you know what's going on. that's generally what they mean, by readability you should make it look prettier with comments that for example describe what a function does
for --[[insert definition of the word 'for']] i --[[integer]].. etc
boom ez
yeah how do i make it look prettier with comments
I do --//heading// for headings which makes it look prettier but my last one got rejected because I had a comical amount of nested ifs (but that was last year I'm not such levels of chud anymore)
try something like that
some people cover their headings with hashtags which takes a bit more work
comments are stupid
its dead code you can't expect it to be smart
it shouldve been written smart in the first place
100000ms latency gaming
I've making this game for 2 years rn
this is nothing compared to new one
solo?
ye
u did gun model too or just script?
everything
dam
you got skill hope you safe and nothing suddenly happens to this bright mind
nice
and he made the kitchen too
look at this new freelook i've added today
so when are u releasing it
released 0 players 🙁
can u send link
this is freelook kinda thingy
Yeah this is good I love that stuff
like what you are looking at is an upcoming update pretty much
camera manipulation is goated at most times as well
oh
not the camera the environment
ooops wrong channel
It’s ok
hello ubisoft??
Yo yall heard about janitor the open source module
I still gotta learn how Cframes really work. Since Cframe.Angels() involves trigonometry
cos mostly
Cframe.Angels() sounds like something everyone needs to learn
Yeah for sure
To really learn CFrames, you have to look into Linear Algebra and the CFrame 4x4 matrix. How it works and how transitional 1x3 (x,y,z) along with 3x3 rotational matrix work together
here is a kinda great feature i mean for cqb a.k.a Close quarter battles
cframe has a 3x3 rotation thing and a 1x1 position translation thing if I'm not wrong
how can you represent 3D space position with just a single numeric value.
all brawldev told me was that it's some sorta frame and learning vector math left me with a very vague idea of how it applies to cframes
I'll look into it tomorrow
literally 2:30 AM why aren't you asleep yet
I'm gonna dip
When you aim don't make it push back
First number times 10 million second number times 100 million 3rd number times 1 billion
we were discussing its mathematical concept (not really how it applies to roblox in a superficial way)
like
CFrame =
| r00 r01 r02 x |
| r10 r11 r12 y |
| r20 r21 r22 z |
| 0 0 0 1 |
Position:
x y z
Rotation:
r00 r01 r02
r10 r11 r12
r20 r21 r22
| RightVector.x UpVector.x LookVector.x |
| RightVector.y UpVector.y LookVector.y |
| RightVector.z UpVector.z LookVector.z |
RightVector, UpVector, and LookVector form an orthonormal basis
because the 3×3 matrix is a rotation matrix.
Oh, don't....
CFrames are horrible from a math perspective
yeah I meant to say that rotation has the 3x3 thing and position has another one of those "group of 3 numbers" which I could only describe as 1x1 😢
which is also dogshit
Accident mb guys
well they do avoid gimbal lock and weird interpolation but I'm not gifted enough to really understand why they work
it's just magic number system for me rn
That statement proves that you understand neither of them. Explain quaternions.
You're over complicating them
What is this dude saying, it's like saying explain matrices 
I generally don't understand many of the concepts the guides bring up, I'm fresh into high school man 💔
Explain it
@shy cipher do you understand 3D angular velocity works?
only know how it looks when you apply it
Like how it's represented in it's vector form
its for circular spinny stuff
yeah only the roblox scripting part of it
I made a sorta car once
dodging the question now after BS take
some mathematician at the time called it a necessary evil too, nobody liked it until 3d graphics came around
I'm on the same boat
also I should be asleep right now
@shy cipher I'll explain it to you with a pen and rotate explanation. The unit vector of it points in a certain direction, and then based on the magnitude of the vector it dictates how fast it spins. So imagine "poking" the pen and then keeping it pointed in that direction and rotating around it
ain't the magnitude always 1 if its a unit vector
Why would I interact with a 14 yo..?
sounds racially motivated
For your dmas, you get direct access to basis vectors with CFrame which is far better than having to compute it. Transformation becomes simple matrix multiplication instead of complex equations with inversion. Third they are used to represent rotation only
So we have our vector for eg, <30,12,5>, it points in the unit vector of that and spins as fast as it's magnitude
Just admit you didnt understand the concept instead of attacking me personally. FYI learn to engage in arguement and understand logical fallacies
It spins clockwise by convention.
Stop yapping, it's past your bedtime bro 
buh a unit vector preserves the direction by dividing the "original" vector by the magnitude which makes its magnitude after the normalisation operation equal to 1, which like I can guess why you'd need the direction, wouldn't the speed be constant at 1 every time why are we using unit vectors
i still suck at raycasting
be quick vro I need to go sleepy 😔
My cortisol is trough the roof because i cant fix a simple bug and now im going to sleep. I bet when i wake up tmrw and look into it ill find it
So frustrating
We have our vector <30,10,5>, we take the unit of that to get the direction of the axis it spins around and then we take the original < 30,10,5> and take it's magnitude for how fast it spins
Its better to educate yourself than pretending to be smart and using terms that you dont even understand 
my problem is that the magnitude is always 1 so how do you change the speed
or you simply apply a force that makes it spin at <30, 10, 5>
well?
bro you don't even know what an isochoric process is
no offense
We're taking the magnitude of the original vector which isn't necessarily 1, are you asking does it rotate?
That is secondary level garbage
1 sided beef btw bro
You must be around 14 yr old max
20 sadly 
you originally said we'd use a unit vector, but unit vectors always have their magnitude as 1 so you can't really change the speed if the speed depends on the magnitude
Other person too dumb to even answer me
coming up with cheap sht
Oh I see the confusion, we take the unit vector of the angular velocity, and then we take the magnitude of the angular velocity
the angular velocity is also a vector I forgor
so you use the normalised angular velocity vector for direction and the magnitude of the "original" vector for speed?
Yes
it's technically another velocity right because velocity is speed + direction
I've seen it as speed * direction in scripts thoough
Wdym
we computed another velocity value right
We calculated the magnitude, which represents how many radians per second it'll rotate
If the magnitude of the vector is 10, it'll rotate 10 radians per second
don't see the correlation between magnitude (straight line) and a radian (180*pi/ some number I don't remember) which should be able to lie on a circumference
Angular velocity, the way we represent it, is merely a convention.
So basically
We have axis_of_rotation*radians_per_second = angular velocity
won't that give you the speed instead of the velocity? that should give you one whole number, not a full vector with a direction and magnitude
@shy cipher I think you'll understand exactly what I mean if you implement your own angular velocity
you suck at explaining
I'm drowning
How much time do you have right now, if you have enough I can help you implement it
I'm trying to improve it
It'll take 5 minutes tops
I should be going now, dragged this on for too long. can I ping you later?
Dm me
technically I could stay for about 30 minutes but that wouldn't be very sportsmanlike considering I've gone past the 3AM mark
a schedule exists
By definition the Angular Velocity (Vector) = magnitude (Scalar, Which represents rad per second means velocity) * unit_vector_of_axis_of_rotation (Vector)
For example if a ball is spinning along Y axis at 5 rad per second its unit vector would be (0,1,0) and magnitude 5
So
Angular Velocity Vector = (0,1,0) * 5 = (0,5,0)
can you join a vc really quickly?
my account's on limited access till 15th march because it thinks I'm a bot (I have proton vpn which randomly connects to a random country in the background whenever I have wifi), so it'd best be on an alt too which is just more time taken
I personally don't mind but my mic will be off
isn't the axis of rotation something like X or Y or Z instead of a full vector on its own
oh I gotchu let me get my headphones
Guys what could I make that would be good enough for me to get luau programmer role
Does anyone have information as to the exact processing power of BulkMoveTo() compared to that of MoveTo()?
https://create.roblox.com/docs/reference/engine/classes/WorldRoot#BulkMoveTo
anyone have an idea of like how to make a npc glow circle like a cirle on the ground that glows and surrounds and npc
you should benchmark it if you care enough
pretty sure Model:MoveTo uses BulkMoveTo though
the difference will be miniscule
no i'm pretty sure they're completely different
Is having a module loader in your game very good to have?
like what it does?
Modules are executed once anyway
that’s not what it exactly does btw
I’m seeking knowledge from someone that already knows module loader
bulk too is more efficient for more parts but it does not repsect physics its a teleport
so don’t reply if you don’t know what it is
I actually like them alot, I think the #1 benefit is you can like, control which module initializes first. And every module has functions that you can use from other modules, which lets you build your game in a more structured way, so i would recommend anyone to atleast make their own module loader
But on my first point u can definately do that with just a normal muti script setup so idk 😛
if you like adding Service to every lua file to look cool, then you def gotta use a module loader
You cant be hanging out with the weird multi script architecture kids, right
cool stuff to know my friend
thanks
guys as a beginner scripter is it ok to rely a lot on tutorials to do certain scripts?
sometimes depends
its just a redundant step in my opinion. You can init script in any fashion. You only need module loader when you have 20+ scripts and requiring them gets messy. Only then it makes sense to have module table
im watching a tutorial how to create a plot system
this is true, but i think trying atleast to make your own module loader is fun, so i recommend it on the basis of having fun, and looking cool (lol)
kk
just use chatgpt
i don't see a world where a module loader is good
no
i dont want to be gpt dependant
i learned w chatgpt and now ive gotten advanced
like it comes naturally
yup
if youre able to pick up on stuff
yeah you can follow along while you type along with them btw
i just use gpt to help me with some logical struggles
it took me like a year to learn most stuff
and then after u understand whats going on
make another task to make another one on ur own
yeah like i understand everything, but its rlly hard to create from nothing
it has to be different from the previous
hmm
Centralized dependency access
instead of spamming require for each module
i recommend trying to make something completely out of your skill gap
yeah
i think at the very least if you're typing it all out by yourself, then u can rremember it better than just CTRL + C'ing it, and ofc try to understand it too
module loaders are a life changer for organizing code etc
i tried doing a hitbox system, it kinda worked but it was lame lol
this isn't very useful for me because i use auto-import so requiring a module is even faster than going through the centralized registry
ok
you have the same principle in the game
also most module loaders do not cache the module its simply the load the modules and provide a single entry point
up to your preference as well
auto importing the module itself is faster than auto importing the loader and then getting a module
from a dev exp standpoint
Sometimes you need deterministic init order
nah dont use some random dudes' module loader, the only thing giving you organization benefits is just modules in general, i think its good to transition from just "Scripts + bindable events" to "Scripts with modules where each module can be built on top of other modules", thats all
you can get deterministic init order without a module loader
