#code-discussion
1 messages · Page 191 of 1
ooh ok
A parameter is a passed set of data through a function
thats not an excuse lil bro theres something called education
the ragebait is crazy
function Add(x, y) -- x and y are "parameters"
local result = x + y
return result
end
local returned = Add(1,2)
print(returned) -- prints '3' because the function Add added them together and returned the result
Its how you make use of functions
In code, you need to run operations to solve problems.
In this example, think of the function Add like calling an math assistant to add numbers for you. You need to tell the assistant the information. What numbers should they add?
The numbers they should add are the parameters
When you code the function, you know what to make parameters because you know what problems will need to be solved later.
so like if i do like this:
function hamburguer(ingredient1, ingredient2)
end
local recipe = hamburguer(cheese,meat)
print(recipe) -- then will print cheese and meat?```
yes, though your function is empty, you've grasped the idea of how ingredient1 and ingredient2 "become" cheese and meat because thats what you gave the function when you ran it
to make that actually print cheese and meat, your function needs to do something
you need to put code in its "block"
function hamburguer(ingredient1, ingredient2)
local recipeText = "The recipe is " .. ingredient1 .. " and " .. ingredient2
return recipeText
end
local recipe = hamburguer("cheese","meat")
print(recipe) -- this will print "The recipe is cheese and meat"
This is syntatically correct version @tacit marten
So what happens, ill go top to bottom of the code,
you declare a function called hamburguer, right
This doesnt run code when you do this, it just tells the computer "Okay remember that when i type hamburguer i want to run the code inside"
Then, when you do local recipe = hamburguer("cheese", "meat"),
you're telling the computer "make a local variable,
assign it to what is returned from the function hamburguer by running the code inside
and give the function the parameters "cheese" and "meat"
The function then runs, which in this case it returns the variable recipeText which is just a string, or text, of the given parameters, and then the return recipeText tells the computer to give it back to where you called the function, aka the variable local recipe
i will translate ALL of this to understand wait
Primeiro voce declarou uma function chamada hamburguer, ok?
A funcao nao incia o codigo quando voce a declara. Ela o salva para mais tarde. Quando voce digita hamburguer depois, ela executa o codigo.
So is that why I need to use return?
To "return" the text and then use the parameter afterward?
local recipe = hamburguer("cheese", "meat") Isso diz ao computador para executar a funcao hamburguer e executar seu codigo. O codigo retorna, return, o resultado para a variavel (variable) recipe
Sim
Quando voce usa a tecla (? unsure if thats the right word) '=', significa atribuir. Atribuicoes esperam um valor; a funcao retorna um valor com return
Sorry if my portugues is bad its been a few years
I also dont have the keyboard mode fori t
its good dw
Does that make sense
so if i dont use return to print the ingredients, it will print nil?
bc that have to be a thing inside of the function
to work
i think im understanding more now
Sim
A function does not have to return but if you want to get a result from it and use it elsewhere, like print() in our example,
you have to return
ye return a text
This also works:
function hamburguer(ingredient1, ingredient2)
local recipeText = "The recipe is " .. ingredient1 .. " and " .. ingredient2
print(recipeText) -- this will print "The recipe is cheese and meat"
end
hamburguer("cheese","meat")
It will print() like before, but we did not need to return. Since code is ran when we call hamburguer it will print
ngl now i understanded the code
let me create a code now with parameters
Okay
function agame(style, graphics)
local gameDescriptions = "The game have a style of" .. style .. "and a graphic" .. graphics
print(gameDescriptions)
end
agame("RPG, realistic")```
i did this at the first try
This would work, nice job
function agame(style, graphics)
local gameDescriptions = "The game have a style of" .. style .. "and a graphic" .. graphics
print(gameDescriptions)
end
agame("RPG", "realistic")
but i realized after the computer will not understand, bc i only give the value of one parameter, and not the "graphics" parameter, only the style
so now i understanded, thank u bro @deft coral
u are the goat ngl
I appreciate it
If you have any other questions feel free to tag me
ok thank u again
anyone know of any good roblox dev discords with good devs/comms?
Does anyone know how to use Allama api
can anyone improve this bs for me cuz i have no idea what i did wrong ```lua
while true do
task.wait(0.1)
local velocity = chassis.AssemblyLinearVelocity
if s then
if velocity.Magnitude > 0 then
force.Force = -velocity.Unit * bp
else
force.Force = Vector3.zero
end
elseif g then
if c <= max then
if c < max/10 then
c += gp * 3
else
c += gp * (1 - (c / max))
end
if c > max then c = max end
end
force.Force = chassis.CFrame.LookVector * c
else
if velocity.Magnitude > 0 then
force.Force = -velocity.Unit * bp
else
force.Force = Vector3.zero
end
end
if c > 0 and not s then
c = c - (gp / 2)
end
local angularY = 0
if a then
angularY = 5
elseif d then
angularY = -5
end
print(c .. " v: ", velocity.Magnitude .. " f " .. force.Force.Magnitude)
end
someone help pls
do you guys know any place where i can practice, find learning objectives and do stuff like homework in specific levels of the language?????????
where can i find what i said in there?
in your head
in your imagination
everybody sending that one but there are just docs and videos
your mind
??????
no im telling you to download studio
and code
bro you think i don't have studio
first of all your variables suck ass
unreadable code almost
variable namings*
i just started getting into the wally rabbit hole and im wondering what packages are most used and for what
Become urself
Packages ain't that good
I don't use them rarely
Like very rarely
And specific
ill still look into it, thanks for the opinion
ikr gl figuring it out
can somoen help me
sir how do you do that
im making a solo project, and the camera postition doesnt work, can someone help me?
hi coders
Hello guys, I'm wondering how to make notifcation like this with button
Cuz u didn’t get the gui properly
I can make it for u if u want for by us
Bobux
hey does enyone know why this dosent load my animations corectly? local module = {}
module.loadedAnimations = {}
function module.loadAnims(animator: Animator, folder: Folder)
for _, anim in folder:GetDescendants() do
if anim:IsA("Animation") then
local fullName = anim:GetFullName()
fullName = fullName:split("ReplicatedStorage.Assets.Animations.")[2]
module.loadedAnimations[fullName] = animator:LoadAnimation(anim)
end
end
end
return module
god i hate my life i was trying find a bum ass error for 2 FUCKING HOURS and then i just forgot to add ONE FUCKING ATTRIBUTE TO THE PART
1 using getfullname split messes up the keys so your dictionary does not match what you think
2 not calling play after loadanimation so the animation never runs
3 the animation asset is not owned or uploaded correctly so roblox will not let it play
there are a few other things but that should fix it
this is just 1 code i have someotrhers witch run the animation and print the length the issue is that its printing the length at 0 beacuse the animations dont load properly
i can show you the other codes if that would help
sure
local coreFolder = character.Core
local animationsModule = require(coreFolder.Animations).loadedAnimations
animationsModule["Fist.Swings.L1"]:Play()
print(animationsModule["Fist.Swings.L1"].Length)
your play code is fine the real issue is the key names
your loader saves them with weird fullname strings but you try to play them with shorter names
they dont match so it fails
u could fix it by using anim.Name for keys instead of GetFullName()
im not really a coder so i dont quite understand what anim.Name does but it sounds like its a 1 line fix could you show it corrected?
i can write the code for u if u want
YEA sure Id love that
alr wdym mean by full code? like youl re write the whole thing?
watch brawl devs entire beginners guide and then his advanced guide then go into roblox studios come up with ideas, read open source code and practice
Guys, I have a quick question. Do the attributes work on phones?
i mean GetAttributeChangedSignal()
woooooooooooooooooooooooooooooooooow
% pay?
ive been waiting for this opportunity my entire life
why would they not 💀
idk they just dont
maybe yo code is just buttcheeks
i have walkSpeed attribute and GetAttributeChangedSignal() works only for pc
its just
humanoid:GetAttributeChangedSignal("WalkSpeed"):Connect(function()
print("Changed")
if humanoid.WalkSpeed <= 0 then return end
if isSprinting then
humanoid.WalkSpeed = humanoid:GetAttribute("SprintSpeed")* character.Slowing.Value
else
humanoid.WalkSpeed = humanoid:GetAttribute("WalkSpeed")* character.Slowing.Value
end
end)
so it doesnt print changed right
its just cant get changed signal for phones
well maybe you fail to change the attribute
same thing work on pc
...
you probably screwed inputs
in fact you most definitely did
how did I manage to break attributes on phones without even making controls for phones
okay, how does sprint activate
what
its like ability
and work like
humanoid:SetAttribute("WalkSpeed",18)
🎋
I've been trying to learn scripting for three wasted years, should I start watching BrawlDev ?
BrawlDev is the answer of hundreds of peoples I've asked what's the best way to learn scripting
how do i use roproxy to fetch gamepasses a player has made
DMs
Anyone want to join our dev group? We help each other grow, build, and become successful.
what is it supposed to be doing and what is going wrong
can someone tell me alternatives to roproxy to get all of a users gamepasses created cause roproxy is not working
suposed to control the car i fixed it kinda
@lilac crescent
is a baseplate.touched event supposed to use 3% of the server’s activity

whoops
it is apparently
I tried it in 2 separate scripts
Working on water slash for my demon slayer game
looks ok
will need adjusting for the animations and stuff tho
thanks ill steal it and upload it
it has to be seperate until texture
how do people handle gui updates?
besides attributes because you can't use them for everything
Sorry for blowin up code discussiomn
@hoary tundra this is all
downloaded now retreat back to #modeling
no lol, why I would hire someone for that simple task
Dont underestimate how lazy people can get
local ProximityPrompt = script.Parent
local id = 1499641104
local player = game.Players.LocalPlayer
local MarketplaceService = game:GetService("MarketplaceService")
ProximityPrompt.Triggered:Connect(function(player)
MarketplaceService:PromptGamePassPurchase(player,id)
end can someone explain why thsi dont work
whats the problem
i figured it out
ok
posting your game links without context is advertising, don't do it
or spam it in channels
ok sorry
l = game:service("Lighting")
while true do
wait(1)
l:SetMinutesAfterMidnight(l:GetMinutesAfterMidnight()+.3)
end
how many minutes is this day and night cycle?
happens to the best of us 🥀
how do i make an array in LuaU?
just
local arrayname[] = new Arrayname2 = [1 ,2 ,3]?
Read the docs
local t = {1,2,3}
im sowwy 🥺
we are sending you to studio gulag
im used to C# and C++ lua is very, interesting
@fluid quail @cinder basalt dm me
what why
what why
🔥

yes good for you
still a begginer
bad for yoyu
spelt that wrong
couldve been wronger
yall opinions on dis
1 min
local TouchPart = game.Workspace.TouchPart
TouchPart.Touched:Connect(function(otherpart)
local Character = otherpart.Parent
local Player = game.Players:GetPlayerFromCharacter(Character)
if Player then
local Humanoid = Character:FindFirstChild("Humanoid")
if Humanoid then
Humanoid.Health = 0
end
end
end)
and this
game.Players.PlayerAdded:Connect(function(player)
local playerGui = player:WaitForChild("PlayerGui")
local CounterGui = playerGui:WaitForChild("Counter")
local CounterLabel = CounterGui:WaitForChild("Number")
local Counter = 0
local loopvar = 0
local Target = 100
while loopvar < Target do
CounterLabel.Text = Counter
Counter = Counter + 1
loopvar = loopvar + 1
wait(1)
end
end)
and this
game.Players.PlayerAdded:Connect(function(player)
local PlayerGui = player:WaitForChild("PlayerGui")
local GreetingsGui = PlayerGui:WaitForChild("PlayerAddedText")
local GreetingText = GreetingsGui:WaitForChild("Greetings")
GreetingsGui.Enabled = true
GreetingText.Text = player.Name.. " Has Joined The Server!!"
task.wait(6)
GreetingsGui.Enabled = false
end)
What youtuber did u guys start watching to learn scripting
brawldev
Alr I'll check him out
creating a tycoon door/laser door using a touched event to filter would be exhasuting for the server wouldnt it?
anyone who is an advanced scripter dm me i need help
Lua is like the weird cousin of python and C
do not compare lua to my precious little beloved C
cap how is lua related to python in any way
theyre basically the same
but one is slightly more imbred
ur thinking surface lvl
idgaf abt syntax
lua is 100x more lightweight
if games ran on python it would be insanely slow
C sucks
youre really just speaking to speak
c++ is way slower
It’s clear y’all never used it
and C++ is an Extension of C
"are you stupid"
damn i cant send images
rip
look at ur profile virgin
youre purely the definition of a Luautard
Buddy you don’t even know c and ur glazing it
ninja has documentation as his status
Ur just some skid
go outside 😭
Get a job
get a load of this guy
i make mroe money than ur parents dawg
Broke bum stalking me
no ur a larper
cuz C is amazing? if it werent for c c++ wouldnt exist and C++ is perfect
U haven’t used either
like my whole smartroom project is built on C++
you are actually bottom tier human beings lmao documentation as status
U thought Roblox was made in c
youre speaking like you do
cuz it is ?
I’ve used c++ for years that’s how I know it’s shit
Source code leaks prove otherwise
You can also just reverse it and see a billion c++ artifacts
whats so bad about it then
how is it built on c++ but not c
For scripting inside games, Roblox uses Luau, which is a modified version of Lua designed specifically for Roblox.
Engine/Core: C++, some C# for tooling
Studio editor: C++/C#
Game scripting: Luau (Lua derivative)
If you want, I can explain why Roblox switched from Lua to Luau and what differences it brings.```
ChatGPT btw
Horribly unsafe and lacks useful language features
whats your fav language then
Bro using gpt as a source
Take a wild guess
chatgpt is trained with google information
Because the source code is in c++?
The source: chatgpt
Show me proof it’s written in c
Rust
creating a tycoon door/laser door using a touched event to filter would be exhasuting for the server wouldnt it? How would I go about this while also having smooth performance
if its written in c++ its written in C gang
the player/studio program, at least on desktop, is written in C++ (unless something has changed that i'm not aware of). but other platforms are a different story```
-Some Reddit user
C++ is inherited from C
It’s trained on random shit
??
thats a good one, i heard rust is insanely fast and efficient
whats the difference between google and ChatGPT
discord user virgin "sangolemango" thinks he knows what data chatgpt trained on
😂
u dont know basic ML
Google is a search engine and ChatGPT is an llm hope that helps
dont talk 2 me gng
C++ is built off C everything that runs on C can and will run on C++ (plugins etc)
cuz ur a virgin lol
i meant answer wise, google has 1000s of different answers and ChatGPT will pick the most common one
He’s mad he’s broke and gets zero women
you're 12 years old dwelling in your mom's basement calling other people virgins
this is irrelevant btw
i have multiple apps that print MRR
but u got it rust documentaiton bio
ChatGPT makes shit up and his hella out of date
i can tell ur broke bc u have something to prove
Documentation LMAO
This how I know ur stupid
you can literally tell chatgpt you can teleport in real life and it'll probably agree with you
Hd people really are just stupid now
thats true, but it depends on what topic were talking about, if i ask it about something that happened minutes or days ago then ofc it wont know, so itl generate a fake response, but usually stuff thati s heavily documented is pretty acurate
- i have no job and im mad ai is replacing me
lemme translate that
why is this relevant?
#media lets compare apps and saas rq
It wasn’t accurate with Roblox so
we're all kids? and no 14-17 doesnt mean youre an adult youre still a kid
i think youre just projecting
ngl bro has said i have no job so many times
im p sure thats his exact situation
😭
He has no job and no money and no women and nothing of value in his life yet criticizes other people
this is so off topic it doesn't make sense
Crazy amounts of projection
ikr like ok say it once or twice but he said it so many times
bro u have rust documentation in ur bio im js speaking the truth
your a lsoer gng im giving u critcisim so u dont look stupid
and neither do you?
you are likely a 13 year old boy
“Speaking the truth” “you have rust documentation in your bio”
@random nebula like bro i promise u no one talks u seriously rn im giving u genuine help
Except I do?
suure buddy, ur like 13 no you dont 😭
Help yourself by getting a job
if you were an actual adult you wouldnt be programming in Luau
I program in rust
then why are you here
you're btw, you guys keep messing it up
Ts not a spelling bee
@fluid quail ego him he wont take criticism from anyone else
i dont care if i am? my ego isnt that fragile, so 🤷♂️
post a game
Ironic
right, his ego is so fragile
@random nebula post a game if ur gonna talk shit
im pretty sure my life is alot better than urs
Proof I don’t
For someone you have blocked you keep talking about me a lot
blocking people on discord is lowkey crazy
he also said "if u want to be a rust contributor recommend this" as if he wouldn't fiend at the opprotunity to clain he's a rust contributor
this just reinforces the fact that your ego is hela fragile
i just like not seeing ur messages
Yeah because you know about me
@random nebula u gotta stop being so condescending to people, it just makes people dislike u in any area of life
but ur still a larping doofus
wait u keep mentioning u have money? how much you talking about cuz i got 1001€ in my bank account and i can easily prove it
who can't post a game or repo
and until u stop being a larping doofus
i will continue to talk shit on u
@tired roost has sango "blocked" you're perceiving it wrong lol
Vro I’m not losing anything by people like you not liking me lmao
wasnt even tryna be a dckhead to him he js has rust docuemntation in his bio so i was literally js tryna help bro out
Ur not that important relax
ive worked with huge youtubers like Enardo Xcretion and throat (all over 100k subs on youtube) and i can prove it by showing dms and the game im still working on
change for the better sango
It’s not documentation are you stupid
maybe u can get real friends then
or maybe u want the jecs guy to call ur a loser again
Lowkey: theory...
Holy projection
sango likes being called a skid
how old are you?
which is why he acts like this
you had to steal my comeback?
Bro thinks he invented it
eclipse mentioned you not having friends once, do u know what projection is?
you said it like 50 times thatgs kinda different
soo, how old are you?
@random nebula lowkey i would just drop out of roblox dev communities
if i got called out like this
💔 this is why u have 0 friends 😭
Ur projecting too much
holy
I think ur in love with me
like u keep mentioning being superior, so lets go b4b but with achievements
you have to be ragebaiting atp
sango abuse 💔
but like fr it shouldn't be this hard for u
He's in your head 💆♂️
@random nebula you keep avoiding the question "how old are y ou"
he's a major larper
he wont be able to keep his story straight if he gives a number
so he wont
this shit is so unfunny
same reason he wont post a game or a repo
dude everyone knows what opsec is youre not tuff
You don’t clearly
jecs has shitter performance so trolling is allowed
cuz he can only post snippets of rust assembly and zig
i do? but ok
zig is a useless puppygirl language
yo CHAT HE KNOWS OPSEC 😮 😮 😮 😮 😮 😮 😮
yo CHAT HE KNOWS OPSEC 😮 😮 😮 😮 😮 😮 😮
yo CHAT HE KNOWS OPSEC 😮 😮 😮 😮 😮 😮 😮
i bet he uses linux
yo CHAT HE KNOWS OPSEC 😮 😮 😮 😮 😮 😮 😮
Ban him for spamming
Bun is made in zig btw
who the fuck actually uses bun
Idk
who uses bun
we gotta ban u so u can re evaulate ur life choices and time my boy
wouldnt that be to extreme?
same guy getting mad that i called people virgins
🥷
bro fr just said "useless overhyped dog shit was made in useless language"
like bro we know that's what rust is for!!
The most web dev I did was use a markdown compiler and write some css
we ARE all kids in this chat, so we ALL are virgins
i bet you don't even know how to center a div
speak for me too
https://blog.cloudflare.com/20-percent-internet-upgrade/ the world runs on rust btw
im 17 gng not a kid
w cap
U are
you dodge alot of my questions
"how old are you"
"what achievements do you have, that give you this pride"
17 calling people virgins
u dont change the world. you larp about rust and don't write code
Proof?
u are tho, once you are 18 you become a legal adult
rust would be a cooler language if u didnt know it
ur fr the epitome of why people dislike rust
post a repo
U larp as a good programmer
when was this
Bro forgot private repos are a thing
still dodging my questions btw
at least i am a programmer
post a game or a repo
Don’t have to
everyone post your repos
I already did tho so you can find it somewhere
don't have any*
bruh this guy is just ragebating
Proof
ig im a senior in HS so im turning 18 soon
W ragebaiter
ask ts guy to post his and its over
anyways guys im going back to working on ui 
anytime sango tries to talk down to u just remember he's a larping skid who can't back up ANYTHING he says.
bro why we still giving sangole mango attention he is not changing
im the only one asking good questions, and youre dodging them, you are dodging them because we both know you dont have any actual achivements, and you are 15
ty bro do not give this loser any more attention pls
You say ur a good programmer and u can’t back it up btw
U got exposed like 20 times
hey
i bet he watched 1 rust tutorial and now he consideres himself an expert
^^ dont respond let him stay mad
Nobody falling for ur shit lmao
figleblast exists
guys no good programmer will call themselves a good programmer
i find it very fun to call out sango's bullshit
Have you seen the code
oh shet they jumping sango
so just @ me anytime he's being a goober
it works
again dodging my questions
doesnt matter
Anyone can make code that works buddy
stop feeding him attention
It doesn’t work well tho
ask him to make the game public and its not scaling, ts is fried
he'll learn to be normal if people don't engage
im doing charity
god bless
hes obviously deprived
nah i thought HD was downbad but seems theres some chill ppl here
ive seen this alot of times, children who get neglected lash out to get attention
Linux torvalds
oh shiet the skids are having skid conciousness and rebelling against the elites
you gonna take that back in 2-3 days
only saw sangole mango chatting so i thought this place was loser central icl
i lowkey find it hella funny that sango's kept out of #code-help after i called him out 😭
Hd became a paster server ts is crazy
he respect the big dog
they dont care that its negative attention, they crave all types of attention
🐺
if i hear one more person talk about linux bro i swear to god
HD fell off anyways
sangolemango
i like it here
im guessing hes just a ragebaiter
top 10 psychoanalysis
ts guy just figured everyone out
It was better in the past
Can’t believe rodevs people are smarter than hd people now
i guessed that much
maybe
i mean if u want a personality analysis he's just a larper who talks down to people exclusively
and doesn't actually know anything beyond language trivia
Ironic coming from you
ts very sad
wazehell
yo dont chat 2 him bro
70k is insane
i really only talk down to ai people and people who start off being mean
(like you)
i do my best to be nice and help most people
Free mod call
if i got banned from this serv u would have 2 pay me to care
nothing wrong with ai people
ok v_igil
mr tufferson
there isn't
i just don't like it when people use ai and then try to outsource debugging
when it doesn't work
they’re the real goats cause they keep the bar low
they tend to be very persistent and not very nice
🙏
is rojo + cursor still DL or no
vibecoding without the coding
on god
i think you need to get meta ai glasses and code that way
i just use rojo and roblox-ts for most stuff now
Dont forget your waits 😔
when was the last time code help had a genuine help request and not 'fix chatgpt code'
ion use ai sh
eclispe are u advanced with http service
DMS rq
people dont even ask whats wrong or why they just want you to paste them correct code
uh pls dont dm me
😭
just ask me what the question is
What does "advanced with https service" even mean
for chatbot games that r trending on roblox
can u connect http service to a deployed backend which is connected to chatgpt
or do they js spam if else algos
Lil bro gon get rate limited 💔
- it costs money to make api calls
just go dm the makers of that game and then like social climb your way into their friend circle and steal their source code
ezzzz
kids dont care abt recent models bru
I told him to buy a nasa computer and host his own llm
3.5 turbo is hella cheap
yea u can just run a freemium model
that way ur guaranteed at least 50% profit margins
or atleast TRY the randomised sentences approach vigil
I mean if it can pay itself back from the game ig its worth it
brain rot the sentences and kids will love you
randomized sentence 😭
Just hire indians to type responses
they ask it a question and they get skinidi tung tung sahur back and ur rich
Its cheaper in long run
😭
local Game = script.Parent
local DisplayText = Instance.new("BillboardGui")
DisplayText.Size = UDim2.new(0, 50, 0, 25)
DisplayText.StudsOffset = Vector3.new(0, 5, 0)
DisplayText.AlwaysOnTop = false
DisplayText.Parent = Game
DisplayText.MaxDistance = 125
local Name = Instance.new("TextLabel")
Name.Name = "Name"
Name.Font = Enum.Font.LuckiestGuy
Name.Size = UDim2.new(1, 0, 1, 0)
Name.Text = Game:GetAttribute("Name")
Name.BackgroundTransparency = 1
Name.TextColor3 = Color3.new(1, 1, 1)
Name.TextStrokeTransparency = 0.5
Name.TextStrokeColor3 = Color3.new(0, 0, 0)
Name.TextSize = 12
Name.Parent = DisplayText```
😭 im dying
is there a way to make it so the text wont scale down when im close to it?
ain’t no way
like i want the size to always remain the same, no matter the Distance
yes the code is shit cuz this is my 2nd time ive used lua
this is a 2 minute google search
yes but i like it when its a little bit more
personal
i heard character ai got some new chat bots
delete these gng lets go lab
literally ez asf
I made one in under 15 minutes (ok not 15 minutes but under 2 hours)
theres like 100 free LLMs that provide free api calls (altho at a limited rate)
i wonder how creativue u can get with this lowk
I mean you can just set it up in a way
if u run out with one api u just switch to the other
everyone is doing the same copy and paste like ai girlfriend
rinse n repeat
ease
i cant find SHIT about this
all the info i get either doesnt work, breaks my code, or does nothing
have u tried youtube shorts
im going to poop on you
i mean lua is built with c in mind tho
why is c and c++ yucky in your point of view
from what ive been taught, C and C++ are very efficient perfomance wise, but the learning curve is big and theres plenty of things that can fuck the program up if ur not careful
like memory leaks
not at all
python and lua are not similar in any way, not syntax nor functionality
C++
C++ is not compatible with C.
also no, c++ is a seperate language, seperate codebase (for most compilers).
they understand https requests and how to use web api's ig
hello i need some assistance. i am trying to make a slide. slide as in the movement not the thing u sit and go down on 😅.
my issue is i use bodyvelocity however doing so if lets say i slide off a ledge the player will keep sliding while hovering at the same level since there is no -y value but if i do add a -y value to always bring the player down when you slide normally on the ground the players starts to glitch/jitter since there is a constant force pushing you down what do i do
what
how did you screw that up
;-;
anyone?
guys did they disable third party sales
im not getting a percentage of my sales in game
anyone know how i would make pathfinding for enemy group formations? Right now i have a leader pathfinding whenever i reach a waypoint with members moving to an offset every frame, but its really inefficient. Is there any way to make it faster?
does anyone use vscode?
any pro scripters who have knowlege with scaling
anyone got any knowlege or know a dev forum which discusses how fisch like backpacks are scaled, bc the height of the main frame changes which aint something that scale or offset does
It’s probably not Scale/Offset causing that, check if UIAspectRatioConstraint or AutomaticSize is on the frame. Those will change the height even if your scaling looks right.
its fisch ui i dont got access to it gng
its probably just set size on one axis and scale on another
i checked it for ya
they have a separate ui for mobile
same thing could be achieved through a combination of scale and offset
Bro is coding this hard? 
dont use ai to learn coding
you learn how to code first then you can make AI to tedious stuff with very specific instructions so it doesnt fuck it up
Learning coding from BrawlDev it's easy bcz he explains everything in simple language
then you realize you gotta learn actual stuff after that simple syntax explanation
i can already tell you gonna be doomed after the tutorials 💀
claude the philosopher
guys has anyone used codex for roblox
@pine solstice
Is brawldev the goat
ai for coding is diabolical
as if you werent using ai to vibe code anyway
this why u still skidded
im just using it to fix bugs
even more skidded
so
ai is incapable of solving logical bugs especially in a large project
unless u plan on feeding ur whole codebase to ai even after which it will still pump out inaccuracies
so assuming ur bugs are just attempt to index nil or argument #1 is missing
sure
i am
major skid
so
u aint baiting nobody but urself with that one
whats the use of making a game if ur a skid in the end
Yea after the tutorial what should I do?
Maybe use ChatGPT ??
if u wanna learn literally just go make something
then you will start asking questiong like how do I do this or how do I do that
thats where u learn
ok but what if u learn the wrong thing then u just wasted time and u have to spend time relearning the correct way
u can never learn the wrong thing
if you reach your desired result who cares
thats the goal at the end of the day really
don't be afraid fr just go do and make whatever u want and evetually u will get better
kai cenat is about to hit 1,000,000 subs on twitch 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥
how do people handle gui updates, do you use a playerdata cache on the client and if so how do you save the deltas (via remote event) and then update the UI?
elaborate by what u mean gui updates
for example if the player obtained a quest it saves to an active table in my data template then to actually show the quest via gui to the client is what im stuck on
remote event
just send the table or the specific stuff it needs in the event
to the player cache then i fire a signal and there would be an listener to update the gui
can anyone help me fix my car dealership ill pay for ur help
im discussing code bum
no ur not ur trying to hire a scrioter
bum who u callign bum
no im not id rather not pay but if someone wants money then i will
then go to #spoonfeedmescriptsplssss
hahahaha 😑
bro just in this chat for no reason
no you
how would i go about making a moveset system like forsaken
you would make a movement system like forsaken
how
can anybody help me w this
no
just a moveset system when you load into a round
i think uhhh i think umm the forsaken movement
I think uhhhh I don’t know what forsaken is
its ok me too
i have a car dealership that only one of the cars was buyable and ive been trying to use chatgpt to fix the others but now none of the are working can anyone help ill pay
You’d just make a library of information
who wants a scripter for free
sparka this is the code discussion channel
i know bro do u rly have nothing better to do other than sit in this channel and yap without helping anyone
and is there no better form of entertainment for u
yea i aint spoonfeeding u sparka
so ungrateful
#scripter-hirable pay them
not even replying to u anymore bruh
so basically would i just make like some info about them and store it in repstorage or smthin likethat
bruh why what i do?
It would be like
local module = {
Character1 = {
[“Name”] = “Cool Guy”,
[“Ability1”] = 1,
[“CharacterId”] = 1
}
}
return module
Now I wrote that on my phone
So don’t just go copy and paste it
k
thats crazy
Probably a syntax error in there
Yea youd want it to be in replicated storage
and then basically when the round starts i just get the info and make like the moves show on the gui and stuff
Just a module script that list every character information
what about like functioning moves
Then of course you gotta create separate systems to actually use the information
would i t be like
Well you’d wanna make a framework
So that would be, everytime a key is pressed check if it’s a key that can trigger an ability
Assuming you won’t have custom keybinds
You’d do something like
well most moves will either have q e or r as their keybinds
but idk if ill have custom keybinsd
Alright then you’d do this
-
Detect when a key is pressed
-
Assuming “Skill1” will always be binded to the R Key check if that key pressed was R
-
If it was get the ID of Skill1 from the corresponding character information
-
Fire to your skill framework. Your skill framework should be a master module with all skill modules as children under it, it should then fire to corresponding skill module, so InputDetection -> MasterSkills - > Skill1
Super general overview
But you should get the idea
alright
yooo im tryna build a portfolio so i can start doing small commissions is there anything i can do for anyone for some feedback n maybe a review for free
i am making a pixel display using rich text. this code with be the basis/ demo for the project. any suggestions on improving the code
you do local text = '<font color="'..color ..'">'.. txt ..'</font>' and have other concatenation going on, would it not be better to just directly insert it all into the table
also you can almost definietly reuse t between renders so it doesn't have to recreate & rescale the table
buffers are raw bytes
arnt buffers are slower than tables?
faster then string concatnation
it should
oh yeah i dont really need the txt variable
i though of that but the code compresses text next to each other to save space so i would have to make a new table to track both the colors and how many where assigned. how should i go about that?
idk what you mean by "compresses text next to each other to save space" here
but if buffers do support unicode like hao said you want to use a buffer
you can also just pre assign the headers
and just directly write the hex value
as a number
if a character next to the current character is the same color it will put them both in the same <font> brackets saving 29 bytes. This also repeats until a new color is shown or there are no more pixels
is your usecase of this system a learning experience/passion project or is it for an actual game
if it's for an actual game i would suggest using either editable images or canvas draw or some ui gradient based system
i loved using Canvas draw V3.4.1 witch used gradient based graphics and i don't like how roblox is blocking use of their API under giving your id and face. this project will hopefully be a faster display for that version of canvas draw
if your goal really is performance idk if you'll hit it using string manip
using buffers would be the fastest overall
don't optimise for both memory and runtime
the horizontal greedy meshing type thing you have probably severely bottlenecks you
*maybe not with your current system but it would bottleneck you if you swapped to buffers, which would be a vast speedup
i kinda did with my demo code. the test with random colors was slower by around 0.002-1 but tests with two colors had my program faster by around 0.002. the tests took everything into account like color map creation etc so take this with a grain of salt but this is proof it might have potential
you random colour function looked like it would be a perf bottleneck on its own
oh nvm didn't read the last half
but buffers would be much faster
the most expensive operation would probably be the string concatantion here
with buffers the only writing you would need is the hex codes
you would just write a hexcode for each colour, and increment your offset by a static amount
yeah
yeah so i am planning on tracking color map creation, string creation, strong concat and text update. same with canvas draw
yeah strings are pretty expensive when it comes to memory. i want to try and cache it
just use a buffer 😭 , you'll only have to write color codes
static int buffer_tostring(lua_State* L)
{
size_t len = 0;
void* data = luaL_checkbuffer(L, 1, &len);
lua_pushlstring(L, (char*)data, len);
return 1;
}
and you can have a fast random modify
Why in the flying mother fuck is this not changing the string value's value?
local slotchosen = nil
for i,v in pairs(player.PlrStats.Inventory:GetDescendants()) do
if v:IsA("StringValue") and v.Value == "" or v.Value == nil then
slotchosen = v.Name
print(slotchosen)
break
end
end
player.PlrStats.Inventory:FindFirstChild(slotchosen).Value = char.Name```
i will soon, i have used them before
add prints
it prints the slotchosen
it just doesnt seem to change the value
the lines below it work
the lines below is just tweening
print the value after setting it
alright
and how are you checking if it changed
explorer
theres a folder under the player
I just check those string values
and also the fact that all the characters are going to the next avaliable slot
stacking up
for example slot 2 is empty
they all go to slot 2
never slot 3 and they just all stack
Hao! Check DMs
how would you pre assign them so that you can add the hex to it?
pre compute them
I got questions about optimisation, how much should I manage in server/client
try printing it after you change it a few seconds later
after that you just need to step by the headers
user input stuff should all be client sided really
there are more grey areas like hitboxes where people have different opinions
Not sure if I put vfx in the server or client, vfx can be tolling for mobile users if on client
Some devices can't handle it
anybody good at types?
vfx must be on the client
when you spawn models or particles the replication cost is crazy if it's not set up to do it all on the client
and client sided vfx let you have accessibility/perf settings to turn it down/off
So should animations right?
if it's to do with an individual client or entirely visual it should be client sided
Final question if you don't mind, npcs
Like models etc
Buildings
Parts etc
I'm facing an issue where I have:
--ModuleA
local typeB = require("PathToB")
export type A = {
value: typeB.B;
}
return nil
--ModuleB
local typeA = require("PathToA")
export type B = {
value: typeA.A;
}
return nil
How do I make the two modules not be dependant on eachother
I don't want to move all my custom types into one module as it would eventually be thousands of lines
in most circumstances you won't really be able to optimise model loading more than roblox
most if it is first time loading though, which often isn't an issue
any help is appreciated
for NPCs, if you have loads, most people do implement custom replication
do you use studio or vscode
for vscode i know some people write custom global type definition files
Alright ty for the help
for studio some people do an extra Types module or something
move those types into a shared type module
It’s horribly unsafe and the compiler is useless in helping you catch UB
i just keep all types in 1 module
It’s also difficult to do some performance patterns cuz the language sucks
twk a segfault blew up a spaceship once
Wdym
The values don't change/update
In the player folder
Rust exists and it’s better and can be faster than c++ (because it can abuse more ub if needed), much safer and can support those extra patterns
did you print if the value changed when you set it
Like under the line or you mean like a propertychangedsignal
I don't think it would work
The string value never gets changed
Even tho it's in clear day in the script that it should
never know if its being modified when it changed
It's confusing
Sorry lemme get on the pc rq
Ok
Lemme add a event
wait
@hasty mesa
if I sent a character from a server to a module
would that value save
wait noit does save
hence the tweening
my brain is fried
server to what module
modules don't replicate automaticlly
you would have to use remote events for it to replicate module changes
hm
so I added a GetPropertyChangedSignal event
and it did print something
it said the value was modified
but it doesnt seem to like actually change the stringvalue's value
wtf 😭
player.PlrStats.Inventory.Slot2:GetPropertyChangedSignal("Value") do
print("Slot 2 value was changed")
end```
here's the code I used
I'm deadass so confused
you ned to connect it
oh
wait wdym
--changed fuc
value.Value = x
so you wanted something like this right?
print("Slot 2 value was changed".."Modification: "..change)
end)```
yeah
10k lines long
yeah it doesnt print anything
its above
the value
can you print the current value
and then print the value you are setting
print the value you are setting then
it says Slot2
for i,v in pairs(player.PlrStats.Inventory:GetDescendants()) do
if v:IsA("StringValue") and v.Value == "" or v.Value == nil then
slotchosen = v.Name
print(slotchosen)
break
end
end
player.PlrStats.Inventory:FindFirstChild(slotchosen).Value = char.Name
player.PlrStats.Inventory.Slot2:GetPropertyChangedSignal("Value"):Connect(function(change)
print("Slot 2 value was changed".."Modification: "..change)
end)```
local slotchosen = nil
for i,v in pairs(player.PlrStats.Inventory:GetDescendants()) do
if v:IsA("StringValue") and v.Value == "" or v.Value == nil then
slotchosen = v.Name
print(slotchosen)
break
end
end
player.PlrStats.Inventory:FindFirstChild(slotchosen).Value = char.Name
print(char.Name)
player.PlrStats.Inventory:FindFirstChild(slotchosen):GetPropertyChangedSignal("Value"):Connect(function(change)
print("Slot 2 value was changed".."Modification: "..change)
end)
player.PlrStats.Inventory.Slot2:GetPropertyChangedSignal("Value"):Connect(function(change)
print("Slot 2 value was changed".."Modification: "..change)
end)
can you tell me what this prints
or send the output
my type file is only 7183 lines so far
and that includes comment docs
char.Name is empty?
oh wait
im deadass stupid
😭
I changed the names to " " to hide the rig name
no wonder dude
I'm guessing thats the issue 💔
also having an object A have a value in it of the type object B and object B having a value in it of the type object A would cause infinite table circulation, how would you fix this?
is there any other way to hide the rig's name instead of manually just making it blank
the type system is smart enough
should be a humanoid
property
anyways ty for the help
huh
type system supports recursion
where types depend on other types which depend on it
is recursion necessarily bad
no
Sorry 1 more question @hasty mesa 😭 , would it be better for the server if I destroyed objects or put them in a bin folder and used clearallchildren()
which would be better for performance/memory
well clear all children might be slightly faster
i've never really tested this
would be something you can check
since when was destroy deprecated 😂
hm?
apparently it's deprecated
ClearAllChildren is slower from my basic test
Destroy would be better
Alright ty
What language is this?
.
buying good roblox games dm
I thought some python or java
does anyone know how to make a e to sit 0/2 system?
use proximity prompts
ye but idk how to check how many players are sitten
use tables
int value
and how do i do that?
when a player sits add him to table
it code discussion not the we will write code for you
didnt ask you to
i literally gave you hint how to do it
like no one asked you anything
hey bro we dont gotta help u
bro acts like he is boss here
BRO WHO ARE YOU
im the best
NO ONE KNOWS YOU
