#code-discussion

1 messages · Page 191 of 1

deft coral
#

"whats up" can mean asking for someone to elaborate, or to speak more on what they need

deft coral
#

A parameter is a passed set of data through a function

sour vine
#

thats not an excuse lil bro theres something called education

tacit marten
deft coral
#

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.

tacit marten
#

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?```
deft coral
#

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"
deft coral
tacit marten
#

hmm

#

yes that makes sense

deft coral
#

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

tacit marten
#

i will translate ALL of this to understand wait

deft coral
#

Okie

#

Portugues?

tacit marten
#

yes yes

#

pt br

deft coral
deft coral
# tacit marten yes

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.

tacit marten
#

So is that why I need to use return?
To "return" the text and then use the parameter afterward?

deft coral
#

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

deft coral
#

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

tacit marten
#

its good dw

deft coral
#

Does that make sense

tacit marten
#

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

deft coral
#

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

tacit marten
#

ye return a text

deft coral
#

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

tacit marten
#

let me create a code now with parameters

deft coral
#

Okay

tacit marten
#
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

tacit marten
#
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

deft coral
#

If you have any other questions feel free to tag me

tacit marten
#

ok thank u again

whole idol
#

anyone know of any good roblox dev discords with good devs/comms?

hearty knoll
#

Does anyone know how to use Allama api

young yoke
#

its not classed appropriatly

#

you dont need to if you dont wanna

autumn vale
#

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

limber canyon
#

someone help pls

unreal jacinth
#

do you guys know any place where i can practice, find learning objectives and do stuff like homework in specific levels of the language?????????

cinder basalt
unreal jacinth
cinder basalt
#

in your imagination

unreal jacinth
#

everybody sending that one but there are just docs and videos

cinder basalt
#

your mind

unreal jacinth
#

??????

cinder basalt
#

and code

unreal jacinth
#

bro you think i don't have studio

drifting iron
#

unreadable code almost

#

variable namings*

fading plank
#

i just started getting into the wally rabbit hole and im wondering what packages are most used and for what

rapid eagle
#

Packages ain't that good

#

I don't use them rarely

#

Like very rarely

#

And specific

fading plank
#

ill still look into it, thanks for the opinion

autumn vale
elder sparrow
#

can somoen help me

elder sparrow
#

im making a solo project, and the camera postition doesnt work, can someone help me?

tribal anchor
#

hi coders

potent maple
#

Hello guys, I'm wondering how to make notifcation like this with button

static forum
static forum
#

Bobux

lethal portal
#

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

simple hedge
#

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

steep vortex
#

there are a few other things but that should fix it

lethal portal
lethal portal
steep vortex
#

sure

lethal portal
#

local coreFolder = character.Core
local animationsModule = require(coreFolder.Animations).loadedAnimations

animationsModule["Fist.Swings.L1"]:Play()
print(animationsModule["Fist.Swings.L1"].Length)
steep vortex
#

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()

lethal portal
steep vortex
#

i can write the code for u if u want

lethal portal
#

YEA sure Id love that

steep vortex
#

give me like 10

#

im bored so thought id help sm1

#

il send it in dms

lethal portal
wheat phoenix
nova pecan
#

Guys, I have a quick question. Do the attributes work on phones?

#

i mean GetAttributeChangedSignal()

cinder basalt
#

woooooooooooooooooooooooooooooooooow

#

% pay?

#

ive been waiting for this opportunity my entire life

cinder basalt
nova pecan
#

idk they just dont

cinder basalt
nova pecan
#

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)

cinder basalt
nova pecan
#

its just cant get changed signal for phones

cinder basalt
#

well maybe you fail to change the attribute

nova pecan
#

same thing work on pc

cinder basalt
#

you probably screwed inputs

#

in fact you most definitely did

nova pecan
#

how did I manage to break attributes on phones without even making controls for phonespraysob

cinder basalt
tacit marten
nova pecan
iron stump
#

Ahh reply

nova pecan
#

and work like
humanoid:SetAttribute("WalkSpeed",18)

cinder basalt
#

what activates it

tacit marten
cinder basalt
#

doing what

#

pressing what

nova pecan
#

e

#

or button

#

on screen

#

Weird shit

jade swift
#

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

gilded stag
#

how do i use roproxy to fetch gamepasses a player has made

west plover
#

Anyone want to join our dev group? We help each other grow, build, and become successful.

gusty schooner
gilded stag
#

can someone tell me alternatives to roproxy to get all of a users gamepasses created cause roproxy is not working

autumn vale
pine solstice
#

@lilac crescent

dense rapids
#

is a baseplate.touched event supposed to use 3% of the server’s activity

dense rapids
#

it is apparently

#

I tried it in 2 separate scripts

zenith ravine
young yoke
#

will need adjusting for the animations and stuff tho

mighty star
#

thanks ill steal it and upload it

buoyant rover
#

it has to be seperate until texture

full anvil
#

how do people handle gui updates?
besides attributes because you can't use them for everything

buoyant rover
#

@hoary tundra this is all

hoary tundra
potent maple
bright lantern
#

Dont underestimate how lazy people can get

round ocean
#

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

round ocean
dusky pendant
brave cairn
#

posting your game links without context is advertising, don't do it

#

or spam it in channels

ashen mirage
#

ok sorry

wheat tiger
#

l = game:service("Lighting")
while true do
wait(1)
l:SetMinutesAfterMidnight(l:GetMinutesAfterMidnight()+.3)
end
how many minutes is this day and night cycle?

stable verge
fluid quail
#

how do i make an array in LuaU?

#

just
local arrayname[] = new Arrayname2 = [1 ,2 ,3]?

proud idol
fluid quail
cinder basalt
fluid quail
elder sparrow
#

@fluid quail @cinder basalt dm me

cinder basalt
fluid quail
cinder basalt
floral lily
#

guys

#

guys

#

learning how to script

cinder basalt
cinder basalt
floral lily
#

still a begginer

cinder basalt
floral lily
#

spelt that wrong

cinder basalt
floral lily
#

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)

dusty pasture
#

What youtuber did u guys start watching to learn scripting

floral lily
#

brawldev

dusty pasture
#

Alr I'll check him out

sly plover
#

creating a tycoon door/laser door using a touched event to filter would be exhasuting for the server wouldnt it?

sullen grotto
#

anyone who is an advanced scripter dm me i need help

proud idol
fluid quail
sullen grotto
fluid quail
#

but one is slightly more imbred

sullen grotto
#

idgaf abt syntax

#

lua is 100x more lightweight

#

if games ran on python it would be insanely slow

random nebula
sullen grotto
#

damn hidden devs is rly just straight larpers

#

roblox is literally built on C

fluid quail
random nebula
#

No it’s not

#

It’s built on c++

#

And c still sucks

#

So does c++

sullen grotto
random nebula
#

It’s clear y’all never used it

random nebula
#

Where is bro getting his info from

fluid quail
#

and C++ is an Extension of C

sullen grotto
#

but im p sure primarily C

random nebula
#

The engine is written in c++ are you stupid

#

Even luau is c++

sullen grotto
#

damn i cant send images

#

rip

#

look at ur profile virgin

fluid quail
random nebula
#

Buddy you don’t even know c and ur glazing it

sullen grotto
#

ninja has documentation as his status

random nebula
#

Ur just some skid

sullen grotto
#

go outside 😭

random nebula
#

Get a job

fluid quail
sullen grotto
random nebula
#

Broke bum stalking me

sullen grotto
fluid quail
random nebula
fluid quail
#

like my whole smartroom project is built on C++

sullen grotto
#

you are actually bottom tier human beings lmao documentation as status

random nebula
fluid quail
sullen grotto
random nebula
random nebula
#

You can also just reverse it and see a billion c++ artifacts

fluid quail
sullen grotto
fluid quail
#

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
random nebula
fluid quail
random nebula
fluid quail
fluid quail
#

python

random nebula
random nebula
#

Show me proof it’s written in c

random nebula
sly plover
#

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

sullen grotto
#

if its written in c++ its written in C gang

fluid quail
#
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
sullen grotto
#

C++ is inherited from C

random nebula
random nebula
fluid quail
fluid quail
sullen grotto
#

😂

#

u dont know basic ML

random nebula
sullen grotto
#

dont talk 2 me gng

fluid quail
# random nebula ??

C++ is built off C everything that runs on C can and will run on C++ (plugins etc)

lean ocean
#

people who call other people virgins are the lowest of the low

#

look at yourself

sullen grotto
fluid quail
random nebula
#

He’s mad he’s broke and gets zero women

lean ocean
#

you're 12 years old dwelling in your mom's basement calling other people virgins

random nebula
#

And is beyond stupid

#

Don’t bother lmao

fluid quail
sullen grotto
#

but u got it rust documentaiton bio

random nebula
sullen grotto
#

i can tell ur broke bc u have something to prove

random nebula
#

This how I know ur stupid

lean ocean
#

you can literally tell chatgpt you can teleport in real life and it'll probably agree with you

random nebula
#

Hd people really are just stupid now

fluid quail
sullen grotto
#

lemme translate that

random nebula
#

U have no job and ur broke

#

Pick a struggle

fluid quail
sullen grotto
random nebula
fluid quail
#

we're all kids? and no 14-17 doesnt mean youre an adult youre still a kid

fluid quail
sullen grotto
#

im p sure thats his exact situation

#

😭

random nebula
#

He has no job and no money and no women and nothing of value in his life yet criticizes other people

lean ocean
random nebula
#

Crazy amounts of projection

fluid quail
sullen grotto
#

your a lsoer gng im giving u critcisim so u dont look stupid

fluid quail
#

you are likely a 13 year old boy

random nebula
#

“Speaking the truth” “you have rust documentation in your bio”

sullen grotto
#

@random nebula like bro i promise u no one talks u seriously rn im giving u genuine help

random nebula
fluid quail
random nebula
fluid quail
#

if you were an actual adult you wouldnt be programming in Luau

random nebula
#

I program in rust

fluid quail
#

then why are you here

random nebula
#

Because I also do Roblox dev?

#

Ur not very smart are you buddy

fluid quail
random nebula
#

Ts not a spelling bee

sullen grotto
#

@fluid quail ego him he wont take criticism from anyone else

fluid quail
idle musk
random nebula
#

Ironic

fluid quail
tired roost
#

@random nebula post a game if ur gonna talk shit

fluid quail
tired roost
#

post a game or post a repo

#

oh wait u dont have any

#

💔

random nebula
#

Proof I don’t

sullen grotto
#

no git hub connected but programs in rust

#

😭

random nebula
#

For someone you have blocked you keep talking about me a lot

fluid quail
tired roost
fluid quail
#

this just reinforces the fact that your ego is hela fragile

tired roost
random nebula
idle musk
#

@random nebula u gotta stop being so condescending to people, it just makes people dislike u in any area of life

tired roost
#

but ur still a larping doofus

fluid quail
#

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

tired roost
#

who can't post a game or repo

#

and until u stop being a larping doofus

#

i will continue to talk shit on u

lean ocean
random nebula
sullen grotto
random nebula
#

Ur not that important relax

fluid quail
tired roost
#

change for the better sango

random nebula
tired roost
#

maybe u can get real friends then

#

or maybe u want the jecs guy to call ur a loser again

#

Lowkey: theory...

random nebula
#

Holy projection

tired roost
#

sango likes being called a skid

fluid quail
tired roost
#

which is why he acts like this

fluid quail
random nebula
fluid quail
#

you said it like 50 times thatgs kinda different

fluid quail
tired roost
#

@random nebula lowkey i would just drop out of roblox dev communities

#

if i got called out like this

random nebula
#

I was right at the end

#

As always 🥱

tired roost
#

💔 this is why u have 0 friends 😭

fluid quail
#

what have you done in life?

random nebula
idle musk
random nebula
#

I think ur in love with me

fluid quail
#

like u keep mentioning being superior, so lets go b4b but with achievements

fluid quail
tired roost
#

i know ur ass at logic

idle musk
#

sango abuse 💔

tired roost
#

but like fr it shouldn't be this hard for u

lean ocean
#

He's in your head 💆‍♂️

tired roost
random nebula
#

Bro has me on blocked but keeps opening my messages

#

That’s crazy LMAO

fluid quail
#

@random nebula you keep avoiding the question "how old are y ou"

tired roost
#

he wont be able to keep his story straight if he gives a number

#

so he wont

tired roost
#

same reason he wont post a game or a repo

fluid quail
random nebula
#

You don’t clearly

placid matrix
idle musk
fluid quail
tired roost
sullen grotto
#

yo CHAT HE KNOWS OPSEC 😮 😮 😮 😮 😮 😮 😮

#

yo CHAT HE KNOWS OPSEC 😮 😮 😮 😮 😮 😮 😮

#

yo CHAT HE KNOWS OPSEC 😮 😮 😮 😮 😮 😮 😮

fluid quail
#

i bet he uses linux

sullen grotto
#

yo CHAT HE KNOWS OPSEC 😮 😮 😮 😮 😮 😮 😮

lean ocean
#

Ban him for spamming

random nebula
tired roost
#

who the fuck actually uses bun

random nebula
#

Idk

idle musk
sullen grotto
fluid quail
sullen grotto
#

same guy getting mad that i called people virgins

lean ocean
#

🥷

tired roost
#

bro fr just said "useless overhyped dog shit was made in useless language"

#

like bro we know that's what rust is for!!

random nebula
#

The most web dev I did was use a markdown compiler and write some css

fluid quail
tired roost
orchid mirage
random nebula
sullen grotto
placid matrix
random nebula
#

U are

fluid quail
lean ocean
#

17 calling people virgins

tired roost
fluid quail
tired roost
#

rust would be a cooler language if u didnt know it

#

ur fr the epitome of why people dislike rust

tired roost
random nebula
#

U larp as a good programmer

random nebula
#

Bro forgot private repos are a thing

fluid quail
tired roost
#

post a game or a repo

random nebula
#

Don’t have to

orchid mirage
#

everyone post your repos

random nebula
#

I already did tho so you can find it somewhere

tired roost
fluid quail
random nebula
sullen grotto
orchid mirage
#

W ragebaiter

placid matrix
tired roost
#

anyways guys im going back to working on ui imgPecoDrool

anytime sango tries to talk down to u just remember he's a larping skid who can't back up ANYTHING he says.

sullen grotto
#

bro why we still giving sangole mango attention he is not changing

fluid quail
# random nebula Proof

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

sullen grotto
random nebula
#

U got exposed like 20 times

lavish plinth
#

hey

fluid quail
sullen grotto
#

^^ dont respond let him stay mad

random nebula
#

Nobody falling for ur shit lmao

cinder basalt
orchid mirage
#

guys no good programmer will call themselves a good programmer

tired roost
#

i find it very fun to call out sango's bullshit

random nebula
placid matrix
#

oh shet they jumping sango

tired roost
#

so just @ me anytime he's being a goober

cinder basalt
fluid quail
cinder basalt
#

doesnt matter

random nebula
#

Anyone can make code that works buddy

tired roost
random nebula
#

It doesn’t work well tho

placid matrix
tired roost
#

he'll learn to be normal if people don't engage

cinder basalt
tired roost
cinder basalt
#

hes obviously deprived

sullen grotto
#

nah i thought HD was downbad but seems theres some chill ppl here

fluid quail
random nebula
placid matrix
#

oh shiet the skids are having skid conciousness and rebelling against the elites

cinder basalt
sullen grotto
#

only saw sangole mango chatting so i thought this place was loser central icl

tired roost
#

i lowkey find it hella funny that sango's kept out of #code-help after i called him out 😭

random nebula
#

Hd became a paster server ts is crazy

tired roost
#

he respect the big dog

fluid quail
tired roost
#

🐺

orchid mirage
cinder basalt
#

whos sango cus ive heard that name 10000 times here

#

is he famous

lean ocean
#

HD fell off anyways

tired roost
cinder basalt
fluid quail
placid matrix
lean ocean
#

It was better in the past

random nebula
#

Can’t believe rodevs people are smarter than hd people now

cinder basalt
cinder basalt
tired roost
#

and doesn't actually know anything beyond language trivia

cinder basalt
tired roost
#

ts very sad

cinder basalt
#

wazehell

sullen grotto
#

yo dont chat 2 him bro

orchid mirage
#

70k is insane

tired roost
#

(like you)

#

i do my best to be nice and help most people

lean ocean
#

bypass 🤖

#

😂

random nebula
#

Free mod call

sullen grotto
#

if i got banned from this serv u would have 2 pay me to care

orchid mirage
placid matrix
#

mr tufferson

tired roost
#

i just don't like it when people use ai and then try to outsource debugging

#

when it doesn't work

orchid mirage
#

they’re the real goats cause they keep the bar low

tired roost
#

they tend to be very persistent and not very nice

orchid mirage
#

🙏

sullen grotto
#

is rojo + cursor still DL or no

cinder basalt
tired roost
#

on god

orchid mirage
tired roost
green basin
#

Dont forget your waits 😔

cinder basalt
#

when was the last time code help had a genuine help request and not 'fix chatgpt code'

tired roost
#

ion use ai sh

sullen grotto
#

DMS rq

cinder basalt
#

people dont even ask whats wrong or why they just want you to paste them correct code

tired roost
orchid mirage
#

😭

tired roost
#

just ask me what the question is

green basin
#

What does "advanced with https service" even mean

tired roost
#

i know a lot about http stuff, but idk much about roblox specific behavior

#

idk

sullen grotto
#

can u connect http service to a deployed backend which is connected to chatgpt

#

or do they js spam if else algos

green basin
#

Lil bro gon get rate limited 💔

  • it costs money to make api calls
orchid mirage
#

just go dm the makers of that game and then like social climb your way into their friend circle and steal their source code

sullen grotto
orchid mirage
sullen grotto
#

3.5 turbo is hella cheap

green basin
#

Still costs money

#

No Ai api is freee

sullen grotto
#

yea u can just run a freemium model

#

that way ur guaranteed at least 50% profit margins

orchid mirage
#

or atleast TRY the randomised sentences approach vigil

green basin
#

I mean if it can pay itself back from the game ig its worth it

orchid mirage
#

brain rot the sentences and kids will love you

sullen grotto
green basin
#

Just hire indians to type responses

orchid mirage
#

they ask it a question and they get skinidi tung tung sahur back and ur rich

green basin
#

Its cheaper in long run

orchid mirage
fluid quail
#
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```
sullen grotto
fluid quail
#

is there a way to make it so the text wont scale down when im close to it?

orchid mirage
#

ain’t no way

fluid quail
#

like i want the size to always remain the same, no matter the Distance

fluid quail
orchid mirage
#

this is a 2 minute google search

fluid quail
#

personal

orchid mirage
#

i heard character ai got some new chat bots

fringe whale
#

delete these gng lets go lab

lapis haven
#

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)

sullen grotto
lapis haven
#

I mean you can just set it up in a way

#

if u run out with one api u just switch to the other

sullen grotto
#

everyone is doing the same copy and paste like ai girlfriend

lapis haven
#

rinse n repeat

sullen grotto
fluid quail
#

all the info i get either doesnt work, breaks my code, or does nothing

orchid mirage
fluid quail
proud idol
proud idol
#

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

wheat pumice
#

python and lua are not similar in any way, not syntax nor functionality

wheat pumice
wheat pumice
sullen grotto
#

bro stop pinging me

#

ts was more than an hour ago i dont care anymore

wheat pumice
wheat pumice
#

disable pings WHYYYYY

idle musk
violet grotto
#

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

violet grotto
#

what part should i explain better

cinder basalt
#

how did you screw that up

violet grotto
#

;-;

iron shadow
#

guys did they disable third party sales

#

im not getting a percentage of my sales in game

quasi flax
#

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?

stable verge
#

does anyone use vscode?

brave path
crisp bay
#

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

wispy shale
#

hi does anyone wanna make a game with me

#

someone who can script

flint plaza
crisp bay
cinder basalt
cinder basalt
#

they have a separate ui for mobile

#

same thing could be achieved through a combination of scale and offset

summer phoenix
#

Bro is coding this hard? sobpray

snow raft
#

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

latent shoal
#

Learning coding from BrawlDev it's easy bcz he explains everything in simple language

cinder basalt
#

i can already tell you gonna be doomed after the tutorials 💀

distant hamlet
azure granite
#

guys has anyone used codex for roblox

lilac crescent
#

@pine solstice

wise turtle
#

Is brawldev the goat

distant hamlet
#

as if you werent using ai to vibe code anyway

azure granite
#

ts goated

distant hamlet
#

this why u still skidded

azure granite
#

im just using it to fix bugs

distant hamlet
#

even more skidded

azure granite
#

so

distant hamlet
#

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

distant hamlet
#

major skid

azure granite
#

so

distant hamlet
#

u aint baiting nobody but urself with that one

azure granite
#

no like whats the issue

#

of being a skid if i make the game in the end

distant hamlet
#

whats the use of making a game if ur a skid in the end

latent shoal
#

Maybe use ChatGPT ??

rustic crane
#

then you will start asking questiong like how do I do this or how do I do that

#

thats where u learn

azure granite
rustic crane
#

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

untold sparrow
#

kai cenat is about to hit 1,000,000 subs on twitch 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥

full anvil
#

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?

rigid rover
full anvil
#

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

rigid rover
#

just send the table or the specific stuff it needs in the event

full anvil
#

to the player cache then i fire a signal and there would be an listener to update the gui

storm monolith
#

can anyone help me fix my car dealership ill pay for ur help

storm monolith
rigid rover
#

bum who u callign bum

storm monolith
rigid rover
storm monolith
#

bro just in this chat for no reason

rigid rover
mystic dagger
#

how would i go about making a moveset system like forsaken

raven marsh
mystic dagger
#

how

mystic dagger
rigid rover
arctic belfry
#

Yea if you go into more detail

#

What exactly do you wanna achieve

mystic dagger
#

just a moveset system when you load into a round

rigid rover
mystic dagger
#

like

#

you get certain moves for the certain char u play

arctic belfry
rigid rover
storm monolith
#

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

arctic belfry
fair cradle
#

who wants a scripter for free

rigid rover
storm monolith
#

and is there no better form of entertainment for u

rigid rover
#

so ungrateful

storm monolith
#

bro i said id pay wtf

#

and ian asking u

rigid rover
storm monolith
mystic dagger
rigid rover
arctic belfry
#

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

mystic dagger
#

k

rigid rover
arctic belfry
#

Probably a syntax error in there

arctic belfry
mystic dagger
#

and then basically when the round starts i just get the info and make like the moves show on the gui and stuff

arctic belfry
#

Just a module script that list every character information

mystic dagger
#

what about like functioning moves

arctic belfry
#

Then of course you gotta create separate systems to actually use the information

mystic dagger
#

would i t be like

arctic belfry
#

Well you’d wanna make a framework

mystic dagger
#

wait

#

i typed that wrong

arctic belfry
#

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

mystic dagger
#

well most moves will either have q e or r as their keybinds

#

but idk if ill have custom keybinsd

arctic belfry
#

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

mystic dagger
#

alright

wet wedge
#

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

atomic pumice
#

uhm

#

why cant i upload files even in creations 😭

remote bear
ember nimbus
#

also you can almost definietly reuse t between renders so it doesn't have to recreate & rescale the table

hasty mesa
#

or just use a buffer

#

so it dosn't have to constantly recreate a string

ember nimbus
#

never tried it

hasty mesa
#

buffers are raw bytes

ember nimbus
#

i know what buffers are

#

but does buffer.tostring support unicode

remote bear
hasty mesa
hasty mesa
remote bear
remote bear
ember nimbus
#

but if buffers do support unicode like hao said you want to use a buffer

hasty mesa
#

you can also just pre assign the headers

#

and just directly write the hex value

#

as a number

remote bear
ember nimbus
#

if it's for an actual game i would suggest using either editable images or canvas draw or some ui gradient based system

remote bear
ember nimbus
hasty mesa
#

using buffers would be the fastest overall

ember nimbus
#

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

remote bear
ember nimbus
#

oh nvm didn't read the last half

#

but buffers would be much faster

hasty mesa
#

the most expensive operation would probably be the string concatantion here

ember nimbus
#

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

hasty mesa
#

yeah

remote bear
remote bear
hasty mesa
#

just use a buffer 😭 , you'll only have to write color codes

ember nimbus
#
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;
}
hasty mesa
#

and you can have a fast random modify

sly plover
#

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```
remote bear
sly plover
#

it just doesnt seem to change the value

#

the lines below it work

#

the lines below is just tweening

hasty mesa
#

print the value after setting it

sly plover
#

alright

hasty mesa
#

and how are you checking if it changed

sly plover
#

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

rough vine
sly plover
#

I'm lost

#

cuz it looks like it would work

remote bear
sly plover
hasty mesa
sly plover
#

Cuz at the moment most stuff is on the server

#

Like buttons, prompts etc

hasty mesa
ember nimbus
#

there are more grey areas like hitboxes where people have different opinions

sly plover
#

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

cobalt rock
#

anybody good at types?

ember nimbus
#

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

sly plover
#

So should animations right?

ember nimbus
sly plover
#

Like models etc

#

Buildings

#

Parts etc

cobalt rock
#

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

ember nimbus
#

most if it is first time loading though, which often isn't an issue

cobalt rock
#

any help is appreciated

ember nimbus
#

for NPCs, if you have loads, most people do implement custom replication

ember nimbus
#

for vscode i know some people write custom global type definition files

ember nimbus
#

for studio some people do an extra Types module or something

placid matrix
random nebula
hasty mesa
random nebula
#

It’s also difficult to do some performance patterns cuz the language sucks

placid matrix
sly plover
#

The values don't change/update

#

In the player folder

random nebula
#

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

hasty mesa
sly plover
#

Like under the line or you mean like a propertychangedsignal

hasty mesa
#

second one would be better

#

first one can also be used to double check

sly plover
#

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

hasty mesa
#

never know if its being modified when it changed

sly plover
#

It's confusing

hasty mesa
#

and did you check on the server

#

as well

sly plover
#

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

hasty mesa
#

server to what module

#

modules don't replicate automaticlly

#

you would have to use remote events for it to replicate module changes

sly plover
#

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

hasty mesa
sly plover
#

oh

hasty mesa
#

and should print the value

#

and add it before you set .Value

sly plover
hasty mesa
sly plover
cobalt rock
#

If I keep all the types in 1 module

#

the module could become like

cobalt rock
#

10k lines long

sly plover
#

yeah it doesnt print anything

hasty mesa
#

or above

sly plover
#

its above

hasty mesa
#

the value

hasty mesa
#

and then print the value you are setting

sly plover
#

it will come up as nil

#

or ""

#

not nil like this " "

hasty mesa
#

print the value you are setting then

sly plover
#

it says Slot2

hasty mesa
sly plover
#
        
        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)```
hasty mesa
#
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

sly plover
#

alr

#

lemme check

hasty mesa
#

and that includes comment docs

sly plover
hasty mesa
sly plover
#

oh wait

#

im deadass stupid

#

😭

#

I changed the names to " " to hide the rig name

#

no wonder dude

#

I'm guessing thats the issue 💔

cobalt rock
sly plover
#

is there any other way to hide the rig's name instead of manually just making it blank

hasty mesa
#

the type system is smart enough

sly plover
#

I see it now

#

damn i was stupid how did I forget that

sly plover
#

anyways ty for the help

cobalt rock
hasty mesa
#

where types depend on other types which depend on it

cobalt rock
#

is recursion necessarily bad

hasty mesa
#

no

cobalt rock
#

alright

#

thanks for the help

#

very very much appreciated!

sly plover
#

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

hasty mesa
#

well clear all children might be slightly faster

#

i've never really tested this

#

would be something you can check

sly plover
#

since when was destroy deprecated 😂

hasty mesa
#

hm?

sly plover
#

apparently it's deprecated

hasty mesa
#

remove is deprecated

#

destroy shouldn't

sly plover
#

I see

#

alright ty for your help 🙏

hasty mesa
#

Destroy would be better

sly plover
#

Alright ty

wide cairn
#

What language is this?

still token
#

or lua

#

i honestly dont know

polar snow
#

.

frail vapor
#

buying good roblox games dm

wide cairn
frank crow
#

does anyone know how to make a e to sit 0/2 system?

strong fog
frank crow
#

ye but idk how to check how many players are sitten

strong fog
#

use tables

rigid rover
frank crow
rigid rover
strong fog
#

it code discussion not the we will write code for you

frank crow
strong fog
#

i literally gave you hint how to do it

frank crow
#

like no one asked you anything

strong fog
#

just try make it/ do your own research

#

💀

rigid rover
strong fog
frank crow
rigid rover
frank crow
#

NO ONE KNOWS YOU