#code-discussion
1 messages Β· Page 276 of 1
oh lol it does owrk
not for me tho
idk why where did you put it
what folder
put it in startergui or startercharacter
guess what I DID THAT
works for me ig
this shit bro
send me your code
i copy and pasted yours lol
bro
doesn't work in starterplayer for me though
when i swapped it did, pretty sure it kept setting it before the character loaded so then my camera set onto my character
lemme try playeradded
doesnt change anything
playeradded on a local script isn't going to count for you
put this game.Players.LocalPlayer.CharacterAdded:Wait()
before u set the camera stuff
might work
thank you bro
w
What if the player doens't load in 3 seconds
What u gonna do huh
mmmmm
blud
its better not to use taskwaits in this scenarios
FIndFirstChild
I just wanted to test if it is the reason it is not working
@agile shore which method are you going to use
Hell nah
idk blud
it'll fail and you'll be at the same place again
u should wait till player exists,playermodel,humanoid,plaergui
what
@agile shore why are you using task.wait to wait for the player to load π₯
BRO
I JUST WANTED TO TEST IF IT WOULD EVEN WORK
IT IS NOT EVEN A SCRIPT FOR ANYONE I AM JUST EXPERIMENTING
what script is it in
local/server
and where
If you want to know how to properly wait for the player to load I can tell you
game.Players.LocalPlayer.CharacterAdded:Wait()?
well it depends what your script is doing
changing cam pos
is the entire script only running when the character loads
its 2 lines
if you want the script to run when the character loads just put it in character scripts
guys the client spit this out, waht does it mean?
good question I see it too
idk
do any of you know any good hosts to host a bot?
Guys who know how to make gamepass roproxy
/poar
i like using Revivenode
its quite cheap
how do I make the player not move while he is, for example, in a menu
walkspeed = 0
or humanoidrootpart.Anchored = true
thanks
local Tsunamis folder = script.Parent
local minSpeed = 30 -- slowest wave
local maxSpeed = 60 -- fastest wave
local resetZ = -500 -- z-position to reset the wave
local startZ = 500 -- where the wave starts
-- assign a random speed to each wave
local tsunamiSpeeds = {0.5}
for _, wave in pairs(folder:GetChildren()) do
if wave:IsA("Model") and wave.PrimaryPart then
tsunamiSpeeds[wave] = math.random(minSpeed, maxSpeed)
end
end
while true do
for wave, speed in pairs(tsunamiSpeeds) do
if wave.PrimaryPart then
local primary = wave.PrimaryPart
-- move forward in the direction the wave is facing
primary.CFrame = primary.CFrame + primary.CFrame.LookVector * speed * 0.1
-- reset wave if it reaches the end
if primary.Position.Z < resetZ then
local currentPos = primary.Position
wave:SetPrimaryPartCFrame(CFrame.new(currentPos.X, currentPos.Y, startZ))
end
end
end
wait(0.1)
end
who can help
with this
i want all my waves to move 1 by 1
please format it
i think you could make a system to create the waves with some delay, instead of hardcoding it
Are u able to help with that
Any tutorials to get into scripting Iβm new to scripting
There are lots of great tutorials on youtube if you search it up actually, but if you want everything simple you should give brawldev a shot
Okay thank you so much I will definitely note that down
I agree with Nao i learned from brawldev hes the goat
i learned from thedevking
probably because i started scripting before brawldev's tutorials existed lol
its about who you understand better
few months experience π
i am still trash
where i struggle the most is on math
like vector3, CFrame type math
where u like multiply and stuff
Real as fuck
I remember watching his data store tutorial like quite a few times
lmaoo
I really hate roblox built in datastores
they handled the most important part of a game really crappy
why?
i havent gotten to datastores yet
i just use profilestore for the most part lol
Yeah exactly
i used to write them myself but using ps is so much better
Built in datastore service sucks
what makes it bad?
its a wrapper to make saving and getting player data easier
Does roblox's own datastore have a way of checking if a table in data has been altered
UpdateAsync perhaps?
Lemme read it on the docs ill lyk if that's the one im looking for
alr
it essentially lets you modify the table that's in the datastore rather than overwrite it
Nah updateasync just updates the data, I didn't see anything that has a way of letting the server know when a data has been updated
i dont think theres anything directly, but you could use MessagingService to publish a signal whenever you update it i suppose
the data module I'm currently using has something like :getarrayadded or :getInstanceChanged
Which makes binding the data to UI superrrr easy
i see, interesting
why do you need to know when a value change on the data store?
for qonquerors haki should i make it so:
A, you spawn with it being unlockable, or you just spawn with it being unlockable and cant get it
B, make my game perma death and make it so you have to unlock it on one slot to get it on another
C, make it really hard to grind for but ultimately fun, but REALLY hard
D, something else of ur idea
@tacit wagon why are u paying so much lol
do scripters get godly payment that i don't know about or what
@regal salmon i heard i should start with building instead of scripting is it true π€
neither is better to start with than the other
do whichever you find more interesting
im a scripter and i suck butt at building because i never really did it
how long you been scripting
aint no way
cause this is what i can make with scripting and building im just starting its just i want to start making comissions soon
your a software developer?
nah, game developer mostly
and web developer
and i make minecraft mods and plugins
i rarely get paid for it
im only 17 lol
in australia
not even outta high school yet
yup
you must be the richest in your grade bro
scripters making bank
making games takes a while
and i only recently started doing commissions
still barely do it
yeah
obv i wanna make money, but im not gonna make a brainrot game to do it
i dont follow trends when making games, i like to make original high-quality stuff
so it takes longer and more effort
on roblox just one, but its pretty bad lol
lem see
itch?
ohh
A FANMADE sequel to the unique horror game "DOORS" involving... more doors.
ββ HEAVILY RECOMMENDED to play without any help or guide, as the game is trial and error. Use each death as a lesson.
β οΈ Epilepsy, sound, and flashing lights warning
π§ Headphones recommended
π· Max graphics recommended
π¨This game is FANMADE!
β€οΈ Joi...
idk if its my graphics but
i got a wayyy better game in development rn
ts really good icl
thanks lol
neither me nor the builder like it anymore tho π
so we're making a new one, we got a team and everything lol
whole team dawg
i'm not sure
Is anyone here a roblox studio dev
yeah everyone bro
well i count it as a wholeteam but its 6 people
and 3 of them only do one or two things
that is
Studio lite mb*
your the sole scripter?
most of it is being done by me and the modeler
i do all the backend stuff
modeler does all basically all the frontend
bc he's better at it
Any Scripter rn that can do datastore or do systems, UI is completed but i need some scripting work. [Paying 500-3k]
and one of the other people in the team helps him with it
Doors
so your doing another remake?
ye
datastores π€’
its a reimagining of the other one i sent
so a similar one
why do people hate datastores so much, im not a scripter myself but i wonder why?
naw they're mostly a two-man team
they are?
usually they just bring people in to help out with specific things
i thought they had a whole commandement team
so hard to understand backend
but im pretty sure its mostly two people doing it
datastores to me are super hard to visualize whats going on
so if something messes up it feels like a black box you cant really look inside and be like oh thats where the issue is
maybe im just mentally disabled though
remember when doors had ragdoll universe
the group that owns it
idk if yall remember
but
its been there og
yeah i've played it
why is it hard, isnt it like the frontend?
with front end u can visualize what ur working with
frontend is animations and visual stuff, while the backend is making everything actually work beyond what the player sees
damn
should i put this portfolio or its too low quality work for commisions
it can get pretty complicated on both sides lol
backend scripting is so mysterious
im a backend scripter and frontend is quite difficult for me to get to look good
π€
how much do people charge for backend datastores?
hence why i let other people do it
i am giving up a little on roblox i think im cooked
cause of school?
im legit sitting here irl with my friends working on this game and theyre both watching jynxzi highlights instead of working on the datastore that this dude was supposed to finish 2 weeks ago
i think you still need to improve more, but that doesnt have to stop you from trying
i dont think you could get anything decent paying but you could probably get onto a passion/small-scale rev share project
ye
nah im lowkey just maybe not made for gamedev its actually so hard
polish it up more
it is hard but itβs the mindset to keep going that is most important
the worst kind of person is someone that makes someone feel bad, dumb, or stupid for being excited about something
nah i dont mean to be fatilistic like ima still work on it but i have no expectations its just for fun
you made allllat?!
im studying physics and trying to learn some cybersecurity rn so i think gamedev is just a side thing
so uni?
i dont get how ppl can use visual studio in roblox and not get confused
yes
lucky bro im not going might disagree with me but its a waste of time
hope you have a good experience at uni
think it depends what you do with your time in uni it can definitely be a waste of time
if i were you i would focus on python you can make $80 an hour if your really good
if u have no certs/side projets/other stuff to show off
mhh
yeah but
it pays so much its crazy
i think the language i love the most is c
so fun and cool it feels like ur building everything up yourself and you need to understand how stuff works in order to do things like with luau sometimes i feel like i have no idea how the underlying system works and i just crutch the pre-made class system that roblox offers
no
hi @sly belfry
hi @weak nest
mtn talking to true chad btw
terramog over here
12'1 chad rises from posideon to terramog dcord
hi @inner wren
should i learn python before luau
if you have a reason to learn python first, then yeah, but otherwise its not really necessary
cause i have like barely any coding experience, only a little bit of sql from school π
itll be the same situation whichever you learn
youre not gonna go into python with more experience than if you go into luau first
i just cant find sites or good places to learn lua for free
there's youtube tutorials, documentation, dev forums
learning base lua isnt necessary either
i never learned base lua, just roblox luau
what π
if your 18+ and you do python on BRO python pays 80$/hr +
how did you learn it if you don't mind me asking
i watched TheDevKing's tutorial series pretty often when i needed to recall something, and also used the documentation and devforums to find info
then just made things i wanted to make
claude will replace us all
probably
i've seen claude's code
its scary
Its actually really good, were doomed
doesnt mean you cant still code if you want to lol
i started python at like 10
this is bs advice
you dont work for anyone?
no
python is a pretty in demand skill
i dont remember when i started python but i learned it before luau
only the good scripters remain as they outlevel claude
i learned c# a bit before lua (before luau was a thing)
hey same lol
not to me i missed a lot of school
i started with unity
ooo
dw bro ai is not gonna take more than 10% of jobs
the line between outleveling claude grows smaller everyday
i did c++ for some cool vs projects
thats why python is the only one worth to learn out of everything
but not much in c++ i can work in it though
i tried learning c++ but i couldnt wrap my head around it
so your gonna be a software engineer after hs?
it's not that difficult
mostly because i didnt have any projects to maek to practice it
possibly
and less for a lack of understanding
that or marine core
spotify software team is using claude entirely now in a recent interview
dawg theres NO chance your in grade 9 and you know 4 languages
how early did you start
i made a web browser lol
like 10
i was writing discord bots in python in notepad looking at stack overflow for errors
i didn't even know what an IDE was
how old ar ya now
should i learn python and then do ai scripting commisions not a bad idea π€π€
https://github.com/fijw?tab=repositories u can check out my github
lol up to u mane
i know 6
atleast
16, but birthday is soon
i can easily list the 6 i use the most but im sure there are some others i know that i dont use much
you do comissions ey
you do 6?
ya
meh its kind of logical all languages are pretty similar python is kind of like the core
if you know like 2 languages its a lot easier to learn the rest
yes
i wouldnt call python the core though
its easy for beginners but its a interpreted language, not a compiled one
for beginners?
and most other languages dont share similar syntax to it
like python relies heavily on indentation
which isnt common for other languages
dawg makes $10k a month
here is some of my luau
yeah
the first pic is rly zoomed out so bare with me but it's usages for a reactive state management lib
ts aint even in roblox
it is vs code but luau
some foreign language im looking at
i use rojo
you do luau commisions
or you do other languages
cause i dont really know anyone that does python commisions
i only do luau comms
so your telling me
you know 4 programming languages have a fun high school experience and do commisions
10k a month at 15
no
β
0.7 x the actual value
i have 60k left
and other stupid shit like headless
and i owned a green ice crown for a period of time
i dont use ai
u SOLD that?
ik but im saying im finna do that finesse all the commisions in hidden devs
ββββ
and i added π’
to the gif?
nono like development wise
i do ai commisions, building and python im on day 30/100 rn
python 70 days done and im a professional
and then building im good
if a mod is here
i would never do ai commisions im refering to this as a friend
because everything i say is hypothetical and has neveer occured
none of this has happened
u do building?
wut kinda builds have u made so far
Are u dumb
yes
Ifs ok
its ok
guys who wants to be friends
vfjx we can be friends im rich
im kinda broke lwk
itβs ok
i blew everything i had
be smart and devex
i have a question
lets say i have a dictionary with a key that is an instance
when the instance is destroyed, will all the data attached to that key will be deleted?
or not
it's still cached.
lucky lol
i couldve bought poison horns a long long time ago and bought violet valk instead on my alt
AND worst part is i also couldve bought normal valk
at that time
instead of all of those options i got the damn purple valk
when it first relaxed unlimited?
released
ya it was kinda cool but i was poor
my main is a new acc
I wanted the purple beast mode
did u buy on release?
Couldnβt even afford that
not sure if my alt has it
No I bought it like a month ago
Yeah I used Robux that I wasnβt going to devex either so
yea when it was cold over here it sucked
Where y live?
fair enough, it's pretty expensive tho
NA
I see
corn country parts
lucky
its spring now here
No idea
π€
Iβm stupid af
usa?
Are you American
guaranteeβ
Probably lol
even worse bro
Why
what do you do in malta
lootie what do u do development wise
I mean they're 16 so they are probably there because that's where they were born
Scripting mainly and a bit of everything I guess
Like everyone else whoβs been using studio you basically have knowledge of most stuff
err im on phone but u can play my game
ahh i was more interested in like source snippets
Wait
but all good no worries
I have something somewhere
ooo okay
u guys want a cool library i made
@thin knoll you like my script
did u use ai my boyo
are you sureeeee
here here here here is is my work
not bad then
π₯°
use documentation
hello brochacho's and brolett
what is a private, public and a protected class
in the context of C++ or any C-like programming langauge
and what in situatiions would I need to use them
Private and public classes also exist in Lua
I can feel the aura already \
from me
chilll on the glaze
everyone always be glazing me like
i know i got the best scripts
but you know i be coding all day
to getsuch good scripts like that i got so much aura
its so crazy like everyone when they come near me they feel the aura i emitt
for qonquerors haki should i make it so:
A, you spawn with it being unlockable, or you just spawn with it being un-unlockable and cant get it
B, make my game perma death and make it so you have to unlock it on one slot to get it on another
C, make it really hard to grind for but ultimately fun, but REALLY hard
D, something else of ur idea
anyone knows any good builders scp facility, star wars have a lotta experience?
i think spawning in with it would be cool so then not everyone would have it
One message removed from a suspended account.
a good way of handling states would be through a finite state machine
One message removed from a suspended account.
mhm
One message removed from a suspended account.
its a way of managing state of something
a finite state machine can be one of a finite number of states
so like a state would be idle, walk, or running
One message removed from a suspended account.
i guess its kinda like a framework
One message removed from a suspended account.
mhm
One message removed from a suspended account.
https://youtu.be/LajkP1oHSl8?si=fZF2F1bi2pB0ZcNu
was literally just watching this
Welcome!
In this video, I implemented a Finite State Machine, talked about its use cases, and explained the thought process behind it.
Enjoy!
#roblox #robloxstudio #scripting #tutorial #gamedev #statemachine #lua
One message removed from a suspended account.
mm
One message removed from a suspended account.
abstract model of computation
neither nor a framework or method
This is for the brainless
What type of asset pack like 3d models?
What is OOP, I do understand some of its concept, but still wanna know more
What do you know
dw about it.
It's a way to organize codes, and it helps you manage complex systems
dude..
Type
oop is chopped
i used to like oop but thats dumb
oop shoudlnt be the first thing you try
try without oop then only add oop if its absolutely necessary
so its not a matter of oop or not it depends on if the problem calls for it
also dont listen to other people
they dont know just think for yourself
I've been scripting since 2023
nice bro
nvm
FYI, I wrote the thing just told chatgpt to make it more understandable
Aight so basically OOP (Object-Oriented Programming) is a way of organizing your code so you donβt have to copy-paste the same stuff everywhere. Instead of writing the same logic again and again, you make a blueprint and reuse it. This helps keep your code clean, modular, and easy to change later.
Think of it like this: you create a class, which is basically a template for something. Then you can make a bunch of objects from that template, and they all share the same structure and functions.
For example, imagine you're making a combat system.
In your main script, you handle the overall logic β like starting fights, checking turns, or deciding who attacks.
Then you might have a Character class that defines what every character can do.
So instead of writing separate code for every character, you define things once, like:
- health
- attack damage
- defend function
- take damage function
Then you can create characters like:
- Player
- Enemy
- Boss
They all use the same base code, but each one can have different stats or extra abilities.
So if you later want to change how damage works, you only change it in one place, and it updates for every character automatically. Thatβs the big advantage β less repeated code, cleaner structure, and way easier to maintain.
Basically:
OOP lets you build systems with reusable building blocks instead of messy duplicated code.
And why is it dumb
It's very useful in a lot of scenarios
It's not needed but makes Ur work flow better imo
Especially games that require the same base like weapons, or anything tbh
well
my point is its not that smart to think you either use oop or you dont use oop
and to take sides like that
depends on the situation
Now that's better wording, totally agree on that
and that is with everything in code
ye
i need a code sensei brah
It is SMT important to mention, cause most Devs starting to learn Oop think they need to implement it everywhere
use simplest methods first
If u got bread
oop is ahh for luau
ofc i do
Now we talking π€
lol hi.
Mmhh depends what ur tryna make but yeah, starting off Ur system with simpler methods and then upgrading it is best
Cause then you can be sure in if you need to use a style of coding or not
beginner likes to admire complex things but simpler code is more effective
If i am not wrong OOP doesnt have to use Metatables right? Its just a form of creating a central "hub" for systems in your gaame or am i wrong?
that would work in most cases but its not the same
Yh
Ahh i see'
literally my bio
I think what most beginners overlook when starting to code or improving their code to a somewhat intermediate level is that, they look at advanced programmers' code and say "Oh i should make my code look like this", whereas the advanced programmers usually think about architecture, system design, and aspects like Scalability, Versatility, etc..
The difference between someone who can code and someone who can Build using code is architecture and System design.
until i looked how chopped some of my code is
Its very simple to create a system with "complex" code. Using metatables and such a lot. Sure it can help you understand or "make" something, at scale, it goes nowhere if you dont have architecture in mind
Personally what makes scripters scripters and not just coders is that they can make games that are scalable, versatile, robust and etcetera. So my whole point is that there is power in simplicity. Even though personally i dont use OOP or metatables one can say that my code is relatively scalable and versatile. Split into engine and service modules that handle their own tasks respectively
Absolutely
In some cases, it is highly recommended to use OOP, whereas in some cases it is just redundant
yup
tahts why this server isnt always the best
because people do not know the way
and u can delude urself into having a narrow point of view
but i still got a lot of help when i was a beginner from discord
still can be difficult to define what simple actually is cuz it is not always easy to tell
This server is decent but hard to find good connections
Personally, I like RSC because it has a ranking system and a pro scripting channel
So it is easy to connect with people on your skill level
guys how much is a fair pay for a scripter to make me the lasso tool like in rope battles? same to same 1:1 tool
Well it depends on the experience and skill of the scripter
u can have the same data organization without metatables, it would just be like having only one instance of an actual oop class
well no shit, if ur new u dont know how to implement stuff so ur gonna be thinking about details rather than big picture
Yeah what i said
YO can I code a 200k ccu game with AI?
my "non-production" code is literally spaghetti hell, don't worry
wouldn't we all be doing that then, and besides from AI, you also need the money and fame to push the game out
i remember having a ui local script with 2500 lines,it managed every ui in the game
what you remaking figma from scratch
don't you already have pretty good stats
wdym
you gotta know how to prompt it well,dont prompt "make me a combat game"
for games you worked in
it was long time back when i first learn scripting
true
make me a combat game (don't make mistakes)
π ππ»
Any roblox scripters here, i got a question.
Is it worth it to do roblox scripting? I'm an experienced programmer in general and I major in comp science, so i can easily pick up the basics of it
They do make some money is what I'm interested in, obviously i'm not going to live on it but just something as a side income
too competitive it's not even worth my time?
Hello everyone, I have a question about callback functions and events.
Let's say I have a function which mutates multiple attributes of an object and that I plug this function into a callback event. Is there a risk of collision ? What I mean is that if the callback function is called by multiple sources at the same time, will the callback functions be executed sequentially or are the callback functions executed parallel to each other which would result in accessing to the same variable in the same time which is wrong.
yes I can vouch ofr u
Heck, even a 1m ccu game
Ai is only as strong as the person using it though
fax
Not just side lmfao. Roblox devs make multi millions.
Hazem is sitting on more than 33,000,000#
not that much
the scripting commission market is extremely competitive, you''ll get ghosted 95% of the time. scripting is good to learn if you plan to make your own game or be independent, most commission offers aren't good anyway (they offer fake money called robux and not real money you can spend on gasoline π€ ). as a side hustle, roblox game development is OK, it's not bad but it's usually not good either. roblox scripting is simple, though. it abstracts a lot of stuff, like how arrays, sets, and whatever have been condensed into one data type called tables. so it'll be very easy to learn. you do need to know your way around the algorithm to be efficient, and it's hard to make a game that "works" if you're starting from nothing. still, it's not impossible
if you do want to make minimum wage youd have to gather 5k ccu consistently. 300k robux weekly will get you minimum wage
5k is wayyyyyyy above. my 2k ccu game makes almost usd a day
around 4,000 usd per week, 16,000 per month
but roblox isn't offering the new conversion rate for robux that was earned before that change
name of game
16,000
yeah thats what Im saying, haz3mn has made majority of his money before sept 3 2025 (i assume)
mb i did 4x3
donation games doing good these days or they died down?
"I need x amount of robux for my sister's birthday, she will appreciate this a lot!" * 10
yeah AI is useless if you donβt know how studio works
or some knowledge of coding
how much does dragon training make π
jesus
what about the grow a bean stalk game
idk why Im openly sharing earnings π
all g
damn
seems abstract shitless
this you?
had 200k earlier today lol
christ
most I ever had at a time was about 22k
Anyone ?
if games are making this much I really need to learn how to code
I know how to do everything except code π
you talking about race conditions?
core dumped has a good video on them
Yes exactly
Indeed, very good channel
coding is easy,solving problems arent
basically, this happens from concurrency (when two threads are accessing and mutating the same data)
do everything else first before coding
just remake a game
plan ur project in your own technical terms, break down the problems that you need to solve in your code and do it 1 by 1
I don't know how common this problem is in roblox since race conditions have one in a million occurrences, never had any
the vast vast vast majority of games make less than the average salary for the entire game
Even if im making a bit of money on the side thats enough for me haha
a roblox game is not money on the side if you dont dedicate effort on a regular basis you will fall off quickly
Ok, this is interesting
So, I should not worry about this ?
Oh I know but if the only profit im making is that sort of money, im good with that
Im reallly busy but ive got enough time to put a bit of work into stuff
you wont be making "that sort of money" whatever that is
ngl if uve never made a blue/white script with like 3000 lines of code u aint a real scripter, its a rite of passage
In the end something is better than nothing
race conditions are VERY common on roblox, u dont need to be doing parallel luau for it to happen
no not really
whats a blue white script
in the end if you spend 20hrs a week to make 100 dollars you could have just done overtime at your job instead
scripts that are blue or white
Any advices on how to avoid them ? Where are they common ?
well, from what I remember from the core dumped video
most languages "mutate" strings by going through the "characters" one by one (strings are immutable in lua, btw). so if you change a string every time a worker thread accesses it, the string is being "changed" for some nanoseconds. this wouldn't be a problem if this was single-threaded (no concurrency), but say, there's multiple threads, another thread might be accessing the string (while its being changed) and use that cursed version instead. nanoseconds, again. so these are ULTRA rare, but not impossible. again, this is in the case of most languages I don't really know how lua or luau handles it. there's techniques to lower the effects and chances of race conditions. notice how I said "lower", you CANNOT avoid race conditions if a system has concurrency
i think he means localscript or server scripts fr though
like scripts that rnt modulescripts
ah got it 
roblox is not multithreaded if yku don't use actors
weird way to structure that
lua runs on a single thread all the time by default
the only way to jump between tasks is yielding
this is bs
I mean I did say "in the case of most languages"
the guy wasn't specifically talking about lua
Oh sorry I did not mention it but I was actually talking Lua for Roblox
they are common cuz players can do a lot of stuff u dont expect, and programming on roblox is v event driven so u can have diff event logic overlapping and stuff like that
you said yourself a string can't be mutated which means the string itself is not susceptible to race conditions in the middle of "editing"
because youre never editing the string itself youre just changing what the variable points to
That is good to know !
strings are mutable in C, not in lua. I did clarify that lua strings are immutable
blah blah
wdym? thats their colors in studio
Yeah but its called server script and local script lol
https://www.youtube.com/watch?v=QAzuAn3nFGo
I think you'll find this useful
This video was sponsored by Brilliant.
To try everything Brilliant has to offerβfreeβfor a full 30 days, visit https://brilliant.org/CoreDumped. Youβll also get 20% off an annual premium subscription.
In this video we learn about the Peterson's Solution and why thread synchronization with software-only solutions is not reliable.
Question...
Never heard anyone say blue and white script
you can have a blue script thats a Script
So, using structures like queues and stacks can solve this problem ?
I'll watch it, thanks
its not a bad way of categorizing
Arent blue scripts local scripts
google runcontext
I think you should keep your sensitive data only mutable by one thread, that should practically eliminate any real threat
I swear scripts were white and local scripts were blue
for most cases debouncing or setting flags is enough
fr
Yes, I should avoid having multiple thread mutating the same data. But the important thing for me is to know that Lua is executed in a single thread, someone mentioned this. I was just worried about callback functions as I mentioned because I did not know how Lua handled the logic behind (if it executes them sequentially or in parallel)
and you could restart your game's server if this one in a billion occurrence actually occurs, not that big of a deal. especially if it's something as harmless as vfx
Thanks for the answers everyone
as far as I know, they're sequential all the time. but sometimes interleaved to look concurrent
ai loves to overcode simple problems
yea but u can still get race conditions from multiple sources modifying the same data
oh and I should also tell you that even if you make new threads using task.spawn, they're not actual OS threads. they're handled by the luau VM and still run on a single core. you can't achieve true parallelism without using stuff like task.desynchronise or actors. but still you can get race conditions in your logic from using multiple coroutines (which is what task.spawn and related functions make)
Ok, that is good to know. I should really know what I am doing if I ever use concurrency/parallelism
yeah well the VM is optimised to avoid race conditions, running scripts is usually done on one core. running scripts is actually very cheap compared to stuff like physics and networking which other cores are usually working on. you shouldn't worry about hardware-level race conditions (what core dumped explained), but rather race conditions inside your logic itself that happens from using multiple coroutines
This is why I was talking about stacks and queues before. Because I imagine not treating main game events directly by executing the events as they arrive but more like putting them in a queue, dequeuing and executing, dequeuing and executing etc... I think it should prevent me from doing any race condition myself in my scripts
Maybe it is not an optimal solution though
i wouldnt say running scripts is "very cheap", u will get punished quickly for inefficient coding
Yes, but I see what he means
task.desynchronize requires Actors, it is not independent
- the order in which events and event handlers are executed is deterministic and controllable by ordering when you bind to them
- https://create.roblox.com/docs/scripting/events/deferred
Ooooh that is useful and good to know
I do not even need to make my own queue at this point
Unrelated and newbie question but is there a coding convention for Roblox's Lua ? (snake_case, camelCase ...)
I think its camelCase but idk
j
How do i make a datastore script?
https://create.roblox.com/docs/cloud-services/data-stores
Click the blue links too
ok
ok ok
yall i just got 19 home recomendation impressions 2 days ago is that good ?
Roblox's scripts tend to use PascalCase most of the time, but devs often use camelCase
Does anyone know why the button wont appear on the radio?
Does your radio model have a primarypart?
I fixed it but the sound wont play off
try to change elseif to else
I set the sound to true now if I join the sound plays I need it so it only does when you turn on the radio
can't you just turn the sound off completely just by disabling it?
just uncheck Enabled in your audio
oh wait
there's no Enabled
Uncheck Playing in your audio and that should be it
π 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.
No
Failed to load sound rbxassetid://120610321516690: Asset is not approved for the requester
Anyone know what to fix?
that means the sound is not usable
creator set premissions to that
nothing oyu can do
So its cause roblox
no, the dude who uploaded that sound
Hi everyone, I am currently planing a game and I am thinking about the data part. The thing is that I always make relational databases, and so I ended up doing the same by creating entities with relationships, keys etc... But the thing is that Roblox storage is literally Lua objects and not tables like SQL. So, do you think it is still relevant to think the data this way for Roblox ? For example, do I have to create a separate inventory object apart from the player and I link them with a foreign key or do I simply put the inventory inside the player object ?
I uploaded it?
oh
How can I fix it
yeah idk man
Just try planing your game better
try it and figure it out
Seems fair
why would you save a player object, do you mean the actual game.Players[player] object
hi guys
-- FOLLOW PLAYER --
local path = PFS:CreatePath({
AgentCanJump = true,
AgentCanClimb = true,
})
local lastpath = nil
local function followPlayer()
if getClosestPlayer() == nil or PlrOnZone[closestPlayer] == nil then return end
local success, result = pcall(function()
lastpath = path:ComputeAsync(HRP.Position, getClosestPlayer().Character.HumanoidRootPart.Position)
end)
if success and path.Status == Enum.PathStatus.Success then
for _, waypoints in pairs(path:GetWaypoints()) do
local debug = Instance.new("Part")
debug.Size = Vector3.new(1,1,1)
debug.Position = waypoints.Position + Vector3.new(0, 3, 0)
debug.Anchored = true
debug.CanCollide = false
debug.Parent = game.Workspace:WaitForChild("Debug")
Humanoid:MoveTo(waypoints.Position)
if waypoints.Action == Enum.PathWaypointAction.Jump then
Humanoid.Jump = true
end
Humanoid.MoveToFinished:Wait()
end
task.delay(0.1, function()
game.Workspace:WaitForChild("Debug"):ClearAllChildren()
end)
lastpath = nil
else
warn("Path failed")
end
end
Yo guys I need some help from u. I want to make the NPC to move towards the player every sec. But the Humanoid.MoveToFinished:Wait() makes the NPC to finish the path and again move towards the player. Can you u guys help me pls. I am litrally burning my head for two days for this
holy overcomplicated
That's why i am here to ask help from u bro. Can u figure this out?
Of course not. The player's informations such as experience, balance etc... But let's take the inventory of the player. I would do an entire table called inventory if I was using a SQL Database. But in the case of Roblox, I could just put the inventory, which is an object, in the player object. I am wandering if, in this example, it would be better to put the inventory directly in the player object or create a separate entry called inventory and link the two with Ids ?
When I talk about an object, I am talking about a Lua object
hello anybody pls help me
What are trying to acheive ?
huh, the pathfinding thingie
And what is the problem with the above script ?
The NPC just waits to complete the path and then countinue to follow the player
So what do the question marks do
Hello there everyone I wanted to ask all you nice scripters how much would a movement system like this cost to script
- Running (directionals)
- Walking (directional)
- Jumping + double
- Dashing (directional) + air (directional)
- Falling Animation
- Idle Animation
- Ground Landing
- climbing
Could be string or nil
ty
30 dollars
Depends on the scripter and the quality of the scripter
The entire thing?
Simple things about 50 dollars
Yes, 30 for entire thing
Personally i would charge atleast 15000 robux
50 bucks seems a bit more realistic
bro im new to vs code why is it not closing my blocks automatically i cant send a pic on this acc
Then u won't be hired by anybody
Its all basic stuff but
Some one said it would cost more than animation
are you the scripter or the one paying
It depends on you and the person whos giving you the Commission
wdym ?
Dont need to be
Paying I'm trying to figure out the cost of it
IDC
Unfortunately, I have not done pathfinding and AI for the moment, I do not think I could be of any help, sorry
And no the script would cost less than the animation, the scripting part will take 2 hours maybe at max
like if i type while true then and click enter it doesnt close it with the "end" automatically i gotta type it
Thx for looking at it.
Check your studio settings
You say it's basic but the last dude I had made it incomparable with my game due to the terrain of it
hi guys
Wait are you giving this to some person or taking this as a Commission and dont know how much to charge?
And how much is that in $
Hi! Are u good in scripting?
57
sry
it is simple, last dude did a bad job
Can i dm u?
No I'm trying to hire some one for it but the last person who scripted it made it incomparable he made it in a way where it works perfectly on even ground but for example air dash right which activated in the air would constantly go off instead of the normal one bc the terrain wasn't even
i dont do comms or work for people
Even not for good pay?
huh. google says lot more than 50 ?!
1K is 3.8 dollars
just calculate it
that's for devexing
massive one liner gally
purchasing would cost a lot more
Yeah iknow
You just got a bad scripter who couldnβt do it right i think.
Some of the tasks you gave are just animations where the person needs to replace the animation id
Things like double jump, ground landing, dashing and air stuff are extremely simple
However, i say keep 30$ as a base and add more if the scripter has more experience and delivers faster product
just make this a variable
I don't thik so. nvm
Wym bro?
Aight thanks
Will do
their post seems more like they were asking how much they should pay to hire, which would mean they would be buying the robux rather than earning it
I am a idiot , don't think about it
And you should invest more into animations here, because animation plays a big role more than scripting in this aspect
then again i could be wrong

Well I spent a 150 on all of them so I'd say it was a fair deal of money for a decent animator
That's great, if you like the scripter then you should definitely pay a bit extra for his works as hes putting in the work and it would make him feel rewarded and would push him to do better
hi
im kinda new to lua and i was wondering how to start learning it and how long it would approximately take to idk be decent
Watch tutorials and practice on your own (practicing is the most important) and after a few days, try to change some texts or values in simulator kits (this is also a good practice)
And how long it takes is definitely up to you
yes but what tutorials there is plenty on yt
Theres someone who i heard of brawlblox or smth
You can watch his basic tutorials or
Alvinblox's tutorial
I dont know which is better because i didnt watched any of theirs
i mean both r js as long ill js watch the more pouplar one ig
which is brawlblox guy
back then alvinblox was the most known lol
his video is pretty old so it might be outdated idk
Basic stuff is the same
Brawlblox also works so go for it
ye ig thanks for the help
@indigo torrent u working long term?
you down for some i got alot of games, we lack coders
Can anyone tell me why is it not flipping the switch or not working
Anybody know how my port need improvement
using rojo is common for devs? or just the professional ones?
it is purely preference but when u use rojo zou should be confident in zour skills and should alr know nearlz everything I personally can recommend it casue it has a lot better plugins and a better ai assistant/auto completion
yea thats why i even thought of using it , auto completions and Tab-completions from normal AI sound very nice
tho where would i find a normal AI that can auto complete for me π€
the best thing about it is still version control with git if you are not new to coding and have worked with git hub and vs code before i highly recommend it
the thing about it is for infinite good autocompletion you need copilot premium otherwise you are probapily gonna use it up in 8 hours
yea i have some experience with VS and git
tthan i would recommend u using it jsut watch the video from leif he explains everything
i heard that anti-gravity ( google IDE) offers unlimited tab complitions for free 4ever
basically cursor for free
ok ill go watch it soon
i have copilot premium so i havent looked at it but maybe if it works then your lucky
damn i need to get my GitHub premium as a student
sounds hella good
yeah
im just too lazy to do it
guys
any roblox cursor vibe coders here?
yes bro
apparently itβs the new meta
ik a couple ppl dropping games quickly with it
i use a claude code wrapper i had it made, has built in stuff for roblox like a linterπ₯
r
hey guys im making an incremental game and am mostly finished and i was just wondering is there a way to send a table to the server before the player leaves because im using a batched table approach for performance
Should I use UID to store the same towers, but access them later individually via the UID?
player.removing
oh i forgot that you could require data from client when they left
is learning variables and functions important
on a scale 1/10 how hard is scripting
they are what makes code work
i neeed help there is an error hello anyone
Depends
No totally not important you will never use it, no need to learn it
they slow down your code
depends on the person and complexity of the things youre learning
@moderation
how do I fix this... π
anyone got any ideas of what i should make for a project? i cant get any jobs from scripter hiring because i dont have many full games in my portfolio, so i need to make a game myself to prove i can script
anyways does anyone know the solution to this
just make a basic systems and shove it in a portfolio
i did, and its not good enough
don't make whole games for that
what have you made
@craggy niche send your portfolio
whats something funny u like
