#code-discussion
1 messages · Page 27 of 1
Wdym
Don’t understand it
ipairs for index with numbers only, pairs for numbers and and other index values such as strings(Array["Sigma"]) Suphi Kaner has a video on it, pairs skips values that are equal to nil
do you know the diffrence between array and dictionary
does anyone know how i can spawn trees over a certain area of the map, wehre the trees are all spaces out, but still kinda random. Like in minecraft
If you don't understand learn what arrays and dictionaries are
poseidon disk sampling
Real
why yes copilot, that is exactly what i wanted to do
i forgot what is it called
I think it's literally just called roblox code assistant
oh lmao
yo guys if yall need help coding your game (tell me the ideas and the work to do) i can help yall for free no money needed not even % just have good ideas and have progress done and a good game thats all you can ask me to make anything you want i am a 5 year scripter DM ME
Aray is like the list I’m pretty sure and the dictionary is like something equal a number line [t] = 2 I think
a dictionary is key pairs
the key can be anything like a string
key = value
ipairs iterates thru the array
while pairs iterate thru all entrys
I see I de
lmfao
m
can someone describe the difference between frontend vs backend scripting to me as if u were describing it to an idiot with no scripting background
so basically frontend is what people can see and backend is what people cannot see
When would you use an array
Is your commission open?
The Roblox code assistant is so bad 💔🥀
Should I continue working on this system
Bad video uh hold on
perchance
Yeah this one should I continue working on it? Tips ideas?
Because i want to make a game can we talk on dms?
ok
When you want a numbered list of things to interact with or if you want to do something to an unknown ammount of things or a selection of thingsa
What portal said, and if you're into object oriented programming it's good to do that if you want to organize your variables.
So would I use an array for like a faction type thing
(so like player related variables going into an array)
Different guilds
Elaborate
Like deepwoken for examples how they have guilds and only certain people are apart of the guilds would I use an array so only those people are apart of the guild
That’s the only thing I can think of
to keep a list of players I would
Yeah
If you wanna list players part of say yellow team, open an array and start pouring player names into it
that and any other list of any other number of things
So if you call the array index number 1 you can find the first player entering the yellow team
I see I see
Arrays are incredibly useful for so much
And dictionaries are typically used for shop or something
I mostly use it for object oriented programming, like if I wanna store player hp, money, stamina, strength, charisma I can put it in one array
It’s not clicking for me bro I barely understand it
depends on the shop
thats what id use a dictionary for
Is dictionary LuaU? I've never heard of it while studying C# and Lua
Dictionarries keep a list of referances in the form of strings while arrays use numbers
dictionaries and arrays are both luau tables
What would you say the most common things you use an array for
they fuction exactly the same but one is a little easier to create and manage progrematically while the other is more versitile
Me personally every integer variable a player would have (like stats hp stamina money)
transfering and organizing data mostly
but also modifiying all of a list of things
or keeping track of somthing that has more somethings inside of it
Wish Lua had classes like C#
You have a big box named player, you put little boxes inside like the number of HP and stamina. You can dig into big box to find little box instead of searching the cave to find little box
anyone know how to fix this 💔
think of it like this. An array is a list of things with numbers assosited with them. the ammount of these things and the things themself can be chancged and moddified as needed
each thing can be literally any object in lua which is most things
Was this an accurate explanation golem?
give up
yup thats more of what a dictionary is, arrays specifically are nummbered lists but thats all just techincalities. Lua dosn't actually care about the differance between and array and a dictionary
the benefit of using an array is over a table is the specific functions that use the numerical index
yo twin whats an ingame example of a dictionary ?
Ling gang guli guli
but Lua itself does not distinguish between the type of Index when doing things with tables only the functions that use the index
why does lua start at one 💔 ts language
Starting at 0>
dictionary, player = {health = 10, speed = 5}
array, player = {10, 5}\
each number in the array is automajically asigned a number in order starting at 1
for example player[1] == 10
hey how do i actually make a pathfinding ai that recalculates its path constantly?
I want to apply this rig's humanoid description to the player when they equip a tool, how do i get humanoid description from a rig, and can i use the humanoid description without the rig being inside the game, or alternatively would i have to be a users avatar or outfit?
ie enemy ai vs friendly ai
bind to runservice
runservice
or better, you could fire it when the player it's tracking moves
or when any player moves
Don't use heartbeat, I havent used LuaU in forever but use the one that runs before the frame gets rendered
Uh render stepped I believe?
It's fine, heartbeat is after the frame is rendered and is used for physics n stuff
making a freeroam td game
Don't take my word for truth though, I'm rusty and haven't touched this in ages
freeroam towers and enemies
soo likely theres gonna be alot of humanoids?
will it be a problem for performance
Can I see a snippit of your code
If you have any
how do i send it in the weird file type?
like where theres color lighting up and etc-
local RunService = game:GetService("RunService")
local human = script.Parent:WaitForChild("Humanoid")
local torso = script.Parent:WaitForChild("Torso")
local target = game.Workspace.FrontierPlains.Base
local function moveToTarget()
local path = PathfindingService:CreatePath()
path:ComputeAsync(torso.Position, target.Position)
local waypoints = path:GetWaypoints()
for i, waypoint in pairs(waypoints) do
human:MoveTo(waypoint.Position)
human.MoveToFinished:Wait()
end
human:MoveTo(target.Position)
end
RunService.Heartbeat:Connect(moveToTarget)```
Try running it with 2-3 people
did that its working just fine
Not as a lag test but to see how the bot reacts
Ok good
From just looks I think you'll be fine
I don't see any bit of code that looks like it's causing unnecessary lag
hey do you think i should make a script that gives this properties to the enemy or just add the whole script into each enemy?
does having a bunch of scripts cause lag?
don't put a script in each enemy
What he said!
Cause if the enemies all spawn and like a krillion scripts go off giving them properties individually it's a little redundant
I made a Lycan model from blender I got this script from chat gpt it ain’t working but it says noting is wrong with it I have a humanoid root part and a humanoid in the model
Bit of an old clip, is this any good?
(for context I made a script that sets the gravity of whatever car you're driving to whatever wall it's touching so it can run up walls)
i use postsimulation
it actually depends
if you cant be bothered to make some batching system for enemy pathfinding then you might aswell just clone a script into each of them
But what about this @balmy wedge
I have too many abandoned projects I needs find out which ones to work on
ur car is dope
this is the outcome of using one script to manage the pathfinding of multiple stuff
coroutine.wrap(function()
local human = newMob:FindFirstChild("Humanoid")
local torso = newMob:FindFirstChild("Torso") or newMob:FindFirstChild("HumanoidRootPart") -- Support HRP
local target = workspace.FrontierPlains.Base
if not human or not torso then return end -- Prevent errors
local connection
connection = RunService.Heartbeat:Connect(function()
if not newMob or not newMob.Parent then
connection:Disconnect()
return
end
local path = PathfindingService:CreatePath()
path:ComputeAsync(torso.Position, target.Position)
local waypoints = path:GetWaypoints()
for _, waypoint in pairs(waypoints) do
human:MoveTo(waypoint.Position)
human.MoveToFinished:Wait()
end
end)
end)()
end```
nice?
or will there be performance issues
this does fix the issue right?
can someone help me with this ? im stuck :\
nice models tho
but yea do what he said
i dont really have that much control with cframe like tweening tho ;-;
also do i do with linear interpolation ?
gun.Equipped:Connect(function()
local character = gun.Parent
local joker = gun.joker
character.Humanoid:ApplyDescription(joker.Humanoid:GetAppliedDescription())
gun.Activated:Connect(function()
if not bang.Parent and not deployed then
bang.Parent = gun
gunshot:Play()
deployed = true
else
playRandomSound()
end
end)
gun.Unequipped:Connect(function()
local player = gun.Parent.Parent
character.Humanoid:ApplyDescription(game:GetService("Players"):GetHumanoidDescriptionFromUserId(game:GetService("Players"):GetPlayerFromCharacter(character).UserId))
bang.Parent = nil
deployed = false
playingSound = false
voiceline:Stop()
gunshot:Stop()
end)
end)
when i try to restore the characters humanoid description it just kills the character
What does this mean 💀
i think he means Instance.new("Sound"):Play()
mb
How do i make this relative to camera cframe ?
i meant like sound stuff within scripting cause im tryna disable the default death sound and walking sound with a gui morph system
Why are u nesting events in events 💀
AAH THE MEMORY LEAKS
becuase it's impossible without doing it like that
but if you find a better way let me know
Just pull out the events dawg
localize the function and preload it, after use garbage collect and disconnect it 🗿
try it
Try what
This hella ez
So basically when u load into the game your player script will have like a sounds module or smth like that
You want to copy this, exit game, edit sound id and paste it into starter player scripts
Is there any market for a plugin that helps to make 2d games in roblox, like trying to remake terraria etc. ?
can u dm me like what to do
like the script
cause im basically destroying a sound as a whole right?
do i do it clientwise or serverside wise?
if ya dont mind
hey guys, making an enemy ai that attacks base, barracks, and friendly ai.
theres likely gonna be tons of enemy ais
1 that prioritizes base, one that prioritizes barracks and 1 that priotizes friendly ai
how should i do that
should i jumble up that into 1 script?
or make a module script and reference the code
It's easier if you create a table storing players and their status effect threads. With this, you could cancel the previous thread and start with a new one
oh hey also 1 tip is use chatgpt
sometimes when i get into problems i just ask chatgpt
i dont think its give good result
im using it to make pathfinding ai
just works fine
dont fully rely on it
honestly, that works when me dedass is unable to find errors in my 300 lines of code
i use it to find deprecated functions
im new to scripting and im using a tutorial
soo chatgpt helps me find stuff and optimize code
ok
Project dump, just a little thing I made a while back
im not new but im kinda bad when it comes to finding errors and bugs so when i totally lose my patience, i go for that
I'm clearly not good with UI lol, when I get my monitor back I'm gonna have to work on that
same
chatgpt is actually insanely nice
Don't rely on it fully, think of it as one of the people here who will help you out
howd you make the arm regrow like that
It's not like somebody here would be able to write a script related to your game without actually seeing the game
agreed
ik, i do write my own codes and scripts
only AI when bugs and errors don't resolve on my 5th try
dude what
just make it match the cframe of the camera
with an offset
I use AI if my code is messy n I can't find the bug anywhere, but I tend to use it as a last resort to push myself to learn
its as simple as :pivotto()
same and that's what everyone should do
gulp
I just have 3 parts that I tween to scale from 0.1 studs to 2 studs in length, while also moving the C0 of their respective welds downwards by 1 stud
This system took me 3 days of trial and error to make because nobody online had any documentation about it
I was also a programming noob at the time
sounds about right
Oh gosh I'm recalling the all nighters I was pulling trying to make it just to show off something cool to my friend
I wish I could have inspiration like that for my other projects then I'd actually get stuff done
Lol
map to string
i should probably put a task.wait on the reconstructing so it doesnt timeout my script
A buffer won't really change anything if it's just a string.
buffers can't be stored
elaborate on stored
because they can be saved to datastores
in any meaningful way without having to rely on async methods
i.e. stringvalue or attribute
why are we treating this as a downside
send that shit over the network like buffers were intended to be used ❤️🩹
preach
buffer objects aren't necessarily a form of compression. But you can modify the binary data inside it and put multiple values in one single buffer to make it take less space.
do you think he knows
i am aware that just using a buffer doesnt automatically make data smaller
it is still data
def gonna be faster to read and write to than using strings though
^ this and chances are that any amount of data you're storing in a binary is going to be more efficient and use less space so... more compressed
also also last time i checked you can apply zlib compression to buffers (though i don't know if this is true or not, think it might be a datastore only thing? i don't remember)
jsonEncode
either way in this scenario it's like 99% more likely that using buffers is more efficient and takes up less space
i jsonencode my buffers before sending them in remote events! 😁
don't need to
skull emoji
json fastest method trust
roblox will autmatocly compress buffers
laamee
Oh I just researched more about buffers. Apparently, they are compressed when transferred over Roblox's networking APIs.
Yo if I’m trying to learn how to code should I take stuff one step at a time ? For example should I dedicate a certain amount of time to learning tables, or coroutines, or, CFrames, etc. Or should I just try scripting whatever comes to mind and if I get stuck I can just Google it? Idk if this makes sense but if anyone has any suggestions plz lmk
work on projects and learn what you need in realtime
^
there's no point in "learning" specific datatypes and other things if you aren't going to use them to reinforce them or even understand why you'd need to use those concepts anyways
When you say projects do you mean like games ? I only have a few weeks of scripting experience so I don’t think I can make anything too big yet
literally anything that comes to mind counts as a project
just make anything honestly
Ohh I see
literally just getting user input and printing out what key they're pressing? yeah thats a project too
ye literally just anything you wanna do
it doesn't have to be some massive project, nor does it have to really be anything crazy
as long as you have an interest in it then i'd look into how to make it
Yo this lowkey makes me feel better, I thought “projects” had to be big grand things
thats why i used a string lol its easier to work with as you can just paste it anywhere
And it made me so nervous and lost
Start off with the basic projects. Stuff you can do with what you know already.
The goal of these projects is for you to work out the solution from a problem. You can research what something in the language means.
nah keep it simple, you'll find yourself doing more advanced things the more you work at it
^
you'll also build the skill of breaking down problems and researching them
big system becomes small problems, learn how to solve each small problem, combine to make big system
boom magic
not to mention all of the big grand projects can be thought of as tons of smaller projects combined together anyway; the most important skill in anything related to programming is being able to break down problems into the simplest components to solve those
Thanks for the info guys, now I don’t feel so lost anymore 🙏
i just started learning luau 2 weeks ago, id say just jump into it, try and build what you can.
im currently building a auto battler/tower defense type game atm learning as i go.
someone want to mke a kuroko no basket game with me
i started learning 10 days ago, do you recommend i do the same, build a project as i go?
yes i technically started 5 months ago and got way better just building things
looking at good code helped me too
Where would you find the code
i just looked through adonis code
or popular code like that
this helped me learn type annotation adn generics as well as how to give a function a "Comment" when calling (idk the actual name for it)
What is Adonis code
adonis is admin commands
this isnt it though, this is a signal module
i can lend you a promise module if you wanna look through it
Sure
dms
Failed to load animation with sanitized ID, someone help pls
bro just go on devforum at this point
idk how to use that
find out how to use it instead of telling me you cant use it
One day... one day
bro u saw, i tried everything but still not working
Did you also try testing in the client instead of studio
chat is this PEAK
Indeed
its only erroring cs the raycast aint detecting any instance called "wall" lmao
holy how tf u make this
add an if statement
code like an alien 👽
lol
turing needed a language server when he was writing his paper on computable numbers
he keeps forgetting to define functions 💔
for whatever reason, every now and then theres 繁体字
繁体字!!
what are these bum ass fonts
istg fire mono, lucida, and courier are the only actual fonts you can use for programming on roblox studio
what the fuck
what the shit
import { Players, Workspace, RunService } from "@rbxts/services";
import { KDTree } from "@rbxts/kd-tree";
import { SpatialHashingGrid } from "@rbxts/spatial-hashing";
import { Signal } from "@rbxts/signal";
import { t } from "@rbxts/t";
😎
How your code be looking when you look at it again the next day with no comments
Is this leaked COTC code
On a scale of 1-10 how hard would it be to code a simple enough mine that fills with randomly generated ores?
Is the mine layout randomly generated?
Yep
Is it a block game like Minecraft
Like a mc prisons kinda thing
So is there a cave or is it just a solid cube of ores
Solid cube
Oh then like 1
No but it would be significantly harder
Cause you’d have to learn algorithms
Noise and whatever
Yeah I can imagine well ty 🙏
If that's how you view your own code after a day of not working with it, you aren't ready to code whatever it is you coded. No one knows their code better than the original author.
I disagree
Outside factors can alter your consciousness making you less able to focus and under stand things
Your statement Is very superficial
I don't think that that applies to your own code. You know what you wrote and unless you're still just grasping the subject matter, you should be able to recall and understand what your own code does.
What outside factors do u experience? I've never had a problem with understanding my code despite living in a loud environment
Remember guys,
RemoteEvent:FindFirstChild() is not a way to fire remote events
thanks i remember now.

Failed to load animation with sanitized ID rbxassetid://75373839870659: AnimationClip loaded is not valid. (x2)
somebody help me learn coding, i cant do shit rn just know lua basics dont know how to proceed, pls help if you were once at my stage
just did the roblox coin game
mashallah we shall find this bug 🙏
mashallah is like when u see something surprising bro u go like wow mashallah 😭
but np people here arent muslim
I think that's when u don't own the animation
INSHALLAH WE SHALL FIND THE BUG!!!!!!!!!!!!!!!!!
🙏
I've been scripting for 3 Year straight but I didn't progress a single one. Is that an skill issue?
If a time traveler goes back in time and becomes the reason his parents meet does that mean his mother now will give birth to a pointer reference of him instead of his actual self?
This is plain stupid dawg.
i need someone who can make a mobile support with tsb type of shift lock, im readdy to pay so type to me if your interested
I agree, I can write ugly code but even months after I can easily pick it back up since I made the system
though if I handed it to someone else they would think I'm insane
Chat this guy doesn’t comment his code
Kill him!
I do the bare minimum and add -- Variables -- Functions -- remotes
Any suggestions on making a good incremental game?
Bro wants to be mysterious so bad 😭
Seems like the wrong channel to ask that in? Like, coding advice for making one thats functional?
I don't need to comment my code if no one else has to look at it
just name variables and functions good enough
Really I just use comments to tell myself to do stuff later. --Put something functional here eventually
Documenting is like half of what good coding consist of
in a team maybe. as long as you have decent naming conventions its not too hard to keep track of everything
What good is code if u have to relearn what u made after a year later
Everything in general really but also how I could structure the code or what I can do because I'm new to this
I do add comments after modules or stuff and inside functions if it's confusing but it not like I'm reading a public API, the bare minimum is fine for me
I mean... math? Incremental games are uniquly easy because you can just throw a new math calculation on whenever you want to add more content.
not gonna comment my code like gpt, I think the way gpt comments code is aggressive and makes it harder to look at
set flags for certain actions, buying items rebirthing etc and then scale up a multiplication variable or whatever. button clicked +1 point, rebirth 500: button clicked * 500
Honestly I think chat gpt comments makes the code more manageable if you didn’t make it yourself
gpt comments code like a maniac that needs to over explain every random code bit --this comment is designed to make fun of gpts coding comment practices
I think more comments are better than bare minimum comments tbh
To each their own, I like giving my code to gpt after I'm done to write me a documention for my code but I don't want to write comments like that
I feel like if you're letting gpt run wild like that you're already in trouble. Gpt is at its best when its sole purpose is menial work and reminding you what functions/methods do what things. At least thats how I use it
Code I didn’t write as in someone else’s code I run through it to annotate
Chat gpt lua is awful
Gotcha, makes more sense 😅
Gpt does help me understand public modules people make when it lacks documentation or good examples
Honestly tho the newer gpt models for other coding languages are actually pretty decent now
Come a long way since 2023 for python and c++
I dont think I could ever trust GPT tbh. Even if the code it wrote was 10/10 I would feel the need to triple check, ending up wasting any kind of time I would be saving by having gpt write it
any scripter wants to partner in a game
Deepseek is pretty cool how it does reasoning, I wish Roblox AI was actually good but it's the worst AI I ever used
I thought I was the only one thinking this from how praised the ai was
the roblox ai is praised?
I don't think anyone except the company and YouTubers praised it
YouTubers who aren't even good devs
I think the texture generation is really awesome but it's still mid quality
I’ve seen a few people on dev forms talking about it
I’m not a fan of the texture ai either
it's better to use rojo and copilot than Roblox AI
The prompts all come out looking strange or grainy
I could be using it wrong though
Not the Ai on the api documentaion website right? Back when I was still trying to understand the basics of luau I couldnt get past two questions without having an aneurysm trying to wrangle that thing and stop it from giving me deprecated information
It always looks strange for me too, I just use the normals it generates for textures
I didn’t even know the api had an ai
yeah the studio/API AI, it feels like abandonware as soon as they made it, it's worse than gpt 3.5
thank god, thought I was going crazy when I thought you said that was being praised by anyone
It has potential though
I cant link to it, but its the assistant button at the top right of the docs page
Like it spawns things in workspace and could change properties, the demos are really good but no one has ever had an experience like the demos they made for it
Huh they just released a update for the AI assistant an hour ago
Hi Creators, Since launching Assistant last December, we’ve been expanding its capabilities, and improving its performance. We’re committed to making it a useful resource in Studio with you in the driver’s seat, designed to accelerate your productivity and enhance your overall experience. You should feel in control of what Assistant is doing i...
Huh, weird coincidence.
https://youtu.be/85PNb99CT68?si=2cgmaaZyolsd1qIn
They're trying to make 3d mesh generation which is kinda cool
Step into a new era of creation. With Cube 3D, turn simple text prompts into 3D objects in seconds. What will you build?
Learn More: https://corp.roblox.com/newsroom/2025/03/introducing-roblox-cube
Want to see more Roblox content? SUBSCRIBE to our channel! https://rblx.co/Subscribe-To-Roblox-YouTube
Roblox's mission is to bring the...
Im afraid this will probably just lead to more generic garbage. It gives more power to solo devs sure, but it entirely removes quality assurance. Its like the whole "Give me an image of a full wine glass" thing. Ai is super limited by its averages which means everything generated by them is incredibly generic. And sure, better devs will use these tools to make random forgettable assets look decent--because having 700 unique rocks is less noticeable than having 6 rocks you reuse throughout the entire game. But some devs are just going to make entire games with these tools and the platform will be worse for it.
Either my s key has started failing me or Ive missed the s button like 7 times within the last 30 minutes, typos are going crazy today 😑
Most games on Roblox are already AI created messes and it's only going to get worse, but that's what makes quality games stand out above the rest. That 3d generation is impressive tech but it's low quality static meshpart with a low quality texture, I can already see noobs rushing into these channels asking why their mesh won't move
noo
It's weird to me that people would seek help from other people when they are perfectly fine using ai for everything else. Ai is best at answer questions like "How do I do this?" or "Why doesnt this work?" But, people copy paste code from ai and then come here to ask whats wrong with the code. makes me wonder if people in #code-help used to be more receptive to beginners before ai.
I rarely ask for code help because everything can be found on google or AI, it's really painful helping beginners who use AI and can't understand what anything does, it's very obvious what AI code looks like too
How would I go about making trail like system for water bending (atm I update bones position to the previous one / one ahead of it) but this is laggy and not synced between different graphics - eg more lag = longer shape, less lag = slimmer
That’s not mine tho lol
It’s a reference
like can't you fireallclients the visuals and register the hit on the server
Yeah
I would register hit on client and then fire server for it to be smoother
But the actual movement is the issue
and then have the server do sanity checks
Not the hit register erc
Yeah
I would fireall clients and fire the hitbox client side, and when theres a hit you fire server and the server does sanity checks/applys dmg
but if your looking for a cleaner way for the vfx?
if the water is a mesh with bones it should be done on the client for performance, register hit on server. But you can maybe use a part with 2 attachments with a beam maybe, would be like a whole other way of making it though
A main part that changes direction, and another part attached to a spring on the main part, put the attachment on the part with the spring and one on main part
just a idea though
im trying to make the physics for the delayed repositioning / lerping between current bone and one ahead of it tho
the only issue is that
- its not very performant
and - the length of the water mesh changes depending on client lag
Are you using delta time, that helps with calculations between frames
And for performance, are you doing the cframe calculations on the server or the client
yeah but still doesnt work
client
My example - recording messed up for like first bit
@shut sorrel
does high graphics usually cause your game to lag? Or just the script being that laggy?
More about particles and meshes I think
Cotc ain’t got a single fucking module script when I first started
slave labor wages
Lower fps
lf scripter u can take 70% of the game i can invest in ads since i have rbx so u will gain from the game i do uis (i can pay rbx)
Yo guys I was wondering if WaitForChild is truly useful if you're just trying to immediately access a model/folder that's already in the explorer at first or not?
It's already on server so logically I'd say it's useless but a lot of tutorials tell you to do it for some reason
the reason you use it is because the roblox engine doesnt guarantee time or order in which objects are replicated from the server to the client
Oh so using it in a server script to access something already on the server (not created via a script) is pointless, but from localscripts so from server to client it gets useful then?
from server to client or client to server basically
yh u use waitforchild in local scripts
kk yeah
its even on the forum
cuz I see tutorials where they waitforchild a replicatedstorage model in a serverscript
but it sounded pointless to me
just a random habit i suppose
idk
i love how people will ask for like the most complicated shit
and pay like 200 robux for it
just hire a slave atp
and then pay like 20k for the easiest thing ever
real
man I wish I could just make my own game and get out of this commision bull but trying to hire people to help is the most annoying process ever
talent hub is the most buggy thing ever, this server's job hiring thing takes like 2 days before its published and people can see it
bite the bullet and make a easy to make cash grab
yeah
yeah lmao
make cash grab and use funds to fund bigger and better project
use toolbox model, people who play cash grabs do not care
the problem is I got funds, I know a rich investor guy who ive been friends with for like 3 years
the hiring is the part thats pissing me off
I just do everything myself and keep 100% of profits
I wish I was like you fr but I am not talented enough to work alone
the most I can do is a good looking showcase game
or a shitty fps game using toolbox fps systems
my desire to learn comes directly from being too broke to hire anyone and it payed off
brokey
I think tycoons, obbies, and TD are more popular for cash grabs
Something you really have to sink a lot of time into and pay attention
progression and flexing is the gameplay loop
on the scrip[t performance tab, what should i be looking for? the count and activity numbers im not familiar with those units.
Chat theorethical question: If you could have any library for coding, what would it be?
Like your can only use 1 lib not written by you?
And in luau or all languages
idc
no, one lib that made someone or you, doesnt matter
and you can only use that?
Cause I could rewrite my own libs
yep
u made?
Yeah
damn
The only lib that's not custom is a UI library cause I can't be bothered to rewrite thet
what other libs u made?
Manily for my own games and only when I need it
Which includes signals, serializer, some utils
why would you need serializers?
To store stuff in buffers more efficiently for data transfer
this man is on different level
I never used buffers
can you give me some introduction why to use them? Like im making one maze type game where its randomly generated, so if you could tell me how they should be used
||got ghosted||
If you’re generating a maze and sending it via network it’s more efficient to send that data as json. You can also save the maze layout or rendered parts for resuming the game later if you want that functionality
Well it's just used to reduce network. Buffers for a maze generation like what the person said above can be used as a efficient way to send or store
so basically micro difference
It depends on your architecture
are buffer libs useful?
For making it easier to pack data
It can be a pretty large difference depending on the data
isnt it just write buffed, read buffer?
anybody know whats the best way to go abt making input buffering, i got my own way i just wanna know
I send from server to all clients one table at the start of the game
Writing a table and different datatypes
why...
Then it's fine
tf u mean why
And you don't really need buffers
compressing with json?
cuz i need to make it
why would you do that
Json isn't really compressing
combat feels better with it
like i odnt see any reason why is it useful
fr?
combat...
ofc
every game has it
cuz when u click to early without it nothing happens and then it gets annoying
yeah whats stupif abt it
is that even a question
i am programmer, but no god, or no god in roblox API
whats the diff between a scripter and a programmer
scripter is a guy who writes a code and programmer is a guy who makes logic
anyone got a portfolio for scripting i can see?
i am both yk, but still
yet u asked that question
which one exactly
This is giving me a headache
.
yeah same here
if u make custom multi game out of roblox then you do both, but on roblox you want to do prediction on server and compute on client
anyone know of a tutorial for the stylesheet/stylelink/stylederive objects?
theres 2 ways to make games on roblox
u ALWAYS detect input on client
idfk how u didnt know that
obviously...
u either handle actions provided by the input of the client on server
or send info to from the server to the client to replicate
which means ass computers cant run ur game
why tf did u ask then
I asked because I still dont know why would you need to write to a buffer inputs to send it to server
I feel like I told you ten minutes ago
i already said its useful for combat
but like you WILL ALWAYS have delay
do you even know whst input buffering is
no
u save keys that are pressed during a move and then calvulate the most recent one in a set duration and execute another move
never encountered it, so idk
so queue but for buffers?
needs help with saving data for a player i tried like different 4 scripts and nothing workkkkkkkkk
make sure to look at output errors and for typos
theres nothing in the output no error
try printing out different parts of the sciprts, like when it loads, when you save the data and get to where it doesnt work
it does not work
wdym?
this is unrelated to the buffer library
you're confused because you were talking about the buffer library before and someone had a question about something unrelated that also used the word buffer
do you even call the function?
wanna see the script?
no I was just curious why would you use it
sure
-- Script inside ServerScriptService
local DataStoreService = game:GetService("DataStoreService")
local speedDataStore = DataStoreService:GetDataStore("PlayerSpeedData") -- Unique name for your data
-- Function to load player data
local function loadPlayerData(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local speedStat = Instance.new("IntValue")
speedStat.Name = "Speed"
speedStat.Parent = leaderstats
-- Load data using GetAsync
local success, savedSpeed = pcall(function()
return speedDataStore:GetAsync(player.UserId)
end)
if success then
if savedSpeed then
print("Loaded speed for " .. player.Name .. ": " .. savedSpeed)
speedStat.Value = savedSpeed
else
print(player.Name .. " is a new player. Starting speed at 0.")
speedStat.Value = 0
end
else
warn("Failed to load speed for " .. player.Name .. ": " .. savedSpeed)
speedStat.Value = 0
end
-- Apply speed to WalkSpeed
player.CharacterAdded:Connect(function(character)
local humanoid = character:WaitForChild("Humanoid")
humanoid.WalkSpeed = speedStat.Value
-- Continuously update the speed stat (if your speed changes)
while humanoid and humanoid.Parent do
wait(0.5)
speedStat.Value = math.floor(humanoid.WalkSpeed)
end
end)
end
-- Function to save player data when they leave
local function savePlayerData(player)
local speedStat = player:FindFirstChild("leaderstats") and player.leaderstats:FindFirstChild("Speed")
if speedStat then
local success, errorMessage = pcall(function()
speedDataStore:SetAsync(player.UserId, speedStat.Value)
end)
if success then
print("Saved speed for " .. player.Name .. ": " .. speedStat.Value)
else
warn("Failed to save speed for " .. player.Name .. ": " .. errorMessage)
end
end
end
-- Player Added
game.Players.PlayerAdded:Connect(function(player)
loadPlayerData(player)
end)
-- Player Leaving
game.Players.PlayerRemoving:Connect(function(player)
savePlayerData(player)
end)
-- Optional: Save data when the game shuts down (for all players)
game:BindToClose(function()
for _, player in pairs(game.Players:GetPlayers()) do
savePlayerData(player)
end
end)
why are we dropping gpt code 💔
cuz i cant code
and i tried other codes on yt
please format it with backticks
how
?
this?
ye
didnt work
youre not gonna learn by spam prompting
use a datastore library
what
you shouldn't be relying on an llm that makes mistakes to write your code that handles player data
there are plenty of tutorials online, look into something like profileservice
nah man, writing ur own makes you learn it more
like ur own code, not lib
it didnt work by copying it
he's not writing it, he's prompting an llm
@fluid sierra
Raw text
```lua
print('Hello World')
```
Formatted
print('Hello World')
large language model?
yeah, it was code from chatgpt
he has no clue what he's doing
alr, I use gpt for debugging or sometimes when I dont understand smth
but nowdays I dont use it for debug
more like used to
You need to be using ProfileStore in all of your Roblox gamedev projects! In this tutorial, we learn why it's better than default Data Stores and how to set it up. No sweat!
Thanks for watching! I'm a Roblox game developer teaching Roblox players how to create their own games. Subscribe to learn more!
Download ProfileStore:
https://create.robl...
or any other existing data library
@hasty bone
A while loop is used to repeat code until a certain condition is met, or to loop code indefinitely. Make sure to add a task.wait() somewhere inside it, so it doesn't crash, end, or lag. Usage:
while true do
print("TRUE")
task.wait(5)
end
what
but why is there a bot for that 💔
ProfileStore is a service of roblox isnt it?
or its profile service?
no
profilestore is the newer version of profileservice
hasn't been used as much in production
aaah ok
so i just delete the data store script?
its a free module
on toolbox (like free model)
I will probably stick to good old datastore
yes, stop trying to use chatgpt to write entire systems
you will never make a proper game like that
blacklist that shit from your browser 😭
LOL
i'm serious
but it helped me make a speed system
you shouldn't be using it when you're still learning
best coding hint 🗿
especially if you can't understand what it's generating
one of the most important skills to have is the ability to break down a large problem into smaller ones
and being able to research how to solve those small problems yourself
how to make a news ticker
what the fuck does this mean
TF?
just ui?
thats the easiest shit ever
ohhh
use a frame with clips descendants and a text label
set the text label to the entire string
@silver verge no shit
ok so what are you asking then 😭
use two labels
how tf u do dat
that have the same content
when one makes it all the way across, move it back to the other side
can uw rite it @silver verge
no
ur useless
better than that """"tutorial""""
im calling the skid police
i was gona pay him
%?
fuck no i'm rich wut the hell
ok then its fine ig
can u write it
yo its like 20 lines of code
ok can u write it
No
exactly ur useless
bro has so successful game and cannot make it 😭
i told you how to solve your problem
i just can't be asked sometimes
it's your turn to implement the solution
bla bla i'm asking gpt
go for it g
how would my teacher say: good luck..
can u write the prompt for me @silver verge
write an infinitely sliding repeating text label in luau
no one doing that ;-;
ok
shits probably gonna be ass but you'll figure it out
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local player = Players.LocalPlayer
local gui = Instance.new("ScreenGui")
gui.Parent = player:FindFirstChild("PlayerGui")
local frame = Instance.new("Frame")
frame.Size = UDim2.new(1, 0, 0, 50) -- Full width, 50 pixels tall
frame.Position = UDim2.new(0, 0, 0.1, 0) -- Adjust vertical position
frame.BackgroundTransparency = 1
frame.ClipsDescendants = true
frame.Parent = gui
local textLabel = Instance.new("TextLabel")
textLabel.Size = UDim2.new(0, 400, 1, 0) -- Adjust width for text length
textLabel.Position = UDim2.new(0, 0, 0, 0)
textLabel.Text = " ⚔️ Welcome to Redux RPG! ⚔️ "
textLabel.TextScaled = true
textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
textLabel.BackgroundTransparency = 1
textLabel.Font = Enum.Font.GothamBold
textLabel.Parent = frame
-- Duplicate the text for seamless looping
local textLabelClone = textLabel:Clone()
textLabelClone.Position = UDim2.new(0, textLabel.AbsoluteSize.X, 0, 0)
textLabelClone.Parent = frame
local function animateText()
while true do
-- Move both labels to the left
local tween1 = TweenService:Create(textLabel, TweenInfo.new(5, Enum.EasingStyle.Linear), {Position = UDim2.new(0, -textLabel.AbsoluteSize.X, 0, 0)})
local tween2 = TweenService:Create(textLabelClone, TweenInfo.new(5, Enum.EasingStyle.Linear), {Position = UDim2.new(0, 0, 0, 0)})
tween1:Play()
tween2:Play()
tween1.Completed:Wait()
-- Reset positions
textLabel.Position = UDim2.new(0, 0, 0, 0)
textLabelClone.Position = UDim2.new(0, textLabel.AbsoluteSize.X, 0, 0)
end
end
task.spawn(animateText)
tf is redux rpg
probably its grabbng info from past chats
hurryu po and fix it @silver verge
looks like it works to me
it wont work cuz its not scale, but pixels
can u make it better
you can figure that out
lets see if this is faxs
you know its gonna be tuff when it starts dropping emojis
if chatgpt makes it better then ur not getting 5k robux @silver verge
17 dollars
it dropped like 6
u sit on discord helping people with their problems
of course uhr missing out on 17 bucks
i'll be ok
mfs at mcdonalds work an entire hour for 14 be grateful
its 17 dolla dolla tho
@silver verge wanna work for my game it has 70k ccu
i do NOT need 17 dollars 🙏😭
what's the game
ur disrespectful
with the way dead rails blew up i wouldn't put it past you to actually have one
tf is that supposed to mean
i'm a hard working roblox dev
i made berry avenue RP @silver verge wanna work for it
it has 83k ccu rn
💔
i'll Pass
the daels off anyway
that sounds like the most worst coding job experience you could have, I dont want to see the code, its so messy I can just tell form this chat
@silver verge plsu dotn come begigng after
u get paid 85 an hour
i'll do my best
nah
no problem
I would rather make my game with 0 revenue than make roleplay game
no
I think you move on roblox a bit, you dont know how many fucking rp games are there?
I want more original ideas
igh
same with td games
@thick sapphire stil lrich doe
W mindset
@silver verge pls dont beg
i hate money hungry devs
@thorn frigate das wat broke peopel say ngl
u can make a good game and earn money at the same time
but can u make the same amount of money? no
true, like i wanna make big company with lot of money, but for my dream projects not the revenue
true, look at doors
@thorn frigate i have a job application for you
ok
bro is """hiring"""
for not taking the most obvious sarcasm ever you deserve to work as a trash collector
is the sarcasm in room w us
it was a blatant lie
if u pretend to own a game for sarcasm there is smth wrong with u
@thorn frigate why tf would i go hiring for berry avenue RP ???????????????
r u slow
yes u just have to monetize well
the owner is a girl

yo its so easy to tell he doesnt own it, shit was an obvious joke 😭
plus i literally have my profile in my connections r we being slow
^^^^^^
even he gets it
how tf am i supposed to know that + i aint going around stalking
by not being autistic
on god
well mb then some people are really that dense to go do that
ur just stupid
@thorn frigate you'll make a little bit of money and turn ur entire fgame p2w
truist me
do you think people who say their dad owns roblox are saying it with actual intent
this is the same thing
if you are preston*
if you want to make a livable wage off roblox realistically*
💀p2w games arrent sustainable
if you want to "scam" kids of their mummy's credit card*
p2w is different from heavily monetized
kid consented
they literally said p2w
sorry i have low reading comprehension
too busy optimizing my slot machine for children
this is the most honest thing u said today
r u mad u not richy arctic
its ok i can give u a bit of handouts
i'm not exploiting kids they are cosnentualyl spending money on my game
you need funding to build actual projects
what type of lie is this
slot machines*
tsb was made w ith $10
💀
electricity costs much more today
i specialized in programming exclusively, can't model, do sound design, or interface well enough for a game
therefore, i need to outsource all of them
@silver verge hire people for %
@silver verge get a job or take the 17 dollars
you know there are shit tons of free sounds on roblox toolbox
skill issue
is normal for console have those problems with uipageloyout? it works fine with mouse click, but not with console
if you want your game to sound like dogshit ye
it is
based
censor ts word pls 💔
better than nothing
j*b
just search harder, or upload free ones from youtube or websites
again, sound design is crucial if you're trying to make an actual game
if you're making slop then sure go for the free shit
also u can gather funds without making a cash grab 💀
but your game will sound like every other one
nothing for you 🤓
its already happening for 99% of games
idk why we're pulling random stats out of nowhere
for fun
if you go to any front page game, they all have their own sounds
that's not hard to test
im telling you most roblox games and even front page games make use of free sounds. you would only really use original sounds if you want a very atmospheric game or a very specific song or sound or whatever
but these games are just small fraction of all released ones
yeah because the games that dont make it are Slop
that's my point 😭
honestly im with michael
most Roblox games are shit
i can guarantee you a lot of the sounds if not most of them are free, you can actually verify this by using dev console in game
even the top slop games made by axelodev & do_big have their sounds made for them
so idk what you're trying to tell me
thats why we need original ideas not slot machines
they generally have a higher budget than smaller creators
do u want a j*b
which is my point
being a small creator isn't an excuse for not making games
i agree
you just need money to invest
i was a small creator nwo i'm a big creator
which most roblox kids don't have
what games made breakthrough? Minecraft = unique generation, Roblox = custom physics engine and free engine with all the features without fees with servers
I can go on and on
big in physical size?
@thick sapphire good joke buddy
lore accurate
it's not making u any richer tho
bro how much have u made from roblox
$1.3M
proof
1.3M dollars?
💔
holy
robux?
right
that's my alt
or that currency from nigeria?
and also dats 13k usd
notaiser if thats true u should consider putting some of those funds to use by seeing a therapist
wheres that
he sent earlier and deleted
i don't ned no therapist i'm rich boy tf
why r u lying to the crowd
r u trying to defame me
whats ur game
where is it
but you can just modify
i'm reporting u for vencord
hi new
discord doens't ban u for using vc
do u want a job
bro my name is not new i am new in this group
saying a guy who is using it
i have never used vencord in my life
inspect element + still not close to 1.3m
bro changed it 
he has no game of his own
yes can i have a job?
its not inspect i'm real bud
can i see the links of the games you made
ok kid...
yet you have zero connections to any top developers
alright my fans lets chill out here
never heard of them
tf
we have zero discord mutuals
me neither
who the fuck are they?
can i have a job i rlly need robux
oh nah
every single dev i work with has like 10 mutuals with me
who r they shiit
i wouldnt want to work for him even if pay was good
cause hes quite difficult to talk to
my cousin has mental disorder, he reminds me of him
just go look at them it doesn't take long
can. i have a job?
yes but censor the word pls
you sound desperate
mb
wait are these devs that made popular slot machines?
you are not involved
do uwant a job
ur just mad he proved u wrong
not worth being friends w them
yes, but not n ur "company"
bro i want a job please
youre friends with them on roblox but not discord?
i think @vernal timber is correct

r u stupid i have hte mall addd on discord
u just don't have them addede thats why we odn't have mutuals
how do we not have mutuals
Compile error: you spelt incorrect incorrectly
he made $1.3M buddy
yes i made 1.3m
all devs have mutuals with me
i made $200m
who wants a job
@vernal timber bro can i have a job please
nigerian dollars tho
@red cliff come here
💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀
@white pecan i'll send u the application soon
so broke
u cant muster up 1k robux even if u wanted to
ur bragging a lil too much for someone with only 8k robux
the stoop down from 1.3m dollars to 8k robuxnis crazy
I have more than 1k robux and made them by a fair work
so im confused is he a millionaire or a thousandaire?
do u not take sarcasm
8 dollars
neither dollars wise
.
@silver verge is officially employed
@red cliff show the larper your cashouts
not even close
@vernal timber are you just straight up bragging about fake money?
rip soldier
Nk broke asl 😭
why do u need ur friend to flex for u
no its all real
i make games with him and hes way richer than me
i didnt get the application
why r u broke and cant flex on ur own doe
you meant slot machines?
that is not the burn you think it is
Who wants a job
theres no gambling its just pay to win
still making cash grabs inst fair
broke money
who gives a fuck
i would quit talking if i was you
are u reincarnation of preston?
can i have a job
are you poor?
who can give me a job
zaydop calm down your job application is coming soldier
what games have u made?
