#code-discussion
1 messages Β· Page 254 of 1
it's about knowing how to structure your games correctly
for 39
so that implementing features is easy
39k in usd hmm thats not too bad
debugging is easy, etc
nooooo 39 robux
ohhhh
that's the cost of a gamepass
nah too much
they are a bit different
oh π
okkk
No, I'm actually a .net dev (c#) and work professionally so i make money from my job
who here actually knows how to code in luau
that's sick
that's sick im still learning that
anyone mind buying a gamepass from my game
Can anyone help me with my football game code? Please
Dm me if you can
who
or do you use luau outside of roblox
oh nice
the only reason why we make em. Funding for an actual game I love
I don't, I've done a couple projects like 3 - 4 years back creating some games with my friend but that's pretty much it in terms of roblox programming. I did code a couple things in python using the roblox API like a group manager which i sold to a pretty big group
did it take u minutes just to type "nice"
luau
ah
well talking about roblox api i abused it
That's the best part of the roblox api π
hey could you give me some tips
I did some wild stuff couple years back with the roblox api, if you got a random friend request from someone advertising a group that was probably me lol. Created a simple bot with around 1.1k cookies/accounts (bots) sending friend requests with "buy x clothing join y group" did make alot of robux from it
dude u made 1.1k accounts?
did roblox not suspect anything when devexing it? or did you not devex
spend time coding projects, that is literally the only way to get good, don't stick in one subject learn as much about coding as possible
i have a friend who generated 20k lol
who the hell is ur friend bro π
I brought them for 1k robux from someone who generated them (mass creating them using a program)
did not devex it, ended up selling all my robux for crypto then spent the crypto on a couple things
aye nice man
How do you guys sell and buy Robux?
was it a lot of money if you dont mind me asking
I never understood that
no not at all, i think i was making 500 - 600 robux a day and could get around 100 - 120 group joins a day
ah so nothing insane
Thatβs a lotπ
still pretty cool though
maybe if you scaled it revenue would scale linearly
yup just a cool experiment tbh to see if it would actually work
i was thinking of
just out of curiosity
programming a monero crypto miner
it uses an algorithm optimised for the cpu
and my friend has a seperate exploit where he can upkeep
Who the hell am I in a discord server with bro
We got Musk and Zuckerberg here
and see if it could be profitable
but never got around to it, probably because making an entire monero mining algorithm from scratch in lua is very very very difficult
i do feel as if it would be something that could work though
40cents per day per server, 2k servers, 800usd per day
guys
very illegal also
definitely could of scaled it on 20 - 30 accounts i created myself it would get a group 20 - 35 members a day
who want to buy a gamepass from my game
you'd be better using ASM if you wanted it optimized for the architecture
fflag and jimexde do you guys got any advice for a beginner developer
No matter how many times i try, each time i end up adding more systems to my project it just becomes a mesh filled with checks and garbage, how do i write more clean scalable code
you realise i was planning to run this on the roblox sandboxed luau server
lol
oh lol
split the code out into smaller funcs
and using assembly to write a crypto miner sound like the craziest thing i ever heard
i do NOT work at intel π
I've got i think around 100 - 150 python files now for 2k lines of code
welcome
@rocky idol look at how beautiful this is
lol
interesting
hm?
everything is grouped by features, each folder has a singleton that controls that specific feature and a script with client runtime to call :Init() on the modulescript
She works fine for me and I love her dearly
i use .init()
i modify internal state
self.Initialised = true
and a check for whether module was initialised
Why do you have client only stuff in "shared"
shared should be for client and server use
thats actually true
lazy
irrespective of this
i was just too lazy
yo how did you master scripting
im able to script almost anything
but i take too much time
I used to indeed have a structure which seperated client modules from shared modules but i never bothered to migrate that version to my plugin
any tips
takes too much time short term but long term you'll save so much time
should i join a dev group?
so ur saying u always over compensate?
code something to help you code quicker (not AI) look into low/no code solutions/platforms always good fun making them
yo why cant i paste pictures
so if ur supposed to build an inventory system you try to build that and then the idea of dropping the item or interacting with it pops up and u try to make that simultaneously?
to show my new architecture i started working on
Yes, at the start of every project it takes 10x longer due to the initial complexity I do it on purpose knowing the complexity will increase overtime if i don't introduce it correctly at the start.
wrong person
I wasnt supposed to respond to you
i never over compensate anymore. I always have a plan to create easy to change expandable and loveable systems
i got rid of that habit last year
yeah i think i made one before
I always stick to one thing im doing finish that, if i notice i can do something else or i have a new idea i'll do that later but first i'll finish the thing im on. I use git/github and have branches for each feature if the idea i have is not related to that branch i won't work on it
And im guessing this is good at the start then turns into something unmanageable later on?
i dont think u read that properly
keywords are "Easy to change, expandable and loveable"
over compensating is a negative trait
Not in programming
ai is an AMAZING tool if learned how to use properly
dont make it write code for you but use it as your all-knowing teacher who could be wrong in very rare occasions
use it like how i use google π π π
i make it correct my code when i can't figure it out
it often times fails to "correct" my code
i cant stress enough how powerful ai is for programming
if it does something good then
AI is amazing for small/medium projects or just brainstorming project ideas, as soon as you touch commercial code and ask it a question about such things it will fail
i take that snippet and convert it
how did u think i came up with names for my game events? i lost most of my creativity because of school
You.. lost ur creativity.. because of school...
best possible thing you could do is learn how to read docs then you won't need any tutor or tutorial to help you
i disagree
well
to an extent
ai is what taught me to write clean maintainable code since there's literally very very rarely you will find somebody that knows how to
all my project organisation, code structure, etc i learned from ai
is anyone a scripter and free to help with my passion project ? :)
my school is known for being top 10 in the country. Though we have been fluctuating as of recent
regarding academics of course
they don't give in to creativity at all. This one time me and a few friends proposed starting a calesthenics club and we were quickly shut down
no chance given
dont do calisthenics go into body building instead ahaha
thats why they shut you down
joking
my own club was removed from the system because our supervising teacher left and i had to talk to the school's programmer about it
they just dont care a lot for fitness is all
jimexde writing a paragraph on how i should die rn
if i decided to start something like a math club "which already exists" id be accepted without a second thought
mind you, we would have to travel internationally for competitions
For me I read a book on software architecture started looking into SOLID then each func i wrote i'd go does this follow SRP, OCP, LSP, ISP and DIP. Then naturally i just implanted it into my brain where it's like i'd rush writing a func then know "this violates SOLID time to refactor"
Can anyone help me with coding my football game ?
nuh uh
Its not their job to foster your personal creativity with roblox
what's solid
some design principle that applies to general programming?
principles which if you follow you have clean code
i learned to code from yt, stress and correcting the code AI gave me
yea it can vary from language to language though
mainly OOP langs but can apply to other langs too
does anyone know why my datastore works inside of the actual roblox game but not in studio?
i did not propose such a claim
with needed assets preferably lying near the scripts that need them
ignorance is an easy thing to pull off...
can you give me a quick challenge ?
syntax clean code, general clean code, eg in python there's 50 ways to do one thing but only one "correct" or better way of doing it. Then general principles in terms of this func does alot of things should ideally be split out
yea
create a parkour system from scratch. It should involve wall climbing, ledge jumping and wall running
quick? no all my ideas are long term
use editable images and raycasts to make a real-time raycaster
it would take too much time
i gtg soon
i never made it before
so it would take me some time
thats why u should (to learn)
unless you explain
ok i got one more
create a system where you can place blocks in a grid format
4x4 as an example
code something which implements topological sorting of a directed acyclic graph
clients should be able to see their ghost blocks
terms im unfamiliar with
Would have to google that
shoot, what's your strong suit?
ill save this for later
and then?
good question. I haven't though about this
you know, after his idea here, im considering creating a PlayerManager that handles instances of a constructor-based player class that wraps the player instance
i feel like that way i could get cool flexible features
they send a remote event to the server containing the CFrame where the server checks if its valid
when they click
easy
im very bad at explaining
hm
i feel like reimagining the Character class
no worries
I know damn well i'd learn at least one thing
are there any current plugins or libs which adds extra features/functionality to roblox scripting?
in what regards?
do you mean to roblox instances?
i wouldnt say so
literally everything, so if you're creating a new game it would be easier/quicker to write the code using the plugin/lib
there's ClassPlusPlus which is a lib that creates c++ type of classes with constructors and destructors
yo how many years of experience do you have
u do have autoComplete libraries
Would it be cool if there was a plugin for Class++ that creates preset boilerplate class when typing out some keyword? (similar to how VSCode does it with C++). Maybe something like typing out βcppclassβ or just βclassβ. There is a plugin that autofills services by typing the keywords, you could take a look at that π
it really depends
like u can type :R and it auto completes to RepStorage
in total maybe like 7 years but
more thinking in terms of the things you're coding including that in a lib
i only got really serious like exponentially closer to now
I have the same response... like do u mean active scripting or overall?
@last jolt
fflag is ur guy
does anyone know why setasync works for me inside of the actual roblox game but not in studio?
not even, i hate using bloated dependencies lol
i program everything i use
atleast in roblox
send it in dms
more thinking of something similar to this
devforum.roblox.com/t/simulator-generator-plugin/2766801
should i start learning oop or wait a bit
same.
Though I have started using ProfileStore. I find it to be quite useful
what is this? an accelerated slop generator?
lmao
Yea ill see, ill probably end up making my own module for datastores but theyre lowkey scary
pretty much, not thinking something exactly like this, more like an add feature method so you can just choose which features you want to create eg pet system you'd use the built in pet system and have the possibility of customizing it fully
to me this looks like a plugin that just pastes a template file of a simulator
You're the typa programmer i like to speak with. Someone with applicable intelligence and a large lexicon
ah
im not sure, the idea of using other people's code that i've no idea what it does or how it runs icks me
before profilestore i kept it simple. I did the basics like onJoin, OnLeave, BindToClose and the typical data to save
profilestore is so good
now i just add a new table or value to a list and enjoy
i mean when i was 12 years old i made datasaving with fallbacks and sessionlocking so i dont think it's insanely hard to make one
but i think
profilestore is one of the more acceptable modules to use
true, but i was more thinking of just create/use it yourself to create games so it's much quicker and saves time. Any duplicated logic/features you're implementing just put it in the lib and save time
like for me i would have too huge an issue with using it
rileybytes
he made such a good tutorial on it
ohhhh, do you mean your own one??
ofc it was made to superseed an existing module
how can i be different
There's a very useful studio features called PackageLinks which syncs packages across games
create ur own custom plugin like i did
yup exactly, im building one similar in python but for web applications so i can mass produce SaaS applications lol, just wondering if it would be possible or even worth it for roblox
i dont use it
lil guy
read the messages dimwit
is there a scripter here whos bored and down to make a game?
you could definitely make a plugin for it, but im not sure one exists lol
that's a cool idea though
matter of fact you could probably use the asset manager
i think most ppl prefer to use free version of anything than pay even if it would save time
i see
Type shit egomaniacs say when someone disagrees with them:
but i feel where you're coming from, things to accelerate development time
yup, had this idea for awhile tried for minecraft plugins got half way, now attempting for general web applications, maybe roblox next π
day 1 of learning lua
-i learned variables and strings
-some functions
-some math with *, -, +
still a lot to learn but hope i could make a rudimentary game soon π π
egolords when you slightly shatter their ego
i recommend writing agnostic systems that are reusable across games
.
let them be idk what they're getting at
then use PackageLinks or just import it from other games
what about?
omg accident
you seem like you'd be a sick roblox dev
i dont think its the right channel but not sure
people make a lot of money here you know
not really a thing a dev would want to sell to other devs just a general plugin/lib to help yourself produce games quicker
lets forget this happened. Its not that deep
does anyone know why setasync works for me inside of the actual roblox game but not in studio?
alr i see
i think i miss understood idea
enable studio datastoreservice access
in experience settings
dm me an i might help
would be interesting coming from a c#/python background π lua is just a weird monster for me it doesn't make sense for me compared to other langs
i actually love luau more than anything
some parts do, just other parts are weird
it's amazing
i was coding in c++ before learning luau and it was weird as hell
i used to write a good but of cpp for making game cheats lol
had a huge reverse engineering phase
i had worst time when at uni my teacher asked me to rewrite part of my code in c++ and my brain just keep thinking in lua syntax
i have and it aint working this shit pissing me offπ

this is enabled?
retrocycles?
no errors or anything and it gets the players data just doesnt save it for some reason but it does in game
what
a game on steam
guys
if thats what its called
do what fflag said
no clue why then
Ui reminds me of it
i just looked it up thats kind of a godo thing?
yuh
with no code or any errors it would be probably hard to tell
wait nvm i fixed it
idrk what im going for i just wanted it to be simple
yeah its really weird
u mean Godot? What's godo
good π
i mean its nothing wrong with the code its just the setasync that doesnt work
dm
yeah if thats the RETRO style ur going for. Giving me old video game style and I like it
Its not for everyone though
ph sorry
i saw a warning that the datastore was getting too many requests but its not giving that error rn so idk
and no its not "Roblox" retro
im making it for fun and for myself that doesn't matter
ayo
i remember those days
getting those warnings
its rate limited so if it goes over the threshold then it will just not save
wym u remember those days
don't you get it anymore??
ik but its weird cause i only have it saving every minute and after you leave
nah "ProfileStore"
I migrated to it
exel
i shouldnt tho and i usually dont so im confused cause im saving every minute, on bindtoclose and playerremoving
who knows maybe the script thats saving EVERY MINUTE got its func duplicated somehow
haven't touched vanilla datastores in a
i wonder if people actually code in their own language
ur living the dream
i mean yeah
like a Chinese person using Mandarin
wouldn't you?
good question
oh people with different alphabets probably not
but if im say polish
id probably give all my variables and functions polish names
yeh
you still have to obey syntax though
what do you guys think of module containers? like a module that holds all other modules and call you have to do is Container:Get(moduleName)?
better practice than require paths?
i made something like that before
is it just a retro slop game
require("@game/ReplicatedStorage/Source/Shared/Utils") compared to Container:Get("Utils")
whys it so small π
fixes the issue of reparenting the location of utils breaking everything
i don't really play this type of game im probably not the best to feedback on it
hyx what do you think?
wdym
i normally organise mine like this
yo Hyx
so pretty much all the code is in the modules
can u like hop on a call and share ur screen?
and then i just run it with functions
is this a sab gag hybrid?
no need to talk
yeah im going to sleep soon tho
mine looks like this so require paths could get messy
thats what she never said
i had like a trillion errors i had to fix after moving utils one time lol
π
nah its a tycoon typa game. Im guessing the stud?
yeah its the studs
aight Hyx
yeah that and like the fence and floor
oh i was doing it in dms lmao
wouldn't there be no intellisense then
that's what im worried about but
studio intellisense is already so buggy for me
doesnt show up 90% of the time lol
@wheat drift did u send it
guys I have a question, im a multi-developer (I make websites and code in py,html,js,react, css and luau), does anyone know where I could market my services thatβs outside of roblox
pretty sure ive seen people advertise other stuff here
my mentor said use vss when it starts to get confusing
what's vss?
^
yuh but it didnt work... gimme a sec
how on earth would using vscode help here lol
it helps
not in my situation
Hey does anyone know what this means and how to remove them
im stuck between sacrificing intellisense and having easy loadable modules
i could probably make a seperate modulescript that holds the type of all modulescripts
just get an autocomplete plugin if you're too lazy to require them yourself
@wheat drift aside from this other feedback id give is it took me a while to figure out i got money from walking in the batteries, and you definetly need an option between the 100 and 5k offers, or if there is one make it permanent between rotations otherwise this progression i scuffed
the progression isnt finished
DataStore:SetAsync("Whatever ur datastore key is", userId, nil)
im pretty sure it's that
dont remember exact SetAsync arguments
Does anyone have any fun luau projects to make (im trying to apply for a developer)
how do you apply to be a developer
and what perks does it have lol
You get to post urself for hire on the scripter channel
ah
put it in the command bar right
game:GetService("DataStoreService"):GetDataStore("Your datastore name"):SetAsync(userId, nil)
yes
command bar
just make sure to input your correct datastore name
alright
thank you
i havenβt touched either of those games in YEARS so I have no idea what the data store is
at the top select Window -> Script -> Find In Place
alright
it takes you like 30 seconds lol
i know but iβm lazy and i donβt wanna get out of bed
do you know how long i have
until like i get into legal trouble
cause they sent that thing yesterday
id assume a few days, and it's very unlikely you will get into legal trouble
ok
roblox just sends you the message so that they dont have any legal liability
so if i ignore it nothing happens
the chance of that user actually finding out you have data on them and them sueing you is zero
yea lol
i did
that show is great
i was about to watch kakeguri
a huge step up from the average roblox dev
make a better tutorial
non existent
should've said that in the feedback port instead of saying "Im confused" π π
go ahead and do it so i can note
i didnt do that lol
also progression just feels too slow
frrr
you kind of just have to spam buy the cheapest one and then wait forever
i just feel like that would kill retention
yeah and thats why its so bad
and imo stacking items in ibv would be nice too
stacking inv items?
like ig you have 10 same type wind mills it shows as one
in inventory
bruh can say blue platform on roblox XD
and i think steeling should be paid option
dead ahh?
its not as powerful as u think
u only steal their max cash for the battery
i know but it might be more anoying for owner of plot
for example if you get grinded by 2-3ppl you cant make casg
ok
if you implement more stuff or fully realese game i woud love if you let me know
drop the friend request and a reminder and ill let u know
what the fuck is that banner
do you by any chance play hypixel skyblock
if not thats a legendary name pull
Hi, im a experienced web developer, a intermediate lua scripter, i do website commissions so if you guys are interested please send me a dm to see my portfolio, thank you.
hi , if i wanna make a moving platform on which the player sticks to , do i have to use alignposition for everyframe of the movement as to make the player follow the parts position frame by frame if he is touching the part ?
I need URGENT HELP with a simple script ASAP
Okay so basically i want a dev product which when u buy it, the player teleports to coordinates. And you can like buy it multiple times
'teleport to end' kind of thing
you can listen to the https://create.roblox.com/docs/reference/engine/classes/MarketplaceService#PromptProductPurchaseFinished event to check when someone purchases a dev product, and in the callback set their position to where you want them to go
make sure to check the id of the product that was purchased if you have multiple dev products
not anymore but i am who you think i am
shiny pokemon typeshit
can anyone sned a client side plrStateManager
cuz i been duplicating the one i have on server side and i feel like there is a better way
is it smart to have 2 plrStateManagers on client side? one that dont change its from server and another for client communication with itself so its faster to see if an attack is valid or not
Alvin blox scripter spotted
there is no such thing as too many remote events π₯
how do i fully remove a plugin from roblox studio
i tried to uninstall this one plugin and it still shows up with a random button that when i press it attempts to crash my studio
Alt + F4 while the plugin is open
cornball
btw not relevant in anyway if i do look closely at ur pfp it looks like a basketball
dont*
yeah i js realized
im making a CLI tool that lets you run roblox studio test sessions with command line input and shows logs
if anyone wants early access ill be glad to show ill release in a few days
ppl are fighting in dev-discussing for some reason lol
who wants to help me code for free fr
already exists
Ok lol
I need suggestions in what to showcase for my portfolio as of right now I made a data manager and currently a build system, and next something related with webhook and soon an anti cheat.
What did you all submit for your scripter apps? I want a better understand of what they're looking for
when in doubt install a better version
npm uninstall sqlite3
npm install better-sqlite3
how many tutorial a day is good to not over do it? i normally watch the tutorial then try to use it without looking back and if i get really stuck i use doc or chatgpt
It depends
the biggest thing is, are you NOT hating yourself?
cuz you won't enjoy a lot of this but if you're not miserable then ur probably good to go
However, you don't want to get burnt out, so i'd say like 90 minutes of tutorial
i leaned how to code by fighting with chatgpt like a maniac
nope loving it, but its the chatgpt part i dont wanna be stuck there sitting but dont wanna also use it i get most my code right the first time and i just dont recreate the video i acutally go more advanced
also thank you for replying
I'd reccomend using an IDE with rojo, VScode is pretty much the industry standard
it gives you a lot more leeway with what you can do with code
you get better resources, organization, and actual helpful AI that isn't gen
and i am realizing now i'd be a really good AI salesman
but its like i watch the tut then i will try to make something using it and if its good or close enough id just go to a new tutorial but i dont wanna gas it but i also will spend the hours to learn if i need to just want to know
thank you
like alot alot man
i wont forget this
i can't lie i never really watched tutorials so i can't help ya there XD
what do you do to gain knowledge on it ? the doc
i didnt see your message to now? and are you like good enough to make any system you can think of?
i dont wanna become a chatgpt dev i only ask it for help or why isnt my code not working once i get better because ims till learning immma 100 percent not use it unless i 100 percent need it
u should embrace it honestly. ai is a great tool when used correctly, u should look at some videos to see how you can learn with it
ai is great for learning because it doesnt judge u, and lets u make questions whenever u want
look at roblox coding videos (the fun ones not the large videos explaining how to copy what the guy is writing step by step)
and youll understand the logic much faster
if u can send it itll be nice, i researched a lot before starting the project. its easy to connect like rojo and u can do stuff like > start through command line and pass extra arguments, timeouts, etc. so u dont have to go back and forth to roblox
meh, sometimes not
no youre just spreading common sense
should i keep the material as forcefield?
Anyone need any models made trying to expand my portifolio (free)
Learn how to read docs, read roblox docs on luau create.roblox.com/docs/luau you'll learn more than a tutorial
AI can be good, the only issue is you'll start to rely on AI which is a bad thing due to not being able to go past intermediate stage. The only "true" way to learn coding without relying on AI is spend time coding. I've now got to the point I've memorised every single different error in python and how to fix it, every single implementation for a task, etc
it has to be more transperent
Are you doing commissions?
Ye
DMs
What kind of models?
DMs
can i get a script for a wall that only makes real players be able to walk through and npcs cant ?
bro
that's so ez
but im busy sorry
i made it but can u help me with any other problems i have in future?
what should i add for this system?
what would you guys recommend for someone who wants to get into scripting
where to start etc etc
ok
dms please :)
roblox docs learn on your own
ive tried that before but im not the best when it comes to analyzing and remembering what i read
are there any videos that might help
using networking library is overkill for signals, right? Or should i find something for signals which limits network bandwidth?
make the person ur hitting have an animation of getting hit
90% of this generation cant self teach themselves
actually prolly more like 99.999%
Start trying to code something if you're stuck use online sources (like the roblox docs) to help you. If you don't understand the docs learn the basics of programming in any language.
over half the world cant read

reading is better than watching tutorials
obviously, but some people are visual learners
ye
hi jim
Visual learners don't really merge well with coding. I've known a couple of my friends to be visual learners in my college class they never learnt how to code im pretty sure they still don't know now.
Hi
college is useless and a waste of money anyways. you learn nothing from college, you have a WAY better chance of learning more from a indian youtuber for 5 minutes than you would do in collage for 4+ years π π
I'm referring to UK college, what you're thinking of is called uni in the UK. Tbh the YouTube tutorial trap is real, I fell into it when I wanted to start learning how to code. The only way I learnt how to code was pick a project if I didn't know how to do x and y google. Then slowly built up enough knowledge to never use Google again. YouTube tutorials don't get you anywhere if you're just watching tutorials
Also, if you're brain just doesn't work in a logical way eg you're more creative than a stem type of person learning how to code will be 100x more difficult maybe even impossible
hru
fair point.
College isn't about "information", you can do that on your own obviously
The degree is just credential
And on top of that it helps with networking
And how disciplined is your average person to self learn?
theres alot of people who get hired without a degree, like Tesla,Google etc if you show them your experience. heck they would hire you over a college graduate. quite literally graduates dont even know what a json file is as a Web Developer.
don't all the top colleges in the usa force you into student loans
what does that have to do with anything π
99% of people they hire have a degree. If your goal is to work for them, then the degree is of great use
Your point was you can watch videos on YouTube to learn (which is far from true, you only learn from experience). The average person is too undisciplined and lazy to do that
Agreed, it's a mix and match of bad and good. It's good in the fact if you have good knowledge and you haven't got a degree they'll see potential but also bad since applying online means they'll just chuck your application away and won't even read it since you don't have a degree
π₯
Did i say you cannot? My point was statistically most people they hire have a degree
I've got hired without a degree so has many people I work with. Majority of the people I work with have got a degree and say it wasn't worth it
π i didnt explicitly say that. i said some people are visual learners
You work with faang?
No
these no profiles discord people got so much aura π yall must be elite programmers. pls talk more im learning alot
hello, would a combat system at some point send more data than a signal about hitting or using something?
even if they would send more data, a networking library would give more overhead to process it than time(latency) and bandwith saved on packing bytes, right?
i had a stroke reading that
π π
hi
where, did i word something wrong?
I dont think overhead processes can yield stuff unless it's so heavy that the server cpu does yield β οΈ
nah its just the way you phrased the question
Elite programmers is a overstatement, we can't even build software without having duplicate records in the database
ok so im trying to make a simple combat system, as right now js sword abilites maybe later and that looks like 2 or 3 signals or 1 super small structured packet and i planed aybe to use networking lib to save some network bandwidth but idk if that will make things slower instead
just slight overhead which is not noticeable if you're pushing it ofcourse
when ppl use networking libs like blink(could get the name wrong) etc they have KB sized structs sent frequently over the network, or is the 'limit' for it to be worth it smaller?
So I have like a npc handler which spawns in a npc once they die and it positions them etc. Why does it like bomb the server fps for like a millisecond once they respawn?
not really repsawn but they get cloned and parented
how do you guys recommend storing types? spread across different modulescripts that use them or a more centralized approach?
hello jimexde
how many times is the respawn fired..?
wdym
if you're talking about heartbeat, it runs ~60 times per second regardless of framerate
bro
Chat Filter violation
You are receiving this because your message was deleted for containing a blacklisted word or phrase.
what word?
not exactly how it should be designed, just giving example of how it should prob not be handled
ok ill resend if it lets me
how many times is the respawn fired, like does it try to handle it one time or like in something like
local hb = game:GetService("RunService").Heartbeat.Stepped:Connect(function()
... -- get npcs or sumthing
for _, npc in npcs do
if (npc.health == 0) then -- busy waiting, other examples migh fire the even multiple times in pararell
NpcSystem:Spawn(npc.Name)
npc:Delete()
end
end
end)
literally read the message above dude
Hi
ty
I tried npc pooling but even when I kill the npcs it like drops frames
so something is happening when they die
which just kills the servers fps
its weird
is it just impossible for npcs to count 3 stud obstacles as a path
the bot is useful bc without it ppl would spam job applications but the frequency the bot send these messages is too high
@steep knoll hm I think the issue is spawning like 40+ npcs on the server
and with the death thing, the server is still like
idk
it only tanks on the first like 1-2 kills
after that its smooth
what happen
I'm making a game where npcs spawn on the map when the game starts, once they die it just does npc pooling
but when you kill a npc when you first join, the server fps goes to like 0 fps for a millisecond
that's why i were asking about the rate the event is fired, rolox scripts tend to run in pararell so if npc dies, it could be catched multiple times
why is it just impossible for them to path 3 stud walls
so its added to like the queue and the server cant manage it so freezes the server's fps?
do I just add a task.wait() and it should be fixed
lemme send a snippet
roblox scripts run in parallel
i eman, if you have lots of local scripts and server scripts then yes
outside of actors, only 1 local script and 1 server script runs at any given time
what he said
@steep knoll yo
local lastMovedTimes = {}
while true do
local NPCFolder = game.Workspace.NPCS:GetChildren()
for _, npc in ipairs(NPCFolder) do
if npc:FindFirstChild("Humanoid") and npc:FindFirstChild("HumanoidRootPart") then
local lastMoved = lastMovedTimes[npc] or 0
local now = tick()
if now - lastMoved > 2 then
lastMovedTimes[npc] = now
local xoff = math.random(5, 10) * (math.random() > 0.5 and 1 or -1)
local zoff = math.random(5, 10) * (math.random() > 0.5 and 1 or -1)
local newPos = npc.HumanoidRootPart.Position + Vector3.new(xoff, 0, zoff)
npc.Humanoid.WalkSpeed = 8
npc.Humanoid:MoveTo(newPos)
end
end
end
task.wait(math.random(0.1, 1.5))
end
like how bad is this performance wise
with like 30 ish npcs all on the server
why are we using ipairs
does ipairs really matter?
I changed it back to pairs
but I dont think that would do much performance wise
Genuinely feel like I hit a wall in scripting, I have made stuff for my port but I literally canβt clip the stuff because my laptop has shitty specs, feels like I learnt everything for nothing
if you are on windows then use xbox game bar recording its pretty optimized
and put roblox studio quality on 01
or just publish the projects and showcase on roblox
I just use snipping tool to record and upload on youtube
i read that and was like wtf lmao
but didnt say anything
hello people, I got some questions about Pathfinding
if anyone has experince with pathfinding
Is it necessary to use module loaders
no, why do you think that
does your npc use some custom humanoid
it's not me that has npc system
oh wait
i know the problem
so basically
no actually i might say smth stupid
i think it's mostly how you check if someone dies
i think something is repeating a lot of times in the code
i just understood what you tried to say
i'm so dumb
can you maybe show the code
guys how to add animation into a avatarclone created only by scipt?
looking for investers dm made 1.5m last project
ion think so but just make some custom buttons ngl
or atleast a custom system
are brawldev tutorials good tutorials to start scripting?
hello guys
im here trying to connect my gk tools
how can i do that or is anyone her tohelp me in dms
or something
anyone know why an animation track wouldnt load the first time it's played, but then it's fine after that?
is that a common issue?
it just makes my entire rig go into the default position (every limb at 0,0,0)
just had to use ContentProvider:PreloadAsync()
Hi guys, does anyone want to support my 1st game by buying a 39 robux gamepass
is it good
idk, I made it in 3 weeks
It's a coin collector sim
made it so i can learn and earn
yo
whats the gamepass for
+50 pet storage π
I'm proud of the game, I'm just sad that I worked hard amd it flopped
is there anyone who wants to support me?
when you say support, what do you mean
like buy the gamepass
when wiki asks me to support them, the money goes to supporting wiki
sorry about the situation
if i buy a gamepass from you, is 0.2 cents going to keep you going?
just try again dude
so nah?
k sorry
social media always exists
keep trying then
if the videos good itll take off eventually
even with luck a shitpost goes viral most of the time (something that doesn't take effort) so as long as something is entertaining itll work
yo how do i set the camera pos without it ruberbanding back
can someone help me i tried taking a animation off the toolbox and it isnt playing
show the output twin
how do i start scripting?
Simple: start scripting.
Learn from the documentations.
how does that help?
every time i watch someone they just say the code not explain it
It helps you learn how to code. I would begin with the fundamentals (variables, if/then, tables, etc.) if I were you.
which leads to me being confused
Start with the documentation forums or watch tutorials that teach you how to code and not what to code.
Example:
https://youtube.com/playlist?list=PLfAg6nOoAuSm3IFHTbLfknrEDnRoSxCwW&si=4R_5kfjy2J2Auc6J
bet i will check it out
thx
just think of something kind of simple that sounds fun to make, and try to make it
you will naturally overcome problems and learn
dang k
why dang?
because there's no magic sauce to make you good instantly?
not what i meant
what i meant is i never used to just try
i just learn and do nothing thats why i said dang
ye its my bad habit
it's like anything, you have to do the thing to get better at the thing
of wanting to learn everything but never learn anything
ye
way to break it is to learn
"having trouble learning? just learn"
but there is no motiv and no one to talk to about it
what helped me start was just make it easier whatever you want to learn is most likely too difficult that's why you're not attempting it
i do get frustrated and stop when i find it hard
I found starting with python helped me, tried learning c++ at the start then just randomly read the python crash course book which helped
hello is this modeling
no
yo
whats the difference betwenn them?
task.wait has higher precision
Accuracy
so its just faster runtime then?
Pretty much.
no, wait might be a few milisecond off but task.wait is always exactly watiing right time
ty
yeah to be more precies one runs at 30 hz one runs at 60 hz so always use task.wait() its more accurate and overall better
yeah
but if your coding like a machine gun you could use wait
cuz its more efficient
dm me if u can help me script asap with payment
like urgent
i need help with an script
local _ = {}
_.__index = _
function _.__()
return setmetatable({}, _)
end
_["_"] = function(self)
print(self)
end
return _```
peak obfuscation
wait() is also deprecated in favor of task.wait() im pretty sure
hold on lemme double check I'm not making stuff up
ok ya it is deprecated
yo i applied for lua scripter role, now i just wait for it to be approved?
Yes
?
Ass
Serious lack of variable usage and consistency
Some minor redundancy
make a variable for Values
also check for when the player is dazed on the server and use a remote event to display it to the client
thanks π
- Instead of game.Players use game:GetService("Players") also do this for getting replicated storage, server storage, basically any main widget in the workspace
- script.Parent.Parent also feels a bit icky.
oops I forgot to write more than one bullet point
It'll autofill to give you a list of options
yeah i misread your comment
I'd recommend just going through the list and making note of stuff you might want to use in the future
Also I believe you should use attributes over values
like always
except for maybe object value
how can u detect executors n script injection etc for anti cheat
--| Services |--
local Players = game:GetService( "Players" )
local Lighting = game:GetService( "Lighting" )
local TweenService = game:GetService( "TweenService" )
--| Variables |--
local Player = Players.LocalPlayer
-- I'd recommend changing this to an attribute
local ChangeThis = script.Parent.Parent.Values.Daze
--| Constants |--
-- 0 doesn't really tell me much about what the intended number is.
-- By giving it a constant it's clearer to me in the future or other devs that this is what I meant/.
local BLUR_SIZE_ORIGINAL = 0
-- the : is for the type of the parameter.
-- Adding it just makes it clearer on what each value actually is.
-- Also the linter (The thing that checks the code for errors and stuff) will know what you want
local function DazePlayer( Player : Player, Strength : number, Duration : number )
local Blur = Instance.new( "BlurEffect" )
Blur.Size = BLUR_SIZE_ORIGINAL
Blur.Parent = Lighting
-- I like to order stuff with a bunch or parameters like this because it makes it easier to edit
local tween1 = TweenService:Create(
Blur,
TweenInfo.new( 0.5 ),
{ Size = Strength } )
local tween2 = TweenService:Create(
Blur,
TweenInfo.new( 0.5 ),
{ Size = 0 } )
-- You'd prob want to do this in a coroutine or something
tween1:Play()
task.wait( Duration )
tween2:Play()
tween2.Completed:Wait()
Blur:Destroy()
ChangeThis.Value = false
end
function onDazed()
-- This is a guard statement. It avoids nesting which makes your code a bit easier to read
if not ChangeThis.Value then
return
end
DazePlayer( Player,25,3 )
end
ChangeThis:GetPropertyChangedSignal( "Value" ):Connect( onDazed )
i need feedback on big thing if anyone could dm cuz i cant upload images please
im so cooked man π
Why we use :GetService() instead game.Players for example
imo, it looks cooler, thats why I use it
oly...h
π Just a reminder to read our rules and use the marketplace to hire!
-# Hiring or looking for work in our channels classifies as misuse and will result in moderation.
what is ts doing bro π
could anyone explain why the suspension is doing this?
i cant send script cus shitty bot wont let me
Learning to code with Roblox's new awesome AI tool! Wow this is so cool!
Is it a good idea to make a module that reference all ur UI inside, so it is easier to access the UI?
There's nothing wrong with that
I would break UI into components though
That way you're not trying to step through a hard-built hierarchy
Im still confused
just make a function that finds and returns the ui
donβt need to reference every ui
basically return {UI} right?
Yes
you pass in frame name
It looks for that frame and returns the frame instance
youβll get all its properties and descendants
Bc the Swedish version is not even sent to the group
Thx
Guys print hello world isnt working
Too advanced bro π€¦ββοΈ
π€―
yucky
lol
why aint ik controls workin
cuz they r shit and never properly work because roblox is shit
it was cus there wasnt an animator
dip dip dip
i have a question for u scripters
Hi im a dumb scripter
3
ty
who made this tin can
print("Hello, World!")
// READ THIS:
Before asking a question on the Internet, knowing how to effectively ask a question will help both you and the person being asked. Something as simple as asking a question might seem trivial, but a lot of people do it wrong.
Please don't do it wrong. It gets tedious.
To summarize a few important articles:
http://xyproblem.info
The XY Problem is a very common problem among newer programmers. It stems from the Dunning-Kruger effect and the overconfidence of newer programmers.
Always include the original problem in your question, as well as your proposed solution. Chances are, yours mightn't work, which will waste both yours and everyone else's time if nobody knows what your actual problem is.
https://stackoverflow.com/help/how-to-ask
β’ Summarize your topic like you're talking to a busy college student.
β’ Do your research, because your question might've been asked before.
β’ Take your time asking. Take time to word your question so it's easily understood. Don't fragment your question into multiple messages, take your time writing it.
β’ Always include relevant info, like errors or a code sample. Do some basic print() debugging to find problematic code, so we don't have to stare at a 200-liner.
http://www.nohello.com
When asking a question, ask the question! Don't just say "Hello!" and wait for a response, simply ask the question instead. You may think it's impolite to do otherwise, but the recipient just wants you to ask the question. This is the Internet, after all.
https://dontasktoask.com
Don't "ask to ask" a question. Asking "Can I ask you a question?" is a huge time-waster. Just ask the question and you'll get a response much sooner.
its beautiful π₯Ή
what was your question
Lmao ion got 1
hello guys, is this kind of script ok.
Pretty new to trying make mid script..
what r u even trying to make
Part spin
yea this seems fine
Hi guys
too many comments. your code should be self-documenting. i would separate the different sections that you commented within Attack() into their own functions
Not always possible for your code to be self-documenting there are some cases where this is impossible
Aight bro
maybe the actual logic within the function might not be self-documenting. that's why abstraction exist so you know what the logic does at the very least
i love purring
same
Freaks
not freaks
You disgust me
just making more work for no reason
yo can anyone get me this https://youtube.com/shorts/gLm-OO6AreY?si=-zFyyQdCUJnKt-0y
Join the discord to get this system for free!
https://discord.gg/jDdCnx58EJ
Watch the original video here:
https://www.youtube.com/watch?v=SrIi7waKE_g
Open Source Advanced Movement Kit/System, With crouching, sliding, sprinting & more!
ill pay just for getting me this free system
i need the animations to work as well
not really. if you're going to document each part of your code with comments, it's more practical to have functions that already describe the logic that it holds
if you are writing an entire function for a block of code you arent using more than once, you are doing too much
now you could just remove the comments and have that one function describe what all those parts do together
agree to disagree on this one π
while the core function of functions is to have repeatable code blocks, there is also a readability part to them. if you have your logic all scattered around without putting them in functions (even though it might work great), it could be hard to then come back to that code after a while and figure out what each part does. it's more for the developer's experience in that aspect (especially if you're in a team)
worm
Slideshow
i used snipit record its not the greatest
BONGO NO
THERE A FULL IMAGE OF THAT??
No
my ears
Hello
ello
custom render? or just frames
epic
