#code-discussion

1 messages ยท Page 5 of 1

primal python
#

print(messages[math.random(1, 3)])

polar edge
#

i tried replacing the numbers with texts

latent gust
#

messages(math.random(#messages))

#

Take a step back

#

Why are you doing math

polar edge
#

nvm it

open sparrow
# polar edge

try AI it will explane you what you can do and what you are doing wrong

polar edge
somber vault
#

are you trying to display a random message

polar edge
#

something wrong with it or smt

somber vault
#

this guy typed it before me

polar edge
#

alright.

somber vault
#

your code is too complicated for a random message displayer

polar edge
#

ik

#

i watched 4 youtube videos

#

and ai as a helper

primal python
latent gust
#

Gotta start somewhere

somber vault
#

yeah

somber vault
#

ok now make titanfall's movement system

polar edge
#

i am a beginner dawg

#

what the fuck yall think i am

latent gust
#

Mouthy

#

lol

primal python
polar edge
#

roblox docs

#

its not bad

primal python
#

Also engine API just for start

polar edge
#

i just dont understand much

somber vault
#

nobody became advanced in just 1 week

polar edge
#

well

#

i have been here for 3 weeks cryingdead

primal python
#

Unless you code in assembly for years cryingdead

inland bay
#

assembly is piss

latent gust
inland bay
#

hello?

polar edge
latent gust
#

Make some buttons that do things, change clothes, give an item

#

Understand the pieces of the puzzle before you try to put it together

polar edge
#

the kill brick seems easier

somber vault
#

I think its simple enough

latent gust
#

Displaying it on death efficiently is probably a bit out of reach

latent gust
polar edge
#

well i am proud of that stupid 2 hour random print statement

latent gust
#

Did you try any of the learn lua games

primal python
# polar edge the kill brick seems easier

Watch every YouTube tutorial for roblox studio, read all roblox docs, open devforum read articles, open dev challenges do them, start asking for commissions, copy other devs games and mechanics, recreate them

somber vault
#

I wouldnt say copy other devs games and mechanics

#

I would say look at scripting help in devforum, try to solve their problem on your own; If you cant just skip to the next problem

#

I would recommend doing this in stealth and not replying to the post too

latent gust
#

Make a kill brick and report back

primal python
dapper oasis
#
local crate = game.Workspace.PickleBasket.Union
crate.Touched:Connect(function(hit)
    if string.find(hit.Name, "Cucumber") ~= nil and hit.Anchored == false then
        hit:Destroy()
        crate.CucumbersStored.Value = crate.CucumbersStored.Value + 1
    end
end)

local dropprompt = crate.DropPrompt

dropprompt.Triggered:Connect(function()
    local stored = crate.CucumbersStored.Value
    if stored > 0 then
        crate.CucumbersStored.Value = crate.CucumbersStored.Value - 1
        local clone = game.ServerStorage.Cucumber:Clone()
        clone.Parent = game.Workspace
        clone.Position = Vector3.new(crate.Position.X,crate.Position.Y,crate.Position.Z)
        clone.Anchored = false
        print("done")
    end
end)```
#

It works when cucumber is set to anchored

latent gust
#

Why do you think that is

dapper oasis
latent gust
#

What is your code doing

dapper oasis
dusky relic
dusky relic
#

Update your if statement to be:
if stored.Value then

dapper oasis
dapper oasis
dusky relic
#

Yes it is..

dapper oasis
#

My code works.

#

My issue is that when I spawn an unanchored clone, it doesn't spawn. But if the clone is anchored in ServerStorage it spawns

dusky relic
#

or wait

#

nvm, you're right

somber vault
#

I dont see an issue with the code

primal python
somber vault
#

are u sure your "cucumber" doesnt fling the moment it spawns in

#

or when it unanchors

primal python
#

I guess it flings

somber vault
#

add a task.wait before the cloning cucumber part

#

and track where the cucumber goes

dapper oasis
dusky relic
#

wait....

dapper oasis
#

I found the issue.

dusky relic
#

@dapper oasis Your spawning in the cucumber then

#

immediately

polar edge
primal python
dapper oasis
#

It's the crate

dusky relic
#

deleting it with the touched function

somber vault
#

good then

polar edge
#

its the best my pc can handle it

dapper oasis
#

Idk why it's doing it, but when the crate touches the cucumber it disappears

#

OHHHH

#

IM STUPID

polar edge
#

i tried using blender to model and my pc crashed 9 times

dusky relic
#

bruh

polar edge
#

it was only 12 parts ๐Ÿ’€

dusky relic
dapper oasis
#

I made a script that deletes the cucumber whenever the crate stores it

primal python
dapper oasis
#

Oh I'm actually so thick

dusky relic
#

Did you chat gpt it..

dapper oasis
somber vault
#

I was questioning myself why this script aint working when there is no problem in it

dapper oasis
#

I just forgot I had another system

#

because I have a cucumber farm. When you harvest the cucumber it's meant to drop and the crate is to collect it

somber vault
#

anyway everybody does mistakes, glad the issue is fixed

primal python
dusky relic
#

exactly

#

I spent 4 hours setting up neovim

#

and struggling with getting mason to work

#

and all i had to do was change a true to a false.

#

๐Ÿ˜ญ

bold musk
#

chat gpt on top

static coral
#

crate.CucumbersStored has me very intrigued

dusky relic
#

Cucumber farming simulator.

static coral
#

oh fire

dapper oasis
#

pickle factory ๐Ÿ™‚

dapper oasis
polar edge
#

dawg

#

my pc so shit it crashes when i add more than 15 layers on photoshop

latent gust
brave egret
#

own it

rare bronze
#

considering u get 100% of game profits

brave egret
#

not 50k

rare bronze
verbal coral
#

tell me about your project, I have a lot of experience w aircraft systems in Roblox

molten plinth
rare bronze
#

ur so wrong

#

he has 2700 ccu

#

theres is absolutely 0% chance it made 0

#

how so?

#

i doubt hes rich enough to host it

#

if we say revenue per visit is 0.3 robux

#

which is really low

#

really really low

#

it still makes 50k

#

day not including premium payouts

#

no

#

those rainbows make it something

#

most players earn em nothing

#

i had 1000 ccu and made 70k day

#

top earning makes only 70k day?

clever herald
#

it should normally show my leaderboard but somehow it doesn't

#

ik

#

but the other won't help tho

rare bronze
#

fr ๐Ÿ˜‚

#

that he makes atleast 50k daily

clever herald
#

bro chill i just started

rare bronze
#

and his rpv is 0.3

sacred widget
#

it can be 0.01

rare bronze
#

he has gamepass and dev products

sacred widget
#

i dont have the sheer will to play the game but this is all im seeing

rare bronze
#

dev products is ussualy main income

clever herald
rare bronze
narrow vault
#

calling scripters "programmers" and telling someone to use chatgpt for coding is crazy work

verbal coral
verbal coral
narrow vault
#

no i called you out on how stupid you are

#

as i dont feel offended enough else id have cared imo

narrow vault
#

1 question and i am not offender over this weak insult

#

what have you honestly done w yo life

#

to call me that ๐Ÿ’”

verbal coral
#

Letโ€™s be real, experienced programmers in this server are not here to help

verbal coral
#

ong Iโ€™m just in here to troll

verbal coral
#

Iโ€™ve never touched C++ in my life

#

closest thing Iโ€™ve done is an intro course in C

#

we didnโ€™t even learn about structs

narrow vault
#

watch bro use using namespace std,,,,

verbal coral
narrow vault
#

no i just wanna see what made you truly think that attention seeking on the internet is the way to go

#

your current situation must be worse than rock bottom

#

temu doesn't count

verbal coral
#

I have a 2 cm deep cut on my wrist

narrow vault
#

im doing good tons of achievements at a young age compared to your rage bait

#

๐Ÿ™

#

thanks g ๐Ÿ‘

narrow vault
unkempt blade
#

does any1 know what coding language to start learning with

copper apex
#

Java IS THE BEST LANGUAGE!!!!!!!!!!!!!!!!!!!!!!!

rare bronze
brave egret
rare bronze
brave egret
#

not this game

copper apex
brave egret
rare bronze
brave egret
#

not for money

rare bronze
copper apex
rare bronze
#

what u on abt

copper apex
brave egret
rare bronze
#

its easy to understand and fun to learn

copper apex
#

Python or java are far better choices

rare bronze
#

no

#

theyre hard to understand

copper apex
#

How

rare bronze
#

assembly is better choice

#

assembly just easier and has better framework

copper apex
#

Theyre not hard to understand

#

U either the slowest person on earth if u cant handle it

rare bronze
#

assembly better + faster

copper apex
#

Or just rllydum

#

๐Ÿ˜ญ

rare bronze
#

yes cry

#

java user

#

we dont talk with those kind of ppl

copper apex
#

Alr bro

#

U seem like u know ur stuff, i should stop talking to you!!!!

rare bronze
#

dont mess with assembly fan

copper apex
#

Bro is trippin

#

What do you knwo about assembly

#

Tell me

rare bronze
#

everything

copper apex
#

Then tell me how is it a better choice for beginners

rare bronze
#

better framework + speed

copper apex
#

U still need a foundation and languages like python or java will give u that

rare bronze
#

c# better

#

or any c than those

#

even js better

copper apex
#

Hell no

rare bronze
#

maybe even html ๐Ÿคฃ

copper apex
#

HTML IS NOT A LANGUAGE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

#

๐Ÿ˜ญ

#

im playing

rare bronze
#

says java user ๐Ÿ˜ญ

copper apex
#

java is the best

#

Stop playing

rare bronze
#

for people who live in 2011

copper apex
#

Its such a powerful language still today

rare bronze
#

if you make mods for minecraft

#

otherwise no

copper apex
#

If u think java is jsut for minecraft then ur actually slow

#

๐Ÿ’€

#

Bro doesnt know what hes talking about

rare bronze
#

java is for everything if u want it run on servers from 1997

copper apex
#

U dont know what ur taling about at all lmfaooo

#

Java can be compiled in any operating devices

rare bronze
#

im js saying

#

assembly better for newbies

copper apex
#

Okay bro

rare bronze
#

tell me

copper apex
#

Learn a lil bit more about java then come back to me

rare bronze
#

can java or python code ur own hardware?

copper apex
#

Are you dumb

rare bronze
#

im not java user

#

so no

copper apex
#

This guy is acc so slow

#

Holy

rare bronze
#

assembly better

#

and can do anything it wants

#

and is modern

#

with super speeds

copper apex
#

java is not a language for hardwave dummy

rare bronze
#

ofc

copper apex
#

Theres specific languages for hardwares

rare bronze
#

its too dumb for that

copper apex
#

Just like how theres speicfic langauges for diffirent things

rare bronze
#

i give example

#

C can do anything

#

java cant

copper apex
#

What can C do ?

rare bronze
#

anything

copper apex
#

For beginners you dont need to do everything

#

What you need is a foundation

rare bronze
#

u need everything

#

as begginer

#

to understand everything you need to access everything

copper apex
#

Alr im jsut getting rage baited by this low level dummy

rare bronze
#

high level dummy*

carmine tapir
#

For duplicate inventory items, how do ppl make them stack?

rare bronze
#

yk what

#

ill learn ur java

carmine tapir
rare bronze
#

to prove it suck

#

gimme 5 years

copper apex
#

People who hate on java doesnt know anything about programming

rare bronze
#

even 3 year olds hate on java

carmine tapir
rare bronze
#

js switch to c++, c#, c or javascript

copper apex
rare bronze
#

java is like dinosaurs of programming

random comet
#

Yo who can find me good forums for making a mining game

random comet
#

its outdated

rare bronze
#

minigames arent hard

rare bronze
random comet
#

not minigame

rare bronze
carmine tapir
copper apex
rare bronze
random comet
rare bronze
#

local text = tool.Name
local pt1 = string.sub(text, 1,4)
local pt2 = string.sub(text,5)
tool.Name = pt1.." "..pt2

carmine tapir
copper apex
#

Changing the name to have "x2" at the end kinda sucks, cuz for mobile players, the text get's wrapped so you wont be able to see the whole text

rare bronze
#

local text = tool.Name
local pt1 = string.sub(text, 1,4)
local pt2 = string.sub(text,5)
tool.Name = pt1.." "..pt2

thats what i meant

copper apex
#

It's really not that hard but you just needa be careful on how youre tracking each tool

rare bronze
copper apex
#

I tried making my own custom one but I forgot about it so im remaking it

coarse notch
#

whats the best way to learn scripting? should i watch youtubte guides or ask deepseek or any other ai to give me a script, analyze it, try to understand it and recreate it?

rare bronze
sudden delta
#

who can help me to be able to script better

rare bronze
#

ask anything u want

sudden delta
#

can we join a call

rare bronze
#

i have no mic

sudden delta
#

gunna be hard then

coarse notch
rare bronze
copper apex
#

Dont use AI to make code for you, make the code urself

coarse notch
coarse notch
rare bronze
copper apex
sudden delta
# rare bronze i have no mic

like how do i add guns and stuff and be able to make it soo it says open door and be able to click onto like a gun store person to select guns

coarse notch
sudden delta
#

stuff like that how

coarse notch
copper apex
rare bronze
rare bronze
#

in 4 months

rare bronze
sudden delta
#

yes

#

and how i make like screens and stuff for them

coarse notch
rare bronze
#

thats long to type

#

depends on its complexity

copper apex
#

U will never have a deeper understanding of how code works if u just use AI to write and explain everything, you need to write and explain things urself, only use AI as a resource, dont make it do things for u

rare bronze
#

and when ur lost u ask ai

sudden delta
copper apex
#

U need to write code urself bro, thats literally the point, you need to be able to write thigns URSELF and understand what URSELF is writing

signal void
rare bronze
rare bronze
#

and than functions

#

and then it kinda spawned in my head

coarse notch
sudden delta
#

try find me a youtube vid

signal void
copper apex
#

Please do not learn about while true do, learn about types, variables, conditionals, and operators first ๐Ÿ˜ญ

coarse notch
copper apex
signal void
#

I use ai and I learn nothing

rare bronze
#

cuz

#

u try to memorise what ai told you

#

u need understand why it told that

copper apex
#

Youre copying what the AI wrote, AND 99% of the time, their code is not simplified or just sucks

coarse notch
#

bro can u not understand what im saying

#

im not using the code that ai gave me to make games

#

i will learn from the code ai gave me

rare bronze
coarse notch
#

i will read it

copper apex
#

Yeah but AI is not gonna give you good code to learn from

signal void
#

I do ๐Ÿ˜ฌ

copper apex
#

Says common sense

coarse notch
rare bronze
#

wrongh

coarse notch
#

and i learned from it

rare bronze
#

go back to java

copper apex
coarse notch
signal void
#

Iโ€™ll try to script a kill part

copper apex
rare bronze
#

using .Touched

#

good choice

signal void
#

I really want to learn scripting

copper apex
#

The roblox document is all you need, theres tons of posts forums to help u get started

rare bronze
coarse notch
#

i need to make stuff to actually learn

rare bronze
signal void
#

Alright

coarse notch
#

if u read the whole documentation but u dont actually script, then its a waste

rare bronze
coarse notch
copper apex
#

Im just saying, looking at what the AI and trying to learn from what they wrote is not good practice, cuz most of the times, what they write is bad

rare bronze
#

like i spent at begginign 2 hrs watching yt tuts and didnt knew nothing cuz no practise

copper apex
coarse notch
rare bronze
#

i use ai every 30 mins

copper apex
signal void
#

You have to ask ai exactly right what you want

rare bronze
#

they ussualy solve issue

rare bronze
copper apex
rare bronze
#

hes java user and dont know his stuff

rare bronze
coarse notch
random ledge
#

Trying to do commisions people want is PAIN. No one is responding to my DMs! ๐Ÿ˜ญ

rare bronze
#

when i make post

#

50 ppl dm me

#

and i need tell 49 of them i already got someone

copper apex
#

AI code is such bad quality most of the times, a human who spent his time learning and knows how to simplify his code will always 100% be better

coarse notch
#

if its so bad?

rare bronze
copper apex
#

Just bcuz they used it doesnt mean its good

coarse notch
rare bronze
#

dawg

coarse notch
#

why would they use bad stuff

rare bronze
#

everything uses ai now

#

even gpu and cpus

copper apex
rare bronze
coarse notch
copper apex
#

Okay...Tell me what they made?

coarse notch
#

the code for the game

rare bronze
#

and not in java

copper apex
#

Bro...Tell me some code then?

rare bronze
#

some other language

coarse notch
#

also, ai is being used to make plugins for unreal engine

coarse notch
rare bronze
coarse notch
#

i just know that its being used

copper apex
#

Exactly, you dont know if AI actually created cyberpunk

#

Those people have experts at machine learning and programming, they know how to use AI

coarse notch
#

and he uses ai

copper apex
#

To debug probbablyt

coarse notch
#

and he told me that everybody in the company uses ai

copper apex
#

But to learn? He probbably learned by writing code HIMSELF

rare bronze
copper apex
#

AI is only a resource, dont make it write code for u

coarse notch
copper apex
#

And learn from what the code they write

copper apex
#

Just bcuz it works doesnt mean its good

rare bronze
#

when it comes to simple language as lua its ussualy accurate

copper apex
coarse notch
#

but if it works, then why not learn from it

rare bronze
#

and ai can work from that

copper apex
rare bronze
#

just one

copper apex
#

Its a bad practice to just let things be cuz they work, you need to always try to be better, make ur code more efficient, etc etc

rare bronze
#

ensure ping is high as possible

coarse notch
rare bronze
#

forcing ppl to buy better wifi

coarse notch
#

100% deepseek is better

rare bronze
#

ill go now

coarse notch
#

bye

rare bronze
#

i hated enough on java today

#

bye

copper apex
#

Bro probbaly just started programming

rare bronze
#

is

copper apex
#

Then thinks java is only for minecraft

rare bronze
#

glaze assembly and hate on java

#

all my purpose on coding servers

coarse notch
#

@copper apex so what do u recommend me to do? how do u think i should learn how to script?

copper apex
#

Yeah yeah yeah

rare bronze
#

alr ima rly go rn

copper apex
coarse notch
sacred widget
copper apex
#

If youre learning luau for roblox, start with variables, types, how to declare a variable and initialoize a value to it etc

sacred widget
#

hes prob stuck at gpt 3.5

coarse notch
copper apex
sacred widget
#

learn type soff the official page

#

the rest is practice @coarse notch (chatgpt included)

copper apex
#

You need to learn the basics obviously ๐Ÿ’€

coarse notch
signal void
sacred widget
#

and doing ur own changes

coarse notch
coarse notch
#

what about it

signal void
#

Really basic stuff

coarse notch
sudden delta
#

who needs a dev

gilded shard
#

you'll find something to mess with if you skim through docs

marble pecan
#

HIHI! does anyone know where i can begin to learn to code?

gilded shard
marble pecan
coarse notch
hollow hollow
glass pumice
#

๐Ÿคทโ€โ™€๏ธ

#

chatgpt is great for tutoring

hollow hollow
#

i read books ๐Ÿ’€

glass pumice
hollow hollow
bleak glade
glass pumice
#

idk how u can just say that

#

people learn in different ways

#

as long as u know how to prompt efficiently you'll learn

bleak glade
#

accurately

hollow hollow
#

and chatgpt doesn't know that much about luau

bleak glade
#

right its trained on many things

#

the documentation from ROBLOX would be the most accurate source to learn about roblox luau

glass pumice
#

as long as u prompt

#

correctly

young mirage
#

local function determineFunction(hi, monkeypox)
print (hi + monkeypox)
end

determineFunction(250, 500)

so i have a question, this is a basic function, and im trying to understand why people use "return", when u can just keep using the function over and over without needing return?

bleak glade
#

you return a value

hollow hollow
glass pumice
hollow hollow
#

the point is to reuse code in more circumstances

young mirage
glass pumice
bleak glade
#

no that wouldnt work

glass pumice
#

iirc

young mirage
bleak glade
#

theres no reasn to even return in that function

young mirage
glass pumice
young mirage
#

after i added return

hollow hollow
#

lua syntax bullsht

#

add a semicolon

#

compiler doesn't see the newline

#

it only sees another token

#

do return nil

#

or return;

young mirage
glass pumice
hollow hollow
#

compiler thinks ur returning the print statement

bleak glade
#

as they mentioned return is best for returning values as a variable

hollow hollow
glass pumice
#

go on ig

hollow hollow
#

even after he adds return

#

the lua compiler doesn't care about newlines most of the time

glass pumice
glass pumice
#

yeah

#

tldr

young mirage
glass pumice
young mirage
#

local function Multiply(a,b)
return a*b
end

local value = Multiply(2,4) -- multiply 2 by 4.

print(value) -- 8

it returns it as a variable so when the person who did the script wrote local value it makes it so that it returns that variable to the functions parameters

so now its Multiply(a=2,b=4)

hollow hollow
#

brainfart

young mirage
#

thgmokfvdcghmdfghwsdfmhijwrjhijrdnhijudsg

glass pumice
#

That means when you call

#

local value = Multiply(2, 4)

#

Lua assigns:

a = 2
b = 4

young mirage
#

OH

hollow hollow
#

it just replaces em, think it like that

strange summit
#

how do I find a shirt or pants from the robloxasset id
in studio

glass pumice
# young mirage OH

however, lua doesn't support named arguments like Python (Multiply(a=2, b=4) would throw an error)

young mirage
young mirage
glass pumice
hollow hollow
hollow hollow
#

its pseudocode

glass pumice
#

when u say

local function Multiply(a, b)
return a * b
end

local value = Multiply(2, 4)

Itโ€™s the same as saying

a = 2
b = 4
return a * b

hollow hollow
#

he gets it

glass pumice
#

im js saying

hollow hollow
#

kay

glass pumice
#

very good to know

young mirage
#

alr thx alot

glass pumice
#

np bro

hollow hollow
#

๐Ÿ˜Ž

young mirage
hollow hollow
glass pumice
#

the lie:

hollow hollow
#

as his first

#

he loved it

#

java was my first actually don't judge tho

rare bronze
hollow hollow
rare bronze
#

Next assembly?

glass pumice
#

assembly is easy

hollow hollow
rare bronze
#

I agree

rare bronze
hollow hollow
rare bronze
#

C#

glass pumice
# rare bronze Next assembly?

section .data
msg db "Hello, World!", 0x0A ; Message with newline
len equ $ - msg ; Calculate length

section .text
global _start

_start:
mov rax, 1 ; syscall: sys_write
mov rdi, 1 ; file descriptor: stdout
mov rsi, msg ; pointer to message
mov rdx, len ; message length
syscall ; invoke kernel

mov rax, 60         ; syscall: sys_exit
xor rdi, rdi        ; status: 0
syscall             ; invoke kernel
#

the linux:

rare bronze
#

I love ubuntu

#

Its so good OS

glass pumice
#

windows is superior

#

silence linux user

hollow hollow
#

where you learnt that

#

since yours a windows user

rare bronze
hollow hollow
#

i smell a plot

glass pumice
#

I've had linux installed lol

somber vault
#

wh it not work print 75 + 75

glass pumice
#

dual boot

somber vault
#

wehy

#

why 75 + 75 not work printed print 75 + 75

hollow hollow
#

bro can we see the code ๐Ÿ’€

somber vault
rare bronze
#

Is it string maybe?

hollow hollow
somber vault
#

k

hollow hollow
#

print"", print{} only works with a single literal, add brackets: print(75 + 75)

somber vault
hollow hollow
hollow hollow
somber vault
hollow hollow
#

๐Ÿ’€

#

what does fibonacci have to do with printing

somber vault
#

to print it

rare bronze
#

Absolutely nothing

hollow hollow
#

average hiddendevs scripter

#

"how do i print?"
"use fibonacci sequence"

rare bronze
hollow hollow
rare bronze
#

Alr

#

Good night everyone

hollow hollow
#

cya

somber vault
# somber vault to print it
local function fibonacci(n)
    return n < 2 and n or fibonacci(n-1) + fibonacci(n-2)
end

local function isPrime(n)
    if n <= 1 then return false end
    for i = 2, math.sqrt(n) do
        if n % i == 0 then return false end
    end
    return true
end

local function encodeBase64(str)
    local b = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
    return ((str:gsub('.', function(x) 
        local r,b='',x:byte()
        for i=8,1,-1 do r=r..(b%2^i-b%2^(i-1)>0 and '1' or '0') end
        return r;
    end)..'0000'):gsub('%d%d%d?%d?%d?%d?', function(x)
        if (#x < 6) then return '' end
        local c=0
        for i=1,6 do c=c+(x:sub(i,i)=='1' and 2^(6-i) or 0) end
        return b:sub(c+1,c+1)
    end)..({ '', '==', '=' })[#str%3+1])
end

local function decodeBase64(data)
    local b = 'ABCDEFGHIJKLNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
    data = string.gsub(data, '[^'..b..'=]', '')
    return (data:gsub('.', function(x)
        if (x == '=') then return '' end
        local r,f='',(b:find(x)-1)
        for i=6,1,-1 do r=r..(f%2^i-f%2^(i-1)>0 and '1' or '0') end
        return r;
    end):gsub('%d%d%d?%d?%d?%d?%d?%d?', function(x)
        if (#x ~= 8) then return '' end
        local c=0
        for i=1,8 do c=c+(x:sub(i,i)=='1' and 2^(8-i) or 0) end
        return string.char(c)
    end))
end

local function complexCalculation(x, y)
    local result = 0
    for i = 1, x do
        for j = 1, y do
            result = result + math.sin(i) * math.cos(j)
        end
    end
    return math.floor(result * 100) / 100
end

local targetNumber = 75
local encodedTarget = encodeBase64(tostring(targetNumber))
local decodedTarget = tonumber(decodeBase64(encodedTarget)) ```


this?
somber vault
# somber vault ```lua local function fibonacci(n) return n < 2 and n or fibonacci(n-1) + f...

You need to add

for i = 1, 10 do
    fibSequence[i] = fibonacci(i)
end

local primeFactors = {}
for i = 2, targetNumber do
    if isPrime(i) and targetNumber % i == 0 then
        table.insert(primeFactors, i)
    end
end

local complexResult = complexCalculation(#fibSequence, #primeFactors)

local finalResult = math.floor((decodedTarget + complexResult) / 2)

local metatable = {
    __call = function(t, ...)
        local args = {...}
        local sum = 0
        for _, v in ipairs(args) do
            sum = sum + v
        end
        return sum
    end
}

local resultTable = setmetatable({}, metatable)

local function printResult()
    print(resultTable(finalResult, targetNumber - finalResult))
end

printResult() ```
glass pumice
#

the chatgpt:

hollow hollow
#

stop deceiving him @somber vault

#

the mischief is real ๐Ÿ‘ฝ

young mirage
#

dude what the fuck is this

somber vault
#

it work

hollow hollow
somber vault
#

See I told you im good at coding

hollow hollow
#

"coding" ๐Ÿ’€ ๐Ÿ‘ฝ

#

i smell a spy

young mirage
#

yeah im quitting code what the fuck is all that shit

hollow hollow
somber vault
#

thans

young mirage
hollow hollow
#

take it slow

#

yap charging

jaunty wolf
# young mirage local function determineFunction(hi, monkeypox) print (hi + monkeypox) end ...

i think you should just make games, and learn as you go. youll pick up uses for things like return as you go along. if you want an example of a use though, heres a way to use return to make your code a little cleaner

This

UIS.InputBegan:Connect(function(ip,gp)
  if ip.KeyCode == Enum.KeyCode.LeftShift then
    print("Start sprinting")
  end  
end)

and this

UIS.InputBegan:Connect(function(ip,gp)
  if ip.KeyCode ~= Enum.KeyCode.LeftShift then return end
  print("Start sprinting")
end)

these do exactly the same thing. but return makes it kinda shorter.

hollow hollow
#

bro nah that is not how you introduce return ๐Ÿ’€

jaunty wolf
hollow hollow
#

shoving userinputservice in there for someone who doesn't know what it means

#

def a good way to teach

jaunty wolf
#

if hes curious about UIS he can ask, if not idm

hollow hollow
#
function f(x)
 return x * 2
end

local a = f(2)
print(a)
#

simple

#

return returns a value

#

hence the name

jaunty wolf
#

ya thats fine too

hollow hollow
#

that's what you need to know first

#

especially since this is a dynamic language

jaunty wolf
#

well i taught it the way i had learned it because that made it easier for me

hollow hollow
#

return will always return a value

#

return is the same as return nil

jaunty wolf
#

i didnt really start using return until someone taught me how to use it to replace nesting

hollow hollow
#

kay

summer aurora
summer aurora
# summer aurora

im starting to see why serversided .Touched hitboxes are a bad idea

median herald
#

Looking for a coder

urban vapor
terse vapor
sinful storm
#

sholud i learn profileservice or profilestore?

nova citrus
#
alu_result_t unsigned_multiply(uint16_t multiplicand, uint16_t multiplier) {
    alu_result_t product = {};
    uint32_t result = 0;
    uint16_t bit_mask = 1;

    while (is_not_zero(bit_mask)) {
        if (is_not_zero(multiplier & bit_mask)) {
            uint32_t partial = multiply_by_power_of_two(multiplicand, bit_mask);
            result = ripple_carry_addition(result, partial, 0);
        }
        
        bit_mask = bit_mask << 1;
    }

    product.result = (uint16_t)(result & 0xFFFF);
    product.supplemental_result = (uint16_t)(result >> 16);

    return product;
}

C can be so majestic sometimes

calm basalt
#

Why is coding so hard

tacit wadi
sinful storm
earnest verge
#

I need a scripter so badddd

royal ibex
earnest verge
royal ibex
earnest verge
royal ibex
#

mate wym hm

earnest verge
#

U got me how

royal ibex
#

brev said he needs scriptor and i said i gotchu

#

nice ggs

earnest verge
#

Iโ€™m a girl

#

Actually

earnest verge
#

U wanna help?

#

Or smt

royal ibex
rustic torrent
#

yo, looking for someone with a fairly good pc to help me with something for my server, dm me, 900+ members.

royal ibex
#

that i will help

earnest verge
rustic torrent
rustic torrent
#

lmk

earnest verge
#

Someone code for me now

stone veldt
royal ibex
stone veldt
royal ibex
stone veldt
royal ibex
stone veldt
earnest verge
#

My elbow itchy

earnest verge
stone veldt
royal ibex
earnest verge
stone veldt
royal ibex
royal ibex
stone veldt
royal ibex
buoyant hamlet
#

is there a way to customize the roblox forcefield?

shell gale
tacit moss
stone veldt
#

do not hire girlmagnet hes 12

royal ibex
#

wildd

proud junco
#

guys i need help

#

not rlly help but more of an opinion

#
    local pD = game.ReplicatedStorage:WaitForChild("PlayerData"):WaitForChild(plr.Name)
    local hum = char.Humanoid
    local hrp = char:WaitForChild("HumanoidRootPart")
    local inAir = false
    if not game.ReplicatedStorage.UniversalRemote then game.ReplicatedStorage.UniversalRemote:Wait() end

is this code ugly?

#

i personally dont like it cuz of all the shortended variables

proud junco
torpid vigil
#

LOOKING FOR SCRIPTERS DM ME

latent gust
bleak glade
proud junco
#

i cant tell if im tweaking or not

#

should i tell that person to spell out their variables because of how hard it is to understand?

torpid vigil
#

LOOKING FOR SCRIPTERS DM ME

proud junco
#

and one other person

#

so 2 other scripters maybe

latent gust
#

so who cares in that case

proud junco
bleak glade
#

why are you asking our opinion if youre trying to understand it

proud junco
#

THAT SHIT HURTS TO READ

latent gust
#

you sound pedantic, let the man cook

#

i manage 8 software engineers and i dont even ride their meat that hard

proud junco
latent gust
#

its fine

jaunty dome
#

can anybody tell me why my output keeps saying attempt to index nil with FindFirstChild in this code?

local CheckpointsFolder = game.Workspace.Checkpoints

for _, v in pairs(CheckpointsFolder:GetChildren()) do
if v:isA("Part") then
v.Touched:Connect(function(part)
local player = game.Players:GetPlayerFromCharacter(part.Parent)
local StageValue = player:FindFirstChild("leaderstats").Stage

        if player and StageValue.Value < tonumber(v.Name) then                
            StageValue.Value = v.Name
            end
        end)
end

end

#

LINE 7

#

i had it as player.leaderstats but it still said the same thing

#

the script worked though but it keeps having that in output

buoyant hamlet
#

But i want custom vfx

shell gale
#

just script it

#

or get a scripter to script it

glacial lance
jaunty dome
#

yes

#

i have leaderstats inside player

glacial lance
jaunty dome
#

a script to add it

glacial lance
#

Can you send that script?

jaunty dome
#

local players = game:GetService("Players")
local CheckPointsFolder = game.Workspace.Checkpoints

players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Parent = player
leaderstats.Name = "leaderstats"
local Stage = Instance.new("IntValue")
Stage.Parent = leaderstats
Stage.Name = "Stage"
Stage.Value = 1
local Fails = Instance.new("IntValue")
Fails.Parent = leaderstats
Fails.Name = "Fails"

    player.CharacterAdded:Connect(function()
        local checkpoint = CheckPointsFolder:FindFirstChild(Stage.Value)
            player.character.PrimaryPart.CFrame = CFrame.new(checkpoint.Position.X, checkpoint.Position.Y + 5, checkpoint.Position.Z)
    end)

end)

glacial lance
jaunty dome
#

so weird i deleted another script that spawns rain parts and it fixed it...

glacial lance
#

tf lmao

jaunty dome
#

so weird lol the output has no errors and the script works again. so odd

somber vault
#

looking for a dev group

#

im an builder/modeller

loud zenith
proud junco
#

i guess im on the extreme side of not shortening variables

glacial lance
stone veldt
oblique siren
stone veldt
oblique siren
#

if the payment was just USD

oblique siren
stone veldt
oblique siren
#

oh

#

i was abt to say

#

I was expecting like 1000 tho

oblique siren
stone veldt
oblique siren
#

cus that is what gets them to wwork faster

stone veldt
#

if u need a scripter hmu

oblique siren
stone veldt
oblique siren
summer aurora
#

this plugin is nice

wary vigil
#

Want opinions on my system im working on in js, ill forward the message one sec

wary vigil
#

Might incorporate this into roblox

graceful oxide
#

Is there any way at all to know if a player favorited your game?

stone veldt
wary vigil
# stone veldt why do u need this

Two reasons. Firstly, I want to create my own QR code-style canvases based on my encryption method to use for a file transfer web extension. I also want to make it quick and easy for people to set up and use to protect their code.
However, im not trying to replace cryptography by any means.\

stone veldt
wary vigil
stone veldt
#

nothing

wary vigil
stone veldt
#

no

twilit parcel
#

Hello everyone, i wanted to ask is there a place where theres coding challenges i could participate to refine my skills?

#

I feel like i need more examples to solidify things that ive learnt

twilit parcel
copper apex
#

Then for lua idk

twilit parcel
#

Ive already grasp most of the concepts from c++ and python

#

But im still new to roblox studio

umbral carbon
#

It will take a few thousand years for brute force to get it right

warm pumice
#

Wait until this guy learns about quantum computing

inland bay
hardy pilot
twilit parcel
#

Me but im learning lol

inland bay
#

whats the pay/h?

lean ocean
#

you just air everyone ๐Ÿ˜ญ

#

Unless u want a portfolio instantly

dawn crow
#

i feel like roblox should add a native "Character" type

#

would make things easier

brave egret
#

You just don't have a portfolio

lean ocean
#

I do but all you said was "dm me"

#

You should've put "dm me with portfolio"

brave egret
#

I think it's obvious ๐Ÿ’€?

somber vault
brave egret
#

@lean ocean what kind of programmer are you if you haven't shown any work on this server?

lean ocean
#

I mostly help people in code help

#

Also I've worked for 2 games with >2 mil visits

lean ocean
#

That games pretty terribly scripted cause of last scripter

brave egret
#

If I'm not mistaken, these are open source systems.

brave egret
#

so you won't fix these scripts?

lean ocean
#

dms

dawn crow
#

e

stiff mist
#

Chat i got a question yall how did yall learn scripting? Was it making a tons of games or watching a tons of tutorial

stiff mist
#

cuz when i do go to luau docs i just dont know when to start

inland bay
#

do you know luau

#

in general

#

like anything

stiff mist
#

i finished the code fundamentals

#

i know datastores

#

pcalls

inland bay
#

alright great

#

now think of a simple project

#

like an obby with randomly generated stages

#

then start making it

#

once you dont know how to do smth read the docs on that specific func you need

#

or watch a video

#

then once you finish that game, make another one

#

and keep going until you're confident

stiff mist
#

how would i even know what func

inland bay
#

well for moving platforms lets say

#

do you know what you would use to make the user stick to the platform?

tired anchor
#

How do I make it using HD admin, where when a player touches a certain part they get the "VIP" rank.

stiff mist
#

Tween service?

inland bay
stiff mist
#

Idk man

#

Cframe?

inland bay
#

no omg ok

#

see then you search it up

#

"user slipping away on moving platform roblox"

#

and you do that whenever you have an issue

stiff mist
#

ohhhhh

#

ok so thats how you learn

inland bay
#

well thats how I learnt

stiff mist
#

i just binge watch some randome guys luau series

inland bay
#

watching videos doesnt make you use your brain

stiff mist
#

yeah

#

thx!

glass pumice
zenith drift
#

same as yt vids

#

wont use your brain that much

#

and wont actually remember much

glass pumice
zenith drift
glass pumice
#

okay lol

zenith drift
#

obviously you can force yourself to learn that way

#

but i dont think its efficient

#

tried learning stuff thru ai and never actually learned anything

#

just do projects

#

read docs and search up stuff you dont understand

#

and with enough time you can do anything

ebon root
#

guys find the 5 errors in this codes, you have 10 minutes

lean ocean
#

1 Is that whoever wrote this should quit

small sinew
kindred prawn
#

Im A Ok to do code with ai bec i cant script:(

muted sapphire
#

i would rather burn in hell than code in french

alpine berry
#

last our project

still bison
lean ocean
#

The guys gonna air u anyways ๐Ÿ˜ข

#

even if u have a portfolio

#

to him good vfx and good visuals = how good you are at scripting prob

spiral jungle
#

Least biggest lie in hidden devs

lost burrow
#

dont hire in chat

burnt hamlet
#

Yo guys

#

I need help

#

How do i even make a backpack system

civic citrus
#

can anyone just tell me what I'm not seeing?

Pic #1 this is the method I'm calling
Pic #2 method im calling

IT DOESNT EVEN Print(1) it prints nothing just returns as true and code continues running.

#

dont tell me to ask AI it offers debugging options which doesnt matter cuz method isn't even called

deft furnace
#

can someone help me with some code?

inland bay
#

dontasktoask

#

๐Ÿ˜”

inland perch
#

An issue im having with my game. When a few players join ping can increase at a random moment rapidly from 100 to 7k. I think that the cause of it can be an abnormal amount of player requests but does anyone know what could possibly cause them?

#

I've already checked for memory leaks and i don't think that there are any

boreal vigil
#

FEIN FEIN ๐Ÿฅถ

quick tree
#

anyone wants a vip chat tag script? looking for robux

rare bronze
lapis heron
#

is there a simpler way because I swear it shouldnt be this hard

lapis heron
# rare bronze What code

hey I have a question in order to make button do smt should I use remote events to connect the button to the function?

soft pumice
#

@viral lynx i'm interested in helping, sent a dm

viral lynx
#

Alr taken

sullen ravine
#

p sure it uses a skinned mesh with bones

lilac cosmos
#

can someone help with my code