#code-discussion
1 messages · Page 209 of 1
no because you're able to ask questions in real time with a 1:1 tutor
you go by your own pace
🥀
not rn tho chill out
Just commit to one video a day, it'll fly by trust me
i dont forget what happened 5 minutes ago
And make sure to do it in studio as the instructor in the video does it, it helps with motivation and learning way more than you think
Ill try can i always ping u guys when i need help?
Yeah!
ts so cap
chill out before i start saying the unspeakable
oh now im being threatened
How scary
how scary
R gangsters
roproxy gangster
me and him ate burgers once
Normal minds think alike
nah
youre just a kid who needs his pc taken away
hes been bullying 7 yr olds too much
ngl im not gonna argue with u i feel like ur trying to make everyone hate me or something
youre the one trying to make everyone hate you
Starving artists use AI
Is that what rogangsters are
fr
That's crazy
tip guys: dont insult people
i think thats liberty stories i actually used to play it im not kidding
Reverse-reverse-reverse-psychology
😃
i mean hes the one randomly insulting everyone
im just fueling the fire
Agreed
I've joined after all the insults so idk what he said lol
@digital fog u ever played this?
Lemme scroll up matter of fact rq
i said the f word and s word and stupid and idiot all that stuff
Nah
BRO
... slurs or just swears?
im deleting ur brawl stars acc
hes just spamming swear words againts anyone who dissagrees with him
they are the same thing ur not tuff bro
no im not why are u lying
Ohhh alr
Slurs are NOT the same as swears 
scroll up before u agree
No way someone up there said to use snapchat AI to learn how to script 😭
LOLLL
Please don't think about using slurs, it's not good for you
NOOO MY NONEXISTENT GOLD (I don't play brawl stars 😔 )
johnny how u so chill bro
whats even a slur
slurs aint allowed here
swears are
My body might be old but my brain is 6 years old
whats the difference
imo slurs = f word, r word, etc
I'm pretty sure slurs is like the N word and stuff and swears are the rest of profanity
ye

slurs are like really bad
Are you baiting
not that i care
so its just based on strength
whyd u put the n word in a big N
Idk force of habit lol
U have a habit for using it?
Nah never said it in my life actually
CLIPPED
No way
..??
why are you toxic at me for asking a simple question
not everyone knows the definitions of every word in existence man
is this average 14 yr old behavior
yes bro
Wait really?
whats wrong with that?
hes trying to ragebait what i think of this is its funny bc hes a dev on a lego game
nothing wrong with gaming my friend
We're all devs on lego games
exactly so he shouldnt bully
I'm not insulting you, "are you baiting" means if you're trying to bait me into saying x or y.
To answer your question Slurs are words that target a specific group of people, pretty much racism which is banned
for playing another indie devs game
youre the target audience for my slop roblox game aimed to make money from little kids
lol
not funny
it is pretty funny
Fun fact I've never made a successful game before since working for them is much easier for me
U tryna make a game boi
Long before time had a name, there were two spinjitsu masters..
bro is "nottyping" a thing in roblox?
whats notptping
the ai made me a code to prevent the key from being pressed when player is typing
its gameprocessed
it said nottyping i though it was a joke and somehow it actually works
which could be typing
its when youre typing in chat or typing in a gui
etc.
Ye
I guess whoever coded it called it nottyping
Hey that's actually a good name though
i just call it processed
u tryna make a game boi?
Nah sorry already working for one
Which game idea
anyone who uses abbreviations for variable names need to die
They should be held in solitary confinement for like 15 minutes
Nice
real
Yo
bet
Gl
anybody need websites coded like portfolios, etc? dm me
so uh i kinda wanna make a portofolio , but idk what to include inside? also is scripting a demanding service at the momment?
i need help 🙏
What in specific?
How to properly make cutscenes? I hope there's a better way than manually moving the camera through scripts because it can get awful to set up 
You can use a part as the camera and use an animation for it, then loop the position to set it to that part
femboys are pretty cool
Hey whats your favorite Nen ability
these errors happen because of some random plugin right? i really need to uninstall all the stupid plugins i have that i never use
Ah okay thanks
Godspeed is nice
Yeah scripts in cloud are from plugins
time to clear them out. i havent uninstalled any plugins ive gotten in like the past 5 years LMFAO
probably a huge safety risk idk why i didnt do this ealrier
manage plugins
Crazy
A friend of mine (not a scripter) had a virus plugin that modified scripts and called external backdoors so yeah be careful 
i dont install anything other than frontpage plugins so im probably fine but better safer than sorry
why do i still have a tag editor
You read the manga bro?
Nope but I should 😔
Woah five years? You a pro scripter?
id consider myself intermediate
im not that good
Succession arc is fire it has my favorite nen ability dont wanna spoil tho
Ah thats cool neither am I, you must be full stack tho right? If its five years
yuup!!!
Ooh nicee I'll see if I can get the mangas after I'm done reading berserk 
Man you can just read it online lol
True but it feels different idkk
True I prefer hard cover copies for physical books
But online is more convient I feel like physical copies are just for aesthetic
im self taught though so my journey is very weird. it kinda just feels like i make stuff and it works??? i dont know if that makes sense
Hmmm maybe yeah
Twinzies
Bedtime physical mangas are so good tho
Im self taught too, sleepless nights slamming my keyboard n such
Looks really good bro
my learning journey comprised of reading random modules i found on the dev forum and the api until it clicked
Only been at it for less than a year though
Oh yea with family complaining about the noise 
But Im good at every I do besides scripting thats all I struggle with
Still I get it done when needed
Im an orphan but I do got neighbors I guess
im working on a player list module thing right now? no idea what its called. i honestly dont know if my code is "optimized" or anything. lowkey just try to make it look pretty to my eyes
Ah, my script backgrounds are bright red
random snippet of code for fun
Last time I showed someone my scripts they raged at me saying its blinding or something
lol
i havent messed with the colors cuz they work well enough for me
its good just make sure when they close the ui you destroy it after
this is the player list in teh corner of the screen
i should probably add a way to hide it though thats a good idea
I just like colors cus they remind me of Godzilla
Ty
Clean and understandable 
Show
is it like/?? Neon red
LOL IS IT THAT BAD?
thats what im imagingi n my head LMFAO
You got script for you game?
plenty of em
Nice I was like don’t waste your map. They look clean
Yeah
well i see why they'd say that
I like it, reminds me of shin Godzilla
thank you :D i cant finish a script unless i think it looks pretty to look at lmfao
ive spent days on the simplest systems just because i thought the code looked ugly
Np Damm
THIS ^ is why im not hirable
i forgot i left the server i need to get roles again
ah heres mine
?????????? OH MY GOD
ignore the lines I typed those as a joke to mock my friends
Not really
well our imaginations just work differently, you see when I open my script sheet I imagine my face hugged up against my favourite kaijus glowing blood red dorcel plates blinding me with the scarlet light
and that makes me feel happy and ready to purse my creativity
speaking of creativity, can I see your builds? I love seeing other devs work its inspiring
is there coder out here , we just need to finish our game , its already 90% done so not a big deal ( we plan to advertise the game and payment will be from game revenue i believe , sry for not saying this in for hire section )😩
anyone here know how to use VSCode
;-; i just said ... anyways
mine is jetbrains mono with default theme
me
how do you not know how to use vscode
im confused. in what way
do you mean like how to install it
or do you mean connecting vscode to roblox
vs code is a text editor
Wtf have i made
should'nt be that hard
eyestrain simulator
Get-visually-impaired simulator
So colorful just like your name
i cannot build lmfao
didnt see this sorry
my best friend does the building for our game
Oh cool what kinda game is it can I see pleeease
sorry, cant show the game itself but its a fun little social deduction game
Okay thats cool
its kind of like. outlaster meets flicker
Oh cool flicker
I fuckin hate that game, lame community you know
the community sucks but the game is fun with friends
its completely different anyways
its just the same genre
Ah apologies for being brash didnt mean to direct any of my unbridled hatred towards your art piece
Speaking of your game will it be like a death game
lmfao its okay i havent played flicker in years
Outlast is the gameshow thing right?
yes!! its very heavily inspired by alice in borderland if u know that
completely different from the show but you can see what was inspired by it within the game itself
I alr trashed it
Im practicing scrrpting
scripting
i wanna learn pathfinding really ba
bad
I cant spell
I LOVE DEATH GAMES MY FAVORITE IS ONE CALLED "as the gods will"
I wanna make a death game in the future, its gonna be a animal horror game
Whats a death game
i love as the gods will!!!
SAME
its a genre of media comprising of games where you Die if you lose
squid game is in the death game genre
I see
thats many games
I LOVE THE MANGA my game is gonna be based on it, about a class who goes to a Zoo thats very low on funds and so the creator ends up experimenting on animals and stuff
well its not like. any video game that has dying
And he basically turns the zoo into a huge animal kingdom theme park
But the animals go crazy and try to capture humans and force them to be exibits
Its gonna have body horror and tons of cool death game like stages that center around different animals and stuff
thats very interesting actually
Kind of a vague explanation but Im super hyped about it
you should watch the movie "battle royale" from 2000 if you havent already
one of my favorite death games
I already did recently actually
AWESOME i love that movie a lot. the book is even better
sounds braindead
it sounds like exactly the type of shit to be in the death game genre
frosty cat wsp
what up relative
Basing it on a manga called Jinmen
jesus christ that looks horrifying
Yeah one of my first manga ever
I regret searching that up ☠️
apparently its based on a yokai
i was doing some research it looks very interesting
Yeah basically the gameplay will be an world theme park with different sections and you can explore and collect items to help you in each exhibit, like if you find a broom from a janitor closet and a knife from a food stand you can craft a spear and etc
And each exhibit is basically a different death game/boss fight where you have to either escape/survive the exibit or kill the creature who inhabits it
thats so cool
have you ever played the trials? one of my favorite roblox death games
From a large mutated elephant trying to empale you with its tusks to hopping from bamboo shoots to escape a mutated panda
No actually
Whats it about
its created by zelnus, you might know him he created a game called sacrifice sanctuary
Welcome, Participant!
Compete against other participants in a lethal facility designed to kill all but one. It's your choice to decide whether or not to participate, but once you do, the choice is no longer yours. The Trials is a thrilling adventure game that requires some wit and skill to succeed.
I made The Trials (BETA) in 2019 and have de...
Ohhhh
I played sacrifice sanctuary before but haven't heard of that trial thing
Yeah wasnt that trending for a bit
was it trending again? it was big back in 2021-2022
flamingo played it a lot
boy nobody wants to help you
I can solo dev your whole thing in one day
i know but i do this only to make money
(cap) (pls dont kill me)
good luck selling it
ty
its very very fun, but its almost always at 0 players except when they do events every few hours
the events usually get 80-100 players
how does this stone base look? Im making terrain based on my favourite fantasy anime this one is based off seven deadly sins mountain edges, I can easily adjust it to be different shapes so it can look more natural like in the anime but I really just wanted to copy the stone patters itself for now
Should I paint my own textures aswell? Just so it looks more like an anime
in one server?
maps must be huge
they are HUGEEE
heres one of them
another
these arent even the biggest ones either
cute
yo Im pretty sure the bottom image is froma creepasta game I use to play
its from the trials, it released at the beginning of this year
the game I mentioned is super old
around 2020 something is when I played it
i mean, the examination with that venue released this year. the trials itself released in 2022
Sorry fam I cant
It’s okay
kewl
i dont have any images of it from other angles heres one of my friends LMFAO
i no have cashapp or apple pay :(
What do u have
If I advertise with 250k robux, how many ccu can I expect?
a lot
that's like 1000 ad credits
So about how much would that be?
idk
You should have a set budget per day, instead of just a budget overall. Since it would help getting into the algoritm
start with a small amount, to fix all the bad bugs. Then keep setting it higher
How did u get allat ? 😭
Probably commisions or an investor/marketer
I wanna start commission but I dont find any and I dont know If I can handle any tbh
What do you do?
Scripting
Because u need to be somewhat decent at it
How long have u been doing it?
Since may/ june
Usually you would start doing commisions around 1-1.5 years after u started
Its what I recommend, you could do small commisions tho. But obviously u dont gain those amount of numbers from that
Wtf im not waiting 1y to get robux 😭
Release a simple game and pray, lol
If I can get 1k per commission its fine for me
Its deffinetly possible, if you find the right commisioners
I dont have time for games rn
Guy I wana start a group of dev team in my discord I need 4 2scripter 2 builder and 1 logo maker
It wont be too easy finding them though
I pay 500 each
Yeah probably :/
Does anybody want to join the team
500 robux?
@south bridge yes
Do you have any advice for me@austere matrix
good luck finding people
Are you good at coding
Like how to be a good reference
@south bridge wait is it because it small check
Only continue a skill that you enjoy doing
ye
I really enjoy scripting
I was asking advices for being a good reference for commissionees
Thats good. Make sure to have a good balance between watching videos, and trying to make some random stuff using the knowledge u gained from those videos
U first have to learn
Actually, show me some of your code
Ok
Huh lemme put my github public
is there any problem with removing 'local' from a function ?
Its close to the same
so without local it is better :D
too long
screenshot
no
local in local functions are the same as local variables
ik but it is useless no ?
I can't send pictures
it is a function after all
Dm
alr
correct me if i'm wrong
functions are stored in variables..
local function name()
is same as
local name = function()
what is the difference from: function name()
as long as it is called no error will happen right ?
Basically the difference between local and normal functions is that normal functions are recursive, while local functions arent
--Not recursive
local name = function()
name()
end
--recursive
hello = function()
hello()
end```
But you can make it recursive tho?
Are you stupid
Try making a function like that recurisve
it does
wat
why wouldnt you be able to just do
local func
func = function()
func()
end
im talking about local name = function()

thats not the point
hey does Changing light property make it less laggy?
what light property..
how do i port my roblox game into vs code? like automatically
Use Rojo and copy paste all your scripts
I'm curious, is it better to use .CharacterAdded or CharacterAppearanceLoaded?
I personally use CharacterAdded for everything
Maybe use appearance if you wanna do something when the appearance is loaded
okay
But I guess it depends on what you wanna do
Rojo and vs code don't save roblox special classes like animation and other stuff
so id just have to copy and paste those in like actual roblox studio
but i make the folder for it in vs studio
Nah make the folder in studio if you want
Yw
can i ask you smthin instead
yes??
how hard would it be to make a boat and water that have physics
uhhhh
hmmm
i think it might not be that hard
genuinely im too poor either way
you might wanna use align constraint
wos dat
You can also just use
https://github.com/rojo-rbx/rbxlx-to-rojo
task.wait() is overrated ngl, wait() mogs
holy shi man i need commisions
i only hate the fact that you have to type task. as well
i missed the simple times when you can js write wait() 🙏
but apparently wait() is more sloppy than task.wait() so like idw a sloppy system 🥀
wait is better
no need for .task 🤮
nah bruh
yessir
task.wait() is sharper
it is bro
its a fact
depricated because its too good?
roblox is jealous of wait() raw power
i know no need to remind me im smart
task.wait() is better then wait() no doubt
keep writing wait() buddy
wait() mogs, no way to argue it
you'll see it become more sloppy everyday
i am buddy
better accuracy and more reliable
exactly
task.wait() mogs wait() ANYDAY
🤮
biggest lie
roblox is just mad jealous that wait is much better and they trynna difame it
idk what your arguing abt buddy but keep it up
thanks g
yo can yall help me :b, how do i make it check that if the chance isnt < 1/9999 then it checks if the chance is nil :b
my scripter isnt there rn and it doesnt seems like an hard task so ill try making that 😎
if ChosenEgg.Chance < 1/9999 then
print("B")
local ColorName
elseif ChosenEgg.Chance == nil then
print("Chance of chosen egg is nil")
end
Theres a colorname for nil chance eggs?
not specificaly
its just a generality, most nil rarity eggs are unobtainable by simple generation
So they exist but are not for grabs anymore?
depends
liek some eggs are obtained from donation
me spawning them with commands
and so they dont spawn naturally, they dont have a rarity
I think its better to wait for your scripter to come back 💀
there isnt enough code to show
@tawny mango check dms
cant i just do that and add at the end local ColorName ?
maybe you can go inside #code-help
yeah sure if thats what you want
Alr 😎
if ChosenEgg.Chance < 1/9999 then
print("B")
local ColorName
elseif ChosenEgg.Chance == nil then
print("Chance of chosen egg is nil")
local ColorName
end
it doesnt work 😭
1, but 2 more simplistic
@jagged scroll
How can I disable auto jumping when holding the spacebar, so that it only jumps once even if I hold it down
Nono, remove the "end" after the first if
Literally copy this code @soft meteor
it does break after thats the issue
@jagged scroll
any recomendations for scripting
for beginners
@jagged scroll
on my small game we can do percentage
nice ui man
its a game
How can I disable auto jumping when holding the spacebar, so that it only jumps once even if I hold it down
wish yall all luck
i’ve done it 4 times already
i need this too
How can I disable auto jumping when holding the spacebar, so that it only jumps once even if I hold it down
i pay to wim
anyone aware if its possible to make an npc give custom not set answers? sort of like an ai
i want to be able to ask an npc custom questions and get back custom replies
https://create.roblox.com/docs/reference/engine/classes/Humanoid#AutoJumpEnabled
Have you used this property?
Also I get it you want someone to answer your question but spamming is not really the best thing to do, just try to move your questions to channels with less talking so it gets seen
any builders in chat?
How does it break?
The issue i see is that colorname is not a global variable, so you might want to put local colorname outside of the for loop
Okay good
but i just needed to flip the nil check with the 9999 check 😭
i wasted half an hour of my life becose of that
Hm?
GUYS I NEED HELP MY DOOR TURNS INTO A TOSTER WHEN I OPEN IT
I’m a builder
add me
Ok
FIRST TIME IN A A COUPLE WEEKS
what's the best way to learn scripting
u dont
fair enough
six sevenn
@stuck radish freak u bro
yall be doing too much
@stuck radish freak u bro
yall be doing too much
Hello, can you please stop spamming a ping to a staff member? If you have an issue with something, bring it up respectfully in #staff-help and/or make a ticket. If this is in regards to an application, definitely do that
i will not be doing that diddyblud
how to make cuter
cause if i dont have the icing parts whitelisted it doesnt work
warrning me for ts
discord mods are lk dweebs smh
this diddyblud thinks hes tuff
haha your character
@olive thunder
can someone help me make CenterOfMass work again in my game
make it ignore if the mouse target is an icing part
should fix that long icing problem
Yeah but I want it to have this effect
Like the
This is with it not whitelisted
@finite turtle
show me the code
ive deleted the code like 5 different times cause i keep trying new methods, basically the properties on the humanoidrootpart use to have this thing called "Center Of Mass" but roblox made it ReadOnly, and now it doesnt work
use a attachment or a massless part
if you needed to get the position use model:getcenterofmass
nah im trying to offset the centerOfmass for some da hood game so the speed glitches work again
but i will try
oh
how do I access my sateManager module? Plr:waitForChild wont work so I dont know what to do
do I have to do a StateManager.new(plr) in every script?
show ur code 👍
ok 🙏
Give it to ai
What do you need 2000 lines for shooting a bullet 😭 😭
Why does he do logic in client module
if u have shitty code then that happens
Dude what the fuck
Never seen code so optimized. Really this is impressive
This looks like its built to hide a virus
Crtl f and search for require or getfenv
Yo whenever I finish my script, I test if it works and if there is any issues in the output. After I make sure there is none, I give it to Claude to see if I can add improvements. Is this bad since I’m tryna learn and people say don’t use ai?
Guys, I'm really new to scripting stuff but I have a big question mark on my head about Module Scripts. Example if I want to code clicking specific parts is going to print something, why should I use module script instead of CollectionService by using tags?
module script and collection service is used for different things
module script is used to run a bit of code and get a return value
Can you give me an example?
Something that only module script can do
Or which case we should use module scripts
Module scripts can have data stored in them: variables functions etc
declared by doing module.variableName = 123
And then accessed by requiring it and doing the same thing
Collection service lets you tag objects, and then access all objects with a certain tag
they’re great for organisation basically and you should definitely give them a try
I understand what you're saying, but can you give me an example to help me get a clear idea?
If you want to reuse your code
Or if you want to expand the functionality of a specific class
The module scripts are the best, cus you can simply add keys in the metatable (methods) and just expand them
i think its similar to functions technically u can make everything without functions but with functions u can reuse the same code without having excessive lines and u can modify the function in one place now u take that same idea but instead of just lines of code apply it to an entire script
Say I wanna make like 5 buttons that grow in size when I hover over them, I make a function inside a module script that takes the button as an argument and enlarges it
Now I require and call the module function inside every button when needed; if I want to change the size they’re enlarged by, I don’t have to go into every single button, I can simply edit that one module script
this is like really basic but yea
yeah, but functions cannot be required from other scripts whereas, module scripts can be required and used from any other scripts
You can do it both ways
Module or not
Try both ways and see the difference
Its a good learning process
yeah not NEEDED but can be used
They make your life easier in the end
So main thing is, Do I have to add script each of the parts to require module script?
It doesnt feel optimized
Not necessarily, you could get the objects in a single script
there is no optimization part to worry about for loading modules, if you want to optimize stuff focus on the algorithms you made / using
like
u do not need to worry that calling require is going to cause some problem
it isn't
Thanks for all of you guys trying to help me
Who’s fish reacting 😭
yes its normal to load modules from multiple scripts
O: I didnt know that I can access local player from module scripts
Thats cool
Wait lemme cook rq
Just remember modules run in the context of the script requiring it
and they run per environment
we all gettin replaced by AI?
So you wont be able to access local player in a module loaded by server, has to still be eventually loaded from a local script (which is the correct context for accesing local player)
im trying to make 5 buttons when players mouse hovers on them they get bigger but
It says X couldnt assigned to
part.Size.X += 1 isnt correct
How can I find X
And why I cant send photos here
You can't edit the specific properties of a vector3, its immutable
Youd have to construct a new vector3 w the desired components
Just do a for loop that loops through a list of buttons and make the buttons size larger by a multiplier
Also you have to clarify a bit more here, buttons as in gui buttons or physical parts in the workspace?
cuz gui objects use a diff data type for pos/size than physical base parts
3D ones
But I have to go to bed
In my timezone its late
I'll make it tomorrow
Thanks for your help
?
anybody here remember the simulator plugin that creates that crappy simulator game that everyone used for a while
nah, it can definitely speed up workflows though
relying entirely on it and vibecoding though results in garbage
inni
if you vibecode it’ll take longer to fix the ai code than it would’ve taken to actually just write it yourself
just ask another ai to do the debugging 👽 👽 🔥
eventually 100% but not any time soon
what is a great way to get rid of spaghetti code?
modules and reduce dependency on things that can be changed globally
Ts actually made me lose it
I feel like im making it harder than i need to
I had to do a million different things to make the camera and POV not interfere with eachother, i also cant leave the box
https://x.com/cmzw_/status/1979574115259556150?s=46
looking for a coder that can create these card effects.
Dm 📥
whoah im a genius
Should i use a module premade for object pool or do I make my own?
It wouldn't really matter unless you're not allowed to use external libraries + if none of them fit what you want
I kinda made my own for testing but it sucks
What exactly could suck about it? I mean, it doesn't require a complicated algorithm, the principle of it sticks between multiple modules out there
Just generalize it to work with parts and models, make a wrapper that works with your models on top of it and you're done
That way if you swap the object pool impl your existing code wont be affected (since they use the wrapper)
If there's bugs, share that info
If you really dont wanna use your own use this
https://create.roblox.com/store/asset/18819618773/ObjectCache
You really only need one if your creating a lot of instances quick
Do inventory saving for humanoid death fit?
Ye but I'm still new to OOP so I'm experimenting with OOP methods and stuff
Should I send my Objectpool code?
Oh nah I don’t use oop
I think it’s pointless
Functional programming is superior

Why do you wanna use oop? @night mauve
Uh nah I don’t think you need a object pool for that
Object pool is for stuff like bullets
Where you gotta fire something quick and a lot of it
That’s where object pooling comes into play
Now you might mean something else
But
How would u create objects for the methods tho
ohh
I don’t
I don’t use object orientated programming
Luau the language Roblox was built in is not a object oriented programming language
However it is able to be done
OOP most overrated thing used by roblox devs
I just use functional based programming
Ong bro
How about not tying the inventory to the state of the humanoid?
Is there a reason you need to save the inventory when the humanoid dies?
Why doesn't the inventory just stay consistent the entire time?
never found any real benefit using it like bro
Most devs don’t even know why to use it they just see people tell them to
ong
agreed
if u wanna do OOP go ahead but its like
why
if u prefer the structure go for it but defo not needed on roblox
Different for every player and they're collecting stuff, and backpack gets clear on humanoid death
yeah i mean OOP here is simulating it
It's impossible not to do OOP in Roblox since the api is already that but just keep everything balanced and don't make something so complicated that it'd be better off without it
Well yes
Like don't try to do complex inheritance shit with metatables and make some super nasty implementation if you can just do it another way
honestly most people
overcomplicate their code so much just to get sum worse than functional coding
And limits you like crazy espically once it gets complicated
@night mauve you new to programming
Yeha I’ve learned the idea of it
idk what level i am
yeah
It’s just ass
i personally dont like it
I get that, but what is your goal?
W
saving when player is dying and giving player their tools back when character added
Bc if Roblox is destroying your tools, you can't edit that behavior without making your own tool system
You can just work around it (but not edit it)
I'm saving it to repstorage then giving it back to the player
i did it, i was just asking about object pool
Yeah
Object pool is just for instances that need to be created quick and a lot of them
Ima use objectpool for that cause i've tried cloning before and it lag spikes
How much are you cloning bro 😭
If you see a case where object pools would help, use them
entire roblox toolbox atp 😭
You sure what you are doing then is the most efficient
I mean yeah the a object pool would work
It takes a template and clones a version of that template that way you can easily call upon that instance and return it to the pool when you don’t need it again
But if your doing inventory
It should be more of a cache system
It gets cloned either way
The object pool just allows you to not have to constantly clone and then destroy instances each time

thx
U do commissions?
whats the best way to go about making a basic weapons system w/o using default roblox items?
if youre using classes the object has to exist on both the server and client, for the every players inventory on both sides
i hate how when im trying to learn code and use brainpower only, the roblox AI just solves it for me 😭
hi code discussion
it wont lead very far
trust
how funny
im doing obj pool rn
😭
Best way to learn code?
Tutorial about a certain game genre then mess around with the code and try to add your own features
Any tutorials I can watch?
Or ?
I'm not sure what genre of games you would like to make so I can't tell you 
Personally I learned from gnomecode's TD game series
i wish to put a run animation i made into my game. i got the animate script by joining game, copying from my avatar and pasting it in startercharscripts. the problem is when i replace the desired ids and stuff with my id it makes me just have NO animation
how good do you guys think I would be after 100 hours of scripting? Would I be good enough to script a decent game myself or I need more practice?
Not a decent game
But a game
alright, im just talking about a simulator
shouldve been more specific
but thanks for the info
Depends what kind of simulator
lets just say like a mining simulator
I mean if you use ai probably
Idk it's vague to say learning just scripting
alright I just want to learn so I can do it myself because ai wont be exactly how you want it
I will just do it for a few months and see where im at
Ai can help you extremely if you are new to scripting
new scripters shouldnt use AI
they should learn on their own
Okay skibidibattler100
AI is good if your already experienced w scriptinf
my main discord account got permanently banned, and i gotta use this lmao
Ai is good at explaining stuff and that's what most beginners need, explaination
So you decided to name yourself skibidibattler100
AI’s got shit explaination icl, sticking to yt tutorials and experimenting yourself is better if your new
aswell as it teaches bad code
Ragebait
ai sucks ass
this acc is like a year old, i didnt have anything else, and whats that gotta do w anything
i promise u i got like 3 more years than u
Is this your opinion or somebody else's
Sure
my opinion
I agree that you shouldn't use ai to create code as a beginner
ai still sucks at explaining
Hmmmm.... It's difficult to answer this question, you would either enter this loop of learning something new and going back to change your old bad code due to limited knowledge, or winging it with """bad""" code till the game is realesed, so yes, as previous said you will certainly get a game out, it being "good" depends on what you end up with 
But using ai to learn
just read docs
AI is only good for whipping into generating good math formulas
Idk what model you use, but this gotta be ragebait
docs won't help you create something
im using youtube videos and I didnt fully under stand what a variable was so I just asked ai to explain
legit
It's a researching source
can u reply to dms
ai wont help you create something either
you literally said he’ll be able to script a full game after 100 hours of coding using AI…
then its alr
theres something called guides
ask it questions, dont use it for code
imma just learn and stop thinking all of these things ahead so I can actually focus
As a beginner scripter, docs can be extremely confusing with a lack of explanation
Sometimes "referring to documents" gives me a lobotomy, I much prefer dev forums or just bugging another scripter till I get an answer
https://create.roblox.com/docs/luau/variables why ask ai when you can read human written text
there are explanations and guides
I said if he uses ai yeah he can create a game, not saying it's going to be anywhere close to being good
ai helps too
never knew that existed
look how much there is
You're going to die on this hill, I'm not saying AI is good and such, but sometimes asking a small question and getting a summery from the AI is better than spending more time researching docs / the web in general
everyone keeps pointing to use ai 🥀
sure but dont rely on it
Gotta be ragebait
show ur code rn
i always have ai open, but i got 12 more documentation tabs
its def 100% AI
so docs win
???
Yes use both
jus show it
Good idea
anything to hate ai as if pro dev is using to build a massive game
no need to ask questions
I'm on my phone right now in my bed
Yes that's true, I believe in healthy usage of AI as a tool is good tho! Think about it like this
-> curious about x resource -> ask ai -> it works! Hooray
-> curious about y resource -> ask ai -> doesn't work / outdated -> research
so do you rely on docs
I'm not going to get up just to show that I don't use ai to code
why would u need 12 tabs
ok fine
Which is false I do
i just ask ai for an overview, then google up what ai says
yes
reading api
I mean imma use both
for learning luau itself i wouldnt use ai much/at all
my first game was a obby
because programming langauge explanation is critical, if its wrong it messes everything up
What if you read the docs about meta tables and you find it confusing and needing someone to explain more in dept
Ai is extremely efficient at doing that
I've used ai in this way
I'm not saying you should rely on ai
Ask another programmer, maybe that's just me but I always bug friends first then google later
Why reinvent the wheel when someone already went through the pain
Most people that search for answers in here get thrown bullshit in their face icl
Not everyone has a god scripter they can rely on
i doubt docs is the issue
just rely on me then, skibidibattler100.
Docs isn't the issue, it's more like that sometimes a beginner scripter will need more explanation than what docs gives
i dont get why you would want a long ass ai explanation rather than docs yk
Yeah okay explain meta tables rn
a table attached to another table
exactly, I dont understand some stuff and I just ask ai
Are you skibidi battler 100?
no why
Wasn't asking you dumbass
a table that defines how other tables act during specific operations
ta ta
No ur making it tok complicated
ts ts*
making games by only following tutorials is just so boring and not efficient, thats why I need to learn
The other guy had it right
dawg BOTH are right
I always give up when I have to watch too many tutorials
💔
Nah ur more talking about meta table functions there bud
Well both
also meta tables r for losers, literally u barely need a metatable when coding especially since classes in lua r so dogshit
all u need is a module loader, a garbage collecting cleaner like maid and whatever utils you want and typechecking
Yeah you def never worked on any big project
who are you to say? lmao?
Worked on plenty of games, including one peaking 8k ccu, as well as working w Boss Studios
the studio behind ALS
AutomaticSize is so unreliable
8k CCU doesn't mean it's a big project
And what i am saying is NOT wrong. Meta tables ruin the normal lua u intellisense, causing u to have to add a bunch of types on top, overcomplicating the code
But when you are working with over 10 other scripters, structure is extremely important
and i have a neat structure without using metatables. It’s really useless.
Yes you are correct, it's fine to not use metatables, but to say they are for losers?
Idk
What projects ahould I do to improve coding? Like doing tycoon etc
Anything that challenges you
Alr losers was a bad term, what i mean tho, is that there’s forsure better ways to code something without using metatables
Intellisense when working with a team is mad important, and lua’s classes r jus really bad and is why i prefer not using it. Wish roblox added better classes like other languages lmao
No not really, there's other ways to code without using meta tables but not really better
Cleaner, doesnt clutter code, easier to read, has good intellisense
classes r useful, just dont use it a lot
👍🏻
I don't think you can really go cleaner than metatables when using metatables is the right thing to do
metatables are really useful but I wish classes weren't locked behind them
when is metatables right to use?
i wanna see what you think
Weak tables are pretty useful
if you have a table it can automatically clear elements if they're destroyed
so it prevents memory leaks
i see i see, assuming thats a smaller version of a class
havent read abt that
should prolly check it out
what abt dop, dop is like oop’s dad
tbf doop is so good for enemies
classes are just a small part of metabales theres a lot you can do with them
i recently learned tweenservice
local TweenService = game:GetService("TweenService")
local Part = script.Parent
Part.Touched:Connect(function()
local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Quad)
local Tween = TweenService:Create(Part, tweenInfo, {Position = Vector3.new(10, 10, 10)})
Tween:Play()
end)
why this not working
it keep playing even when not touched
Dop?
mixed dop w ecs
Think you mean doop, I guess u are kinda rifht
Should U create a oop system for each type of weapon like bombs or guns?
i gotta go sleep, its 7;52am rn and my brain js cooked
Create an oop system for everything tbh
Like they're gonna have different functions like stepped on or activated
I just had some people say oop is overrated and now lol
Because its touching the ground always I'm guessing
oop is underrated
How do I create different functions for each oop object?
wdym?
like say i have a gun which one is auto and one is semi and one is single
Id have a base gun class and make those types subclasses
if that's what ur asking
Oh how do you make subclasses?
uhh i forgor
something like
local baseclass = whatever
local subclass = {}
setmetatable(subclass, {.__index = baseclass})
I think
dang
thats confusing
I mean i don't really remember how it works i just know what it does
thats kind of what matters
Why would you do this when he has 3 diff shooting modes
why not
No
handle shooting modes differently in each subclass
Whats the baseclass for then?
organization and whatever shared functions you need that don't involve shooting
Honestly I just wouldn't use oop for a firing mode
If its a big part of the game then I would
Why do some people use profile service / other data modules other than the default Roblox datastore 
Am I missing out a new trend or? I don't think the default Roblox datastore is that difficult to use or maintain and its reliable
What features would want over saving and loading data? I feel using these data modules is overcomplicating a solution to a problem that never existed
