#In your programming journey, which part did u struggle the most?
1 messages · Page 1 of 1 (latest)
The beginning
yep
it was like a foreign language in the beginning
now it seems like something really simple which anyone can learn
Transitioning into the advanced and applying it in a project
The beginning is the hardest step
Although the tutorial sounds easy but once you realize it's not easy
The part where things are so complex that you do not know how to fix your code
Being organized and actually taking the time to get the system you just got working to actually be structured and implemented well
def the start 💯
Tables, I don’t know why I didn’t understand them, it was probably for loops and adding stuff to them
Everything else was quite easy
Cframes took a while since I was trying to learn them before I learned matrices in school
The part where your skill and knowledge plateaus
It does take a while to gain experience with 90% of the APIs and know enough to be able to just get started on projects and know how you should structure them
middle*, I kept overcomplicating things trying to use OOP everywhere I could, ended up restarting that project after a long break - keep things simple
beginning was difficult but once you've gotten a majority of the basics down it's gets a lot easier
Take steps don’t flood yourself with info.
bro relatable
trying to fix a script that doesnt work without the output tab opened
🤣 yep, I did that
every second
anything with math because Idk trigonometry or geometry and alot of things like that.. (I want to learn it all from scratch but it's stressful and Im kinda procrastinating on it)
I learned all that through coding
Same, having a practical application for math makes it significantly easier to understand
I thought I was alone in this 😭
Nah it's like having a picture book vs a harry potter style
Yeah all my friends in trig were like when am I ever going to use this? I showed some how you can use atan in a 2D plane to make a character look at a point. When learning matrices I showed some of my friends how you can use them to apply local vectors with a plane as an example.
I learned CFrames in like 7th grade
Yet I didn’t do matrices until the middle of high school
maths for nerds
hell no
i waste my time fooling myself thinking im doing something productive with roblox i havent made a dime im not a developer 😭
im just some loser bro
well you keep going around telling everyone you are one then you'll really be a loser
who cares if you haven't made money, roblox isn't exactly easy to profit on
you are doing something w your time
don't be hard on yourself
If you don’t want to do commissions and get rich try to make your dream game
Yea legit I only make games I'm burning to create
tbf I have tons of ideas I really need to get out of my head
but it's MORE FUN when I pick what I actually am the most interested in seeing
relatable
thank u 4 the kind words bro 🥺
that's what I'm trying to do but I think it's far harder to do that instead
I'd rather do quick coms
I have a bunch too they kinda randomly overlap each other in interest
I loose interest in 1 thing and think another is better and the overall quality and progress deteorates
Prolly staying on the same project
ngl that made me pretty happy to hear
I thought I was the only 1 that doesn't have much prior math knowledge but that's rlly nice to hear
Gives me hope.\
math is a skill like anything else
but with most of the math stuffs u need its probably on google somewhere
math is the easiest subject
imo
if understand the formula, its gonna be easy
the hardest subject i think is english
yea but actually focusing on is hard
math is just bunch of equations
and numbers
in english
Depends on the context
Polynomials harder than physics for me lol
hmm
how come?
i found it easy
i think we had it last year
classic physics is easy honestly,
I just really hate the amount of rules that go into algebra
XD
true
so many equations
pretty underwhelming
if you learn the equations, proofs etc math is alot more straightforward, but rigid. English does have alot of rules as well, but in using them theres more leniency
For example bullshitting answers way easier in english
And english i like the flexibility
But i was better at english in highschool so i got a bias😅
it depend
just make sure the teacher isn't asking impossible question in your eye
s
you forgot the hills of confusions
True data store has some pretty annoying edge cases to consider, to use a pre-made service that covers the bases for you is a blessing
i think it's just frustrating cuz mitigating save data is extra work 🗿
i guess that everyone was at that point
what is mitigating save
Like syncing the data store to the game state
yea idk what that is
sigh
its hard being stupid
Basically I'm just saying: the loading of saved data
cough Rodux
drug addiction rate according to me.
at first ur interested, must turn back rn.
at second u regret, last chance to turn back rn before u consume even more.
at thirds u change your mind because of drug effect, it's not easy to turn back rn.
and it'll be very hard to change your mind again
after that (I'm speaking from my uncle experience, if u not ready please do not click the spoiled text), ||you brain will be in the effect of the drug. While you're in the drug effect, you can HEAR a ghost right next to you WHISPER you or EVEN see ghost or any supernatural stuff. ofc you might get nausea effect and unnatural effect. ||
your unc was having a schizo episode cuz he can't handle his substances 💀
dude should lay off the shrooms
💀
I have been trying to make a real game but I still end up making obscure games which doesn't have any point
And of course mathematics
well, maybe just keep practicing
Tru
👍
For me is learning new things, always when i make a project i put months into it and have really specific things that i cant find a tutorial or any forum and i dont know how to start with those specific things.
FR, then when you ask people. They would say "Theres this thing called, GOOGLE"
Facts
For me it's OOP I don't know why but I can understand it in some cases but then I try to implement into something I am doing and die
oop eze.
I learned oop in class
Bruh
same , this step took me like 2 years lol
Lmao so true
radians quaternions
dam
yea I'm not gonna pretend to have read it but my friend told me conceptually rotors are easier to understand than quaternions
Learning how to ask questions for coding is a major skill. When i started off this was hard
Also getting stuck in tutorial hell
When you realize all languages are tools and basically the same, you will reach enlightenmrnt
Debugging
It’s pretty simple but not something you learn except through experience
The goal: find the line that isn’t working
I think the hardest is ray tracing
like programming raytracing
and putting properties to it
So u coded raytracing?
Ray casting is pretty simple
Did you code your own ray tracing and lighting module or something?
game architecture and finding the best programming practices
no
i just thout it might be the hardest part to program
yeah same as me
Trigonometry and physics(math)
I found programming to be a great intro
I learned those topics long before school
So I did very well in math
myself ._.
e
Are you in geometry?
no
pre cal class
i just realized that i also need to take applied math
sighh
applying trig into programming is hard
i've learned trig from school but i can't apply it
I only use it in 2D
The first time I used it was for a 2D fishing game
it is a side view of the fish swimming around and your character up on the dock
when you click, your fishing line has a length
so let's say you clicked 500 pixels away and your length is 250
well we can use Pythagoreans theorum to get the length and compare it
but to get the distance, we use tan
the x is the opposite and the y is the adjacent
the hypotenuse is the distance
we get the angle at which you clicked
then we do more trig with the angle and max distance to find the x and y
would this be considered as raytracing?
all i did is just cast rays (raycasting using roblox's raycast)
oh i meant 3d trig
2d trig isn't that bad
but when it comes to projections/making stuff rotate/camera manipulation then i get lost
true
I think theres this thing called viewport gui?
idk
i havent checkt it
im pretty sure they use that tho to create a clone and place the clone inside viewportframe
so it's not actually raytracing/raycasting, but a clone of you/your surroundings is being displaying inside a viewportframe
im not too familiar with viewport frames
so im not sure what to say
:_<
raytracing is actually diff
viewportframe is uhh u put a camera in it
and then u put a part
and it shows the part
it's like if u want 3d inside gui
yea
whats diff abt raytracing is the surfacing and textures
I dunno, can't say anything when it's really fun to code.
finding the magic numbers sometimes odd one works....
thats the most interesting part in programming
metatables 🙃 a blessing and a curse to learn
Metatables concept will become easier after you learnt it
Anything physics related. Never was intuitive to me, never will be.
return
Fr its so confusing at first
function*
Physics is easy
Literally formula is already there
Metatables are also hard to learn. In fact i havent learned it yet
Whats hard is pure math
Hmm
I always thought of metatables as oop
Like
Having a parent and chils
That can access stuff
Inside the parent
You say this until youre stuck coding physics for hours not knowing wdf youre doing wrong
Lag compensation to me is by far the hardest thing to code.
well if were talking abt just coding them then ig yea
but optimizing them is diff
that as wel
math (I'm still struggling)
math```
physic is a high school subject
part of the science career
biology too
chemistry too
they are not easy subject. sometimes you have to know some of the physic formula just to get your thing working.
Physics is the natural science of matter, involving the study of matter, its fundamental constituents, its motion and behavior through space and time, and the related entities of energy and force. Physics is one of the most fundamental scientific disciplines, with its main goal being to understand how the universe behaves. A scientist who specia...
If someone is too lazy too Google it
thank you
i struggled trying to make a car but thanks to suphi kaner
now im struggling to make a grab tool
I hate pathfinding with a passion
Interesting
mostly the same here
Im at the point in projects where I can individually create systems and features but trying to tie them together in a robust and organised way is just... not possible with my current understanding of software architecture.
Math and errors created by myself (no output message)
the beginning and understanding the math (im only gr 8 lol)
make sense
Finishing projects / games. Before during 2018-2022 I had only ever finished 1 or 2 games, got so worked up on how I should be doing things and what the best way to do them was. Ended up going from Knit, to making my own BIG Games style Framework, using Roact and Rodux to eventually settling down with Roblox Typescript + Flamework. That part was the worst and best part about learning, because I could actually find what was best for me whilst learning all those other things
However it pisses me off a lot when I remake a lot of projects because I always find better ways to do things
Now that isn't so much of a problem 😅
Wow
Well
Thats a milestone right tgere
There
Hopefully ill be successful as u are
I find the issue with "finishing" project for most part is the scope, I've been working with a friend and he has all these ideas that would make for a fun game but the scope is so big that it's difficult to achieve without putting hours into development. I think after a week of development and we've only just started finishing up the basic framework (In our own free time - I have work, he has university) he's now understanding just how much work will need to go into making his ideas a playable "product". Unfortunately I think his interest and motivation towards the project is waning, where it'll end up with myself being a solo developer to at least try to finish the project, Because I find it quite fun to work on.
As someone that's gone through that many times before with unfinished project after unfinished project to newer developers, take a little advice from myself and more than likely other developers. Keep your scope small and build on it afterwards, There are SO many people that jump into projects to just start attempting to make the next big MMORPG etc etc etc. Which is fine I suppose, you have to learn somehow but at least take something away from it besides, "This is too much" or "This is too hard".
this isnt directed at you btw, just a good topic to talk about 
Yeah, started on focussing more on "cash-grabs" to pass the time, but I'm trying to make them better quality rather than some groups (cough lol games cough)
All power to them though, getting that bag 💰
I can't tell whether this is sarcastic or serious 😭
At the minute I'm making games in under 3-4 days now, with the kit I've made
So hopefully development speeds up a bit
Lol serious
I mean
I cant even publisg one
Tbh right now, games don't even need to have quality
just make quick games and spend some robux
get KPIs up n players should come organically
Ye true
I cant with those sims games that js grabs mone6
And never update it again
Just gotta keep working
throw enough at the wall and one will stick
keep tellin myself that everyday 🤣
math
how u learn im strugling
still struggling but I read learn OpenGL book which helped me a lot actually the math section is pretty well explained
here's some resources:
Learn OpenGL book : https://learnopengl.com/Getting-started/Transformations
Youtube Channel for math : https://www.youtube.com/@3blue1brown
Learn OpenGL . com provides good and clear modern 3.3+ OpenGL tutorials with clear examples. A great resource to learn modern OpenGL aimed at beginners.
3Blue1Brown, by Grant Sanderson, is some combination of math and entertainment, depending on your disposition. The goal is for explanations to be driven by animations and for difficult problems to be made simple with changes in perspective.
For more information, other projects, FAQs, and inquiries see the website: https://www.3blue1brown.com
Thx
np
making the switch from procedural to object oriented programming
procedural always made sense
Omg oop is quite diff for me
OOP is hell
i find it to be unnecessary
i love oop
OOP in Lua is very unintuitive compared to other languages imho
If anyone wanted to learn it, I'd very heavily recommend learning it in Java or C# first
i wouldn't use oop anywhere
Well the whole issue behind the paradigm in my opinion is knowing when and when not to use it. Even more so when to do it correctly, It's incredibly easy to use OOP in the wrong way and cause more issues than it's worth.
I find trying to distinguish what should and shouldn't be Abstracted to be the most difficult thing about OOP, so once you get past that stage the rest sort falls into place.
i just Don't Like it
Like it's super easy to fall into diamond inheritance
Thanks for the Explanation though
So what's the alternative?
I would do something like an entity component system that sounds cool but im dumb
I think there are legitimate criticisms behind why OOP shouldn't be used and for the most part they're somewhat true
So procedural coding is what i stick with
ECS works in places OOP can't and vice-versa 🙂
I'd prefer ECS too but it's not required when the Objects don't need to have so many different parameters
ECS would be very handy for what im doing
Personally, I think (Probably wrong) the whole reason behind using the paradigms is to ensure you're not repeating code in multiple instances
Entity system faction war thingy
If I were to start again, I'd probably learn both ECS and OOP at the same time to better understand how they defer from each other and where to use both
I struggle to get out of the habit of using OOP even though ECS is, imo a much better paradigm. I just have the issue of writing inefficient code when I use ECS 
I think oop is great cuz its abstract
this is the way
I learnt java / c++ before lua so oop was natural to work with
Although oop in lua is ward
weird*
Ik
That's exactly what we're saying 🙂
sometimes people know the answer to your programming problem but lazy to reply
sometimes people act like they read your help post, but in reality are only capable of reading 5 words before needing to say something about it
E
yeah, well.... got em...
fr
fr
Fr
fr
||fr||
| fo r eal |
Fr
fr
4 real
fr
⁴ r
4real * 0
fr
from watching random YouTubers -> HowToRoblox -> GnomeCode -> Suphi
thedevking -> alvinblox & gnomecode -> deforum & bricey
thats for me pretty much
math
applying concepts i learn for optimization is one of them
it was really easy since i knew another similar language to lua before i started lua so it wasn't that hard to learn the syntax , the hardest part for me was animation unrelated to programming
Having no time was the hardest one all along
maybe the hardest part were the friends we made along the way
buddy aint learning jujustsu of the kaisen
sorting and data handling
currently I want to use ProfileService to do a project with tables(eg: Thing1 = {Value = 2, Name = "Whatever"}, Thing2 = ... ) And I want to sort the datastore by the highest value to the lowest. I can't just fetch the whole data store and sort it because it might be very long, and I need it to refresh so repeat the operation multiple times
Trying to make a combat system with vfx(I still struggle to make slash vfx)
yeah vfx is complicated
I mean doing smth like this https://youtu.be/TzhIKHlpWvM
DO NOT REUPLOAD
music used in this video
https://youtu.be/ajxoQH3TAsg
https://twitter.com/mitsukiyo_5
tags (for more reach)
Roblox, Roblox Studio, Roblox Dev, VFX, Anime, Magic, MMORPG
I just can't do something like this ):
If anyone knows how to do that dm m
Me
u can use a beam or a trail upto u
and then just tween it
Both don't work
I tried
Beam is not timed well
And trail is depending on an animation, but the animation suck
no idea why but i couldnt understand for loops for like a year, I used to make custom for loops with while loops if I ever needed to loop thru something (started with 0 programming experience)
resulted in monstrosities like this
💀
how did you even found the courage to write this 💀
😭
i started programming on scratch and then i moved to unity then roblox
thats game development
but i also did web development and other things for some time after scratch
No way
not resetting environment (not related to roblox studio)
that's why my code break but not for other machine
Currently struggling with where I should organize my scripting and functionality
I actually got it very fast
I actually got it very fast
quaternion (still learning)
Idk, probably cframe
make stuff
i personally used tutorials to make myself excuses to not do stuff
metatables are a problem
how'd u break free
as i kept watching the tutorials, i sort of understood how to make my own things, personally, the fasest way to break free is to use the roblox documentation and how to script guides on youtube instead of (how to make shift to sprint, how to make doors in roblox etc.)
plus yt tutorials dont really help with debugging
True
Especially when someone who skip parts(totally not me)
the problem i have is i watched like a scripting series on the basics n stuff
but when i get to trying to script like lets say a sprint system
i have no idea what to really put
i guess documentation would fix that though
and yeah i have a really bad just copy and follow along problem
same
you might be tired of hearing this but break it down into steps
can u explain a bit more
break the task down into steps
something like this
- listen for input
- check if the input is valid
- change the player's walkspeed
usually a common thing that people say to others who are starting out
helps with most stuff
if you are making something big then you can break down the steps into more steps
1st step
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function()
end)
2nd step
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(input, gPE)
if gPE or input.KeyCode ~= Enum.KeyCode.LeftShift then return end
end)
3rd step
local UIS = game:GetService("UserInputService")
local plr = game:GetService("Players").LocalPlayer
UIS.InputBegan:Connect(function(input, gPE)
if gPE or input.KeyCode ~= Enum.KeyCode.LeftShift then return end
plr.Character.Humanoid.WalkSpeed = if plr.Character.Humanoid.WalkSpeed == 16 then 32 else 16
end)
toggleable one
probably should use contextActionService
100% the beginning just whenever u see something red having no Idea why and how to fix it and so many bad tutorial
skill issue
no
the only tutorial i needed was how to get rid of brainrot fr
Syrise...
what
i shall proceed with your execution right this moment
im fully fine with that
are there any last words you'd like to mention before i proceed?
wrangling studio and following tutorials for hours to just to implement a system message or somthing like that but nothing you try seems to work for some stupid reaso
yea I have that now again bc I started lerning unreal
the coding is soemthing diffrent
I mean they have blueprint which are pretty nice and stuff and tell you exactly what they do but there are like over 3000 blueprints and if you search something and cant find it its so frustrating
also bc unreal doesnt have as many beginner tutorials as roblox studio
imo just learn the basics from tutorials
like syntax etc
and learn the rest as you go along with doing stuff you want to make
not what some guy in a tutorial is making
that's what makes me motivated
anyway
The end
Being confused
Yeah exactly
fr fr i can vouch for that strategy
learn all the basic and intermediate knowledge
and then go make stuff
there is no end !
I never struggled much with the material, my struggle was finding the motivation to continue and trusting that I could become better in due time. Programming isn’t easily picked up, it just requires daily practice to learn. Id say the struggle to ignore imposter syndrome and try to find something new to learn every day, persistently.
It becomes more noticeable on why that is important the further you get into more complicated topics.
Although if I am being technical, the best thing that helped me was having a strong foundation. Know all the basics like data types, variables, functions, callbacks, events, connections, loops, OOP, functional programming & recursion, and especially your bare bones like built in methods, if then logic, keywords, and type conversion.
Then learn services like tweens, and spacial query, remote events and remote functions, user inputs, camera manipulation, and how to make ui functional.
Then learn client server networking strategies, linear algebra with vectors, and start making plugins and resources to challenge your proficiency.
Once you’ve mastered these you’re already thinking like a programmer and can pick up new information very quickly.
There’s a lot to cover, and new things are added every month. Persistence will be most beneficial because it does get easier as you practice and eventually becomes fun.
every bit
wtf is imposter syndrome even
self doubt of skills
why ppl even have it
nvm its strict mode
often bc of other people telling them they are not good enought or them having way to high expectation of themself
smh for now didn't saw anyone telling me I'm not good enough
only that I'm kinda good
- I don't have high expectation of myself
Mostly because I know what I can
and can't
what
wdym what
?
It took me 1 year to learn for loops
then I learned things easily
its because how young I was
I started learning like when I was 9 - 10
💀
i gotb ored xd
To make infinite timer that resets it/skips time when something is completed you do need to use while loops
I struggled with overthinking the most
You want to make something, but you need to get this other thing done that you dont really know how to do, and then you get distracted and you try upgrade something else, but you dont really understand how to upgrade it
And then irl stuff comes and you dont have as much time and the time you do have you want to play Scorched Earth or pf
you can use any loop you want, one is more practical than the others
while true do end
for i = 1, math.huge do end
repeat until false
Following through with projects, still struggle with that D:
the
wth is that
a
.
true
getting a clean simple system together when there so much to improve and gui. I still dont know how to make a simple menu main ui that isnt 500 lines long thats easily readable. also USING that system is pretty tough, and then you got school and life and not wanting to be in a chair for hours at a time that stops you.
constraitnsssss
i need to learn constraints theyre really powerful
i juts cant bring myself to do so
i make functions that replicate to the client for elevators instead of using prismatic constraints
it was learning how to read documentation because i was so young
there werent that many good sources back then so your best bet was just reading its doc
It depends on what type of loading screen you are making. Id recommend using Fusion or react-lua(Fusion is much simpler tho) if you want to have a good looking ui with clean code(clean doesn't mean smaller, you will probably have way more code )
But then it helps you on all of your game gui cause you can make for example a button component that you can re-use everywhere so you will have consistent UI
And you can separate a lot of logic through different files which makes your code more modular and easier to add features and fix bugs
i looked at Fusion and it was kinda complex, i might look at it again or look at react-lua
Understanding vector3/angles. Still havent grasped CFrame all too well.
cframe is just an "all-in-one" package which consists of an instance's orientation and position
the most basic definition imo
also has some extra stuff like lookVectors and what not but you rarely use them
some people love to over explain what a cframe is by including the 3x3 rotation matrix and stuff like that
Right, i got that, i just dont know how to use it
use it whenever you are moving or rotating something
functions like lookAt are self explanatory
the more complex functions have good documentation
the very advanced starting one while beggining you may be get a lot of struggle but in advanced one for first time you feel like your brain will gonna blow
what did u do to learn how to read documentation and eventually memorize it all
Nothing in particular. I just did stuff i found was cool and along the way kept googling things I couldn't do. Also no one actually memorizes it ALL.
have ability to read
lol
i can read its just sometimes its confusing
i guess
fr\
Patterns and Concepts
Nothing, im just different
show progress then 💀
buying a pc
organization and code structure
Analyzing other people's code can be very annoying especially if their program is very messy and disorganized
Learning code block is more tedious than typing the code.
Regrets me buying blocklua since I learned how to type code
🔥
Its whatever caude dev benefits
what’s code block? like scratch?
framework and code structure
This
It's always unclear how to structure your framework
hard work
to actually finish a game of decent quality in a reasonable period of time you have to 10hours a day everyday
also estimating timeframes
is extremely hard
even 20+ year experience software engineers find it hard to estimate timeframes
This line I can absolutely relate to, sticking to a project is one of the hardest part - though that issue is probably not programming-related as it applies to many other things
The hardest part for me, unlike many others wasn’t the beginning - it was the period where I’d have watched every tutorial on youtube, had decent knowledge of the language but just couldn’t figure out how to keep learning & improving, I felt stuck.
Then I realized all you need to do is to experiment, code anything you can imagine, try to recreate games you like - this way I started running into new issues, discovering new ways to do things & kept improving
nah once u know how to script
learning to actuallly make things
is just about trying to make them
thats not hard part
u just need to know the right resources to look at
like devforum
roblox api
n stuff
hardest part about scripting is 100% finishing a game
I mean this obviously differs from person to person, I’m just saying that finishing a game isn’t really a hard part of scripting because its really about scripting
Creating anything that takes time can be difficult to stick to
For instance, I was planning to build a chair once that I never managed to finish
Finishing a project
fr
Metatables in Roblox Luau. Idk why, but I have difficulty grasping the concept and using it when coding. To be fair, I haven't really tried to learn it. I've read about it in the Roblox Studio documentations and watched a couple videos, but nothing really else.
It basically just adds methods to a table
its tables with "events"
Well yeah I get that. But like, when it comes to using "self" and like __index in module scripts, I get lost
local character = {}
character.__index = character -- __index can be set to a table that will be searched thru if you try to access a value that doesnt exist (including functions!)
function character.new(name, health)
return setmetatable({
Name = name,
Health = health or 100
}, character)
end
--[[
function char.GetHealth(self) -- works the same as the method below
return self.Health
end
]]
function character:GetHealth() -- : adds self automatically
return self.Health
end
local newChar = character.new("Test", 100)
print(newChar:GetHealth()) -- newChar would be self
__index is a tricky one to explain
better to understand it by experimenting imo
local defaultValues = {Name = "John", Age = 21}
defaultValues.__index = defaultValues
local newGuy = {Age = 99}
setmetatable(newGuy, defaultValues)
print(newGuy.Name) -- Name doesnt exist in newGuy, seeing if metatable has the __index metamethod and searching thru that instead if so
-- prints John
not sure how good this example is
might help you get that "click" in your brain
Oh I think I get it. So it's more for like "just in case" situations?
never seen anyone use this for anything but OOP
but could be used like this yeah
Oh ok
you can also set it to a function
local defaultValues = {Name = "John", Age = 21}
defaultValues.__index = function(t, v)
print(t) -- prints the newGuy table
print(v) -- prints "thing"
end
local newGuy = {Age = 99}
setmetatable(newGuy, defaultValues) -- Name doesnt exist in newGuy, seeing if metatable has the __index metamethod and searching thru that instead if so (or if its a function then call the function)
print(newGuy.thing) -- nil
If I wanted to make a whole attachment system for a gun game. Where I can customize my gun by adding attachments and stuff. Would this be useful? How would I implement it
id just use metatables to use OOP and make classes/objects for attachments/guns
not sure how familiar you are with OOP
definitely would recommend it though
allows for clean code
Are you like trying to make a factory attachments or what. Oops seems redundant in this case imo
params and arguments
Don’t use self
But basically it is the first parameter sent to the method, which specifies which object the method is being used on.
You can just grab the parameter yourself instead of defining the function with :
Just define it as a normal function like so:
local function myMethod(object)
end
its ez
Thanks. That helps me understand so much
Lmao
Motivation
Everyone explains metatables so confusingly
Gotta give him A for effort
tables with events has had the most success when teaching about metatables for me
but everyone learns differently ofc
true tho