#code-discussion

1 messages ยท Page 285 of 1

thorny osprey
#

u make fps?

#

if u make fps

#

raycast better

hazy imp
#

I WANT FPS

thorny osprey
#

do it urself man

#

no one gonna give u

hazy imp
#

y

#

for 50% ๐Ÿฅบ

thorny osprey
#

50% what

hazy imp
#

the game

thorny osprey
#

it not work like that man

hazy imp
#

yyy

#

90%

#

๐Ÿ˜ญ

dense hull
thorny osprey
#

they can make their own game

small prawn
thorny osprey
#

why they have to give u

hazy imp
#

kinda

thorny osprey
small prawn
#

U a builder scripter or what?

thorny osprey
#

10 steps a head

hazy imp
#

o

thorny osprey
hazy imp
#

can i see ๐Ÿ‘€

small prawn
#

I think hes joking

hazy imp
#

m

#

I'm a builder

#

cause I'm to dum to script

dense spade
small prawn
#

Whats stopping a scripter from making there own game lol

hazy imp
#

NO

#

LIESSS

hazy imp
hazy imp
dense spade
thorny osprey
regal salmon
small prawn
# hazy imp the map

Im sure if most people spent enough time on it they could get a decent looking map and then publish game and pay a builder for the map later on

small prawn
hazy imp
#

o

thorny osprey
hazy imp
thorny osprey
#

it's not

small prawn
hazy imp
#

it is for me

thorny osprey
#

ok then go away

#

U

hazy imp
#

y

thorny osprey
#

HAVE

regal salmon
#

also why yall dogging on them for doing rev share lol thats a very common thing to do

thorny osprey
#

LEARN\

hazy imp
#

NO

thorny osprey
#

then go away

hazy imp
#

too boriNGNG

thorny osprey
#

stupid

hazy imp
#

And I'm lazy

#

and dum

#

:DD

thorny osprey
#

then go away

hazy imp
#

๐Ÿ˜ญ

thorny osprey
#

out of here man

hazy imp
#

๐Ÿ™

thorny osprey
#

u have to learn ur self

hazy imp
#

:oo

thorny osprey
#

if u cant

hazy imp
#

y

thorny osprey
#

shut tf up

hazy imp
#

damn

thorny osprey
#

no one gonna solve ur problem

hazy imp
#

y

thorny osprey
#

shut tf up

hazy imp
#

?

thorny osprey
#

n learn

light fable
thorny osprey
light fable
hazy imp
thorny osprey
#

cool

hazy imp
#

wth

#

that's sick

dense spade
thorny osprey
thorny osprey
hazy imp
#

46

thorny osprey
#

wtf

#

stop lying man

hazy imp
#

I'm "old enough"

#

๐Ÿ‘๐Ÿ‘๐Ÿ‘

thorny osprey
#

u look like 10

#

or 12

hazy imp
#

thx

icy heron
#

chat

#

if I wanted to go about making a voxel game like minecraft

#

what would be the best method to go about making the voxels

#

as in what kinda instance type

hasty mesa
#

part

#

editable meshs when the get improved

remote bear
thorny osprey
#

he dont want to learn

#

n ask for give him a fps system

#

even say scripting is impossible

remote bear
#

Then just say no then go on with your day. You have no reason to bully him

cyan fractal
hazy imp
#

๐Ÿ‘

midnight hearth
#

Can someone help with interactions?

cyan fractal
novel portal
#

Yo what do I do after dev king tutorial

versed sierra
#

make smth

#

idk like a currency system

#

using leaderstats

novel portal
versed sierra
#

thats the best solution

#

๐Ÿ‘

#

Struggle is key bc atleast u learn

wind portal
astral magnet
#
local Meooon = 0
local mrow = workspace["Handelr,.,...,"]
local nyaaa = workspace.Neooon
local mwaow = workspace.Meooon
local clickka = mrow.ClickDetector

clickka.MouseClick:Connect(function()
    if wawawa == 0 then
        wawawa = 1
        mwaow.Material = Enum.Material.Neon
        while mrow.Orientation.Y > -45 and Meooon < 25 do
            if mrow.Orientation.Y > -45 then
                mrow.Orientation -= Vector3.new(0, 1, 0)
            end
            if Meooon < 25 then
                nyaaa.Color = Color3.new(nyaaa.Color.R - 0.04, nyaaa.Color.G - 0.04, nyaaa.Color.B - 0.04)
                mwaow.Color = Color3.new(mwaow.Color.R + 0.04, mwaow.Color.G + 0.04, mwaow.Color.B + 0.04)
                Meooon += 1
            end
            task.wait(0.01)
        end
        mrow.Orientation = Vector3.new(0, -45, 90)
        nyaaa.Material = Enum.Material.SmoothPlastic
        nyaaa.Color = Color3.new(0, 0, 0)
        mwaow.Color = Color3.new(1, 1, 1)
        Meooon = 0
    else
        wawawa = 0
        nyaaa.Material = Enum.Material.Neon
        while mrow.Orientation.Y < -30 and Meooon < 25 do
            if mrow.Orientation.Y < -30 then
                mrow.Orientation += Vector3.new(0, 1, 0)
            end
            if Meooon < 25 then
                nyaaa.Color = Color3.new(nyaaa.Color.R + 0.04, nyaaa.Color.G + 0.04, nyaaa.Color.B + 0.04)
                mwaow.Color = Color3.new(mwaow.Color.R - 0.04, mwaow.Color.G - 0.04, mwaow.Color.B - 0.04)
                Meooon += 1
            end
            task.wait(0.01)
        end
        mrow.Orientation = Vector3.new(0, -30, 90)
        mwaow.Material = Enum.Material.SmoothPlastic
        nyaaa.Color = Color3.new(1, 1, 1)
        mwaow.Color = Color3.new(0, 0, 0)
        Meooon = 0
    end
end)```

Rate this massive code whose sole purpose is to make a switch move ๐Ÿ˜ญ
celest bloom
#

the carbon levels are through the roof

astral magnet
humble maple
#

it pains me how I can't just do CFrame.Position.X = ...
what was Roblox thinking ๐Ÿ’”

modern seal
wind portal
modern seal
#

i love trolling my partne

wind portal
astral magnet
modern seal
#

when he tabs back in :333 jumpscare boo

celest bloom
humble maple
#

does that not impact performance, or does Roblox have some sort of automatic pooling system

celest bloom
#

barely

#

they get assigned to the stack im pretty sure

#

the memory is negligible

celest bloom
humble maple
#

I see, it's crazy how limited Roblox too, I mainly code my games using frameworks so not being able to do some stuff in Roblox that I'm able to do in there is shocking

#

for example, UI not having blend modes for whatever reason

celest bloom
#

making a table of the vector3
{X = 13, Y = 42, Z = 32}

#

would be more expensive than making a vector3 directly im pretty sure

haughty trail
#

?

#

there is a builtin vector type aswell

wind portal
#

Weld constraints.

haughty trail
#

take a look at it

celest bloom
cedar bough
hasty crater
celest bloom
#

not what i was talking about

hasty crater
#

oh well

indigo ice
slender light
#

does anyone know how to properly make it so an impact particle set like, emits properly on like explosion

deep terrace
slender light
#

like without the rapid spam

#

of the particles

ruby kite
versed arch
#

maybe someone in vfx can help

tulip quarry
#

How long of a scripting experience should some1 be recommended to have before doing commissions ๐Ÿค”

regal salmon
versed arch
indigo ice
#

Is it 1 yr

regal salmon
#

but there are jobs that take less

distant hamlet
#

years of experience doesnt mean shit

minor jacinth
distant hamlet
#

as long as you have decent works u will get hired

minor jacinth
#

just use claude and dont take comms skip to being a solo dev

distant hamlet
#

theres a reason ur unemployed

hollow summit
distant hamlet
#

some are picky about tools

#

so it is a good idea to familiarize urself with the skid standards

cloud garnet
#

yo

#

can anyone help

#

why isnt this working

#

local button = script.Parent
local frame = game.StarterGui.ControlsGui.TargetGUI

button.MouseButton1Click:Connect(function()
frame.Visible = true
end)
print("done")

distant hamlet
#

starter gui

#

use player gui

#

and dont ask how

#

look it up

cloud garnet
#

im lowk dumb ty

#

oh wait

#

ur dumb

#

i alrdy have it in starter gui

fringe urchin
#

yall i have 1 video left in the brawldev guy beginner playlist but idk if i should watch the advanced one(since its 19h long) or idk do smthn else
people in his server r telling me to watch it

solid pecan
#

yo chat im willing to work as a (scripter) for anybody with a good game idea, DM me (free of any charge btw, doing this for experiences)

azure jay
iron kraken
#

GRAH

kindred pulsar
#

yall give me an idea for a system to make

kindred pulsar
shell saddle
#

do anyone know how to make perfect sound regions?

#

like hard regions so they wont fade

jovial moat
shell saddle
jovial moat
#

You're not looping

shell saddle
#

then im dumb or smth

jovial moat
#

Tbh I'm sure there is something on the DevForum or GitHub for it

humble maple
tulip quarry
kindred pulsar
real mantle
#

Does anyone know a workaround for BreakJointsOnDeath

ember nimbus
tacit peak
#

Anyone know how I would handle rendering a bunch of 3d meshes in my engine with opengl, I thought about using a entity component system with a render component but idk if thats the best way to do it

versed arch
tulip quarry
lost fractal
#

well, doesn't have to be good, just decent

fringe urchin
#

yall i just finished some beginners playlist idk what i should do now if i should move to the advanced playlist or not

modern aspen
modern aspen
echo stream
#

maaaaaaaaakeu somethingu

fringe urchin
fringe urchin
#

im not gonna make a game i hate long term projects

modern aspen
lavish sphinx
#

If you feel confident move on if not practice making random things that use what you learned from the first playlist

modern aspen
#

or maybe it just not for you

fringe urchin
#

course*

modern aspen
#

you will eventually burn out if you hate programming on luau, so yeah

fringe urchin
#

but hte docs r for explaining like niche stuff arent they?

#

i havent found any written courses for luau

modern aspen
fringe urchin
#

isnt ai bad at luau?

#

someone told me that

lavish sphinx
#

Not if you know what to say

modern aspen
#

claude - no, but I mean other thing

lavish sphinx
#

I use Claude to help design stuff

modern aspen
#

summarize HUMAN written material, you can find resources of it online for free

fringe urchin
#

i use cladue for everythign other than coding lol

#

ohh okok i get it

modern aspen
#

claude is the best for coding, but is decent for everything else

lavish sphinx
#

Have you hooked Claude up to studio?

fringe urchin
modern aspen
#

dont do it

#

you will be depended on it and its bad as novice in luau

fringe urchin
#

im gonna stop coding and start vibecoding lol

modern aspen
#

yeah

echo stream
#

yall just convinced this poor guy to vibecode

fringe urchin
#

u got good resources btw?

modern aspen
#

anyway, learn something only when you need it, maybe it will be better case for you

lavish sphinx
#

I use it but I donโ€™t let it code for me I just use it to help work through bugs

echo stream
#

im cryen

modern aspen
fringe urchin
lavish sphinx
#

Itโ€™s super useful when it can look through the code itself

modern aspen
#

i generally said, summarize material, not use it

modern aspen
#

it will end bad

fringe urchin
#

anyways i found a good challenge list im gonna try and do them
but do yall have like good resources?

modern aspen
#

when you know what are you doing - it can be helpful

fringe urchin
lavish sphinx
modern aspen
#

if Im doing fighting game, I will read only about these mechanics and look how are they done

lavish sphinx
#

If you donโ€™t already understand luau really well donโ€™t use ai yet

fringe urchin
#

like to get better at luau

modern aspen
#

after my code is ended - I can ask people on this discord what is good/bad in my code so they recommend to fix it in my next projects

fringe urchin
#

im not doing any games ngl i dont like doing any long term projects

modern aspen
#

its basically it

fringe urchin
#

ohh so i just spam every code i make here?

modern aspen
#

you can just do something simple

fringe urchin
#

ye i did a welcome message system
local phrases = {"Welcome!", "Glad you're here!", "Let's go!"}

game.Players.PlayerAdded:Connect(function(player)
local random = phrases[math.random(#phrases)]
print(player.Name, random)
end)

lavish sphinx
#

Start by making basic things like leaderstats or basic systems

fringe urchin
#

i stole the phrases frrom ai because i dont got any welcome phrases in mind

#

the rest is all me tho

#

lowkey the auto complete in the editor is quite useful

modern aspen
#

its kinda dumb btw

fringe urchin
#

but useful

modern aspen
#

anyway, find something that you want to do and just do

lavish sphinx
#

Sometimes it hallucinates worse than the ai

modern aspen
#

thats all, no secret

fringe urchin
#

i thought they make their ai assistant auto complete

lavish sphinx
#

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

modern aspen
#

every coding session - can feel like short-term if you are in the flow state

#

so just find something that fits you

#

we cannot do it for you, cuz you know yourself better

#

or just join any gamejam

#

thats how I learned a lot

fringe urchin
#

is wait() and task.wait() different?

fringe urchin
#

i thought only like yk real games have these

lavish sphinx
#

Only use task.wait

fringe urchin
#

why?

fathom pebble
modern aspen
#

like youtubers do it

icy heron
fringe urchin
fringe urchin
modern aspen
#

learn as you go, why you stop yourself

fringe urchin
#

ok thanks i didnt know roblox has them

snow veldt
#

but sometimes wait can have a delay when it resumes thread

fringe urchin
snow veldt
#

Heartbeat is just an event that fires every single frame

fathom pebble
celest whale
#

hello evryne

is there any way to wait until map loads on server's / client's side?

versed arch
#

oh wait

fathom pebble
#

Wait for child better

versed arch
#

yeah just do waitforchild

fathom pebble
#

Makes more sense then task.wait

celest whale
#

if the map is big

#

so i need or a way to wait until map fully renders and loads, or a way to load it faster

#

thats what im asking

fathom pebble
versed arch
icy heron
#

Doesnt replicated first do something rekated to it

fathom pebble
#

Alternatively always keep the map loaded but switch off its visibility and collides

celest whale
#

like it loads part-by-part

celest whale
celest whale
versed arch
icy heron
#

Havent had a reason to uss it yet so idk exactly

versed arch
fringe urchin
#

uhh i feel like the script is bad
local part = script.Parent
debounce = false
part.Touched:Connect(function(otherPart)
local player = otherPart.Parent:FindFirstChild("Humanoid")
if player and not debounce then
debounce = true
local Part = Instance.new("Part")
Part.Name = "Rain"
Part.Parent = game.Workspace
Part.BrickColor = BrickColor.Random()
x = math.random(-100, 100)
z = math.random(-100, 100)
Part.Position = Vector3.new(x, 100, z)
task.wait(1)
debounce = false
end
end)
like idk i feel like its too long just to make it rain 1 part in a ccustom postion in a custom color whenever i touch a part

#

r scripts supposed to be this long for simple stuff?

#

oh i also forgot to make some variables local lol

versed arch
#

or yk you can make a function and call it

fringe urchin
#

uhh im too lazy ngl it was just a challenge

signal valve
#

are cframes comparable with numbers

#

like (cframe) >= 1000

remote bear
#

to compare location or rotation you would have to say CFrame.Position.X >=1000

novel parrot
#

whats exactly wrong from deprecated stuff

naive mica
#

anyone wanna help me in my game

paper flame
naive mica
#

lemme tell u priv

icy dew
deft ibex
#

day 2 of learning to script, im making good progress I would say! If my code is unorganized is there any tips I can use to make it more organized?

hoary cedar
#

You've already grasped boolean expressions more than most at your stage

#

Great job with canBuy

#

In Luau, it's conventional to localize all variables with the local keyword

#

wait is also long deprecated. Use task.wait from hereon

naive mica
#

anyone wanna help me in my game

visual tree
grim hemlock
deft ibex
#

heres the updated one tho

hoary cedar
#

You can also take advantage of string interpolation, now that it's a feature in Luau:

print(`You have {playerGold - swordPrice} gold left!`)
deft ibex
#

whoops

visual tree
#

I genuinely get flashed when you show those SS

hoary cedar
visual tree
deft ibex
glossy slate
#

lkojljjbjydsjtf.oukh.nkiu7f,i6f]

#

jehhkhhejaalghekjslalfshsbdjnvnsnak lieih oehoaklhahldlhkksjdhlhalsdjndlgal wa huet.huyw iu. lt4iu 4 iu. yt4 uukhhj hgewtui3qt iy ;3lou9l.guhjgekwUgh.ewilH>w iUTgk.urgyk.ugyuhywiwluysek,ugh.K*U YFH.kauyuek.u hywe

deft ibex
#

what

visual tree
#

What

grim hemlock
# deft ibex here

This is good for a 2nd day scripter tbh, but just so you know later on when you are gonna build an actual game, you might wanna use event function (remotes, local script and server script) and maybe not use task.wait before/after you print something, unless you are trying to do smth else. You can use print after doing something, like maybe at the start of the event function you can do the first print statement, then see the weapon cost, etc. But overall, its good

versed arch
deft ibex
deft ibex
grim hemlock
versed arch
grim hemlock
#

Mb I think i got a lil too far. You should master the basics first. Thats my bad.

#

Also your canbuy looks like it is a variable, so you might want to put local before canbuy. Like, local canBuy = playerGold >= swordPrice and playerLevel >= swordLevel

deft ibex
#

also is it valid to rip free models and try to understand their code

grim hemlock
#

I guess

#

But try to learn from tutorials as well. Also

#

Be careful of these lines in a free model

#

require(random numbers)

Replace the random numbers with actual random numbers. These are viruses in free models

hoary cedar
#

The code quality is subpar

grim hemlock
regal salmon
grim hemlock
#

Alr thx

plush badge
#

does someone know a roblox 2 discord public bot

inland dragon
plush badge
inland dragon
#

Or learn how to code

winged bough
#

yo does anyone know how I can accept user input in a rolox plugin, like delete key to delete something, or Control Z and Y to undo and redo?

plush badge
#

Ik alrezdy im gon be struggling him

weak flax
#

yo does anyone know how to use ui gradiants? that could help me rq

inland dragon
weak flax
inland dragon
#

Ask ai

deft ibex
indigo torrent
# deft ibex what about newer models if I find any

honestly, i dont know about current but search simulator kits and try to change its currency name and etc and try changing it up a bit

That would give you a good practice and the code is fairly simple too

#

Thats the way i learnt scripting, without any tutorials

deft ibex
deft ibex
#

its duolingo for coding and it isnt visualy good

#

but its working

weak flax
hoary cedar
#

That's the point of this channel

weak flax
#

oh

#

could u try to do this??

hoary cedar
weak flax
#

its a power wheel

#

for a game

weak flax
autumn oyster
#

do any professional devs in here actually regularly use the debugger?

hoary cedar
#

I'd need to see more states

#

@weak flax

autumn oyster
#

it seems like a huge hassle to use to me it only comes in handy sometimes

weak flax
#

i have no idea on how to use ui gradients

autumn oyster
#

maybe if i pulled up the game view on one monitor and code on the other

#

so switching between code and viewport isnโ€™t annoying

autumn oyster
hoary cedar
#

print calls are redundant as you can log messages via the debugger. You can even make them conditional

hoary cedar
#

You can enable or disable them in one place, and remove them all at once

#

Being able to iterate through your code and observe state change on a wider scale is much better

autumn oyster
#

thatโ€™s true

#

and on paper

#

to me it sounds so much better

#

but maybe it just takes some getting used to

hoary cedar
#

It is infinitely better. It comes in handy with more complex code, like recursive algorithms

hoary cedar
autumn oyster
#

okay iโ€™ll give it a proper try

#

do you ever use print statements when youโ€™re too lazy to open the debugger lol

hoary cedar
#

Rarely

weak flax
autumn oyster
#

alright thank you man your feedback was amazing

weak flax
#

could u try to do it pls?

hoary cedar
# weak flax wdym

You haven't given me enough context on how the gradient works with the GUI

weak flax
#

ok

hoary cedar
#

I need to see the power wheel in different states

weak flax
#

thats it

#

its always in that state

#

when u go mad power

#

the full thing is full

autumn oyster
#

one last question but itโ€™s a bit more personal, do you work in a studio?

#

or a team i guess

weak flax
#

the colors will stay the same no matter what power

hoary cedar
weak flax
#

@hoary cedar

#

heres an example

#

of what u mean

autumn oyster
#

did you find the studio or did they find you?

weak flax
hoary cedar
#

But I techncially found them

weak flax
#

@royal hamlet

#

yo

hoary cedar
autumn oyster
#

does project structure typically vary hugely between teams? is there one specific structure that teams stick to?

#

atm i use a pretty solid system that follows the SRP

#

everything is grouped in folders by feature

#

all code and assets for that specific feature lives in the folder

#

could i expect something like that or something wildly different

weak radish
autumn oyster
#

itโ€™s something iโ€™m very good at and enjoy a huge ton

weak radish
#

do we look like roblox admins

hoary cedar
#

How does one unban your account? Lol

hoary cedar
#

Funnily enough, the structure I loved the most was a feature-per-folder architecture

hoary cedar
weak radish
autumn oyster
autumn oyster
#

this is exactly how i structure my projects wtf

#

thatโ€™s sick

#

atleast extremely similarly

#

i expose public functions for the feature through a module script

#

with a script that initialises the module script

#

in the future i was planning to add a single bootstrapper that calls init on all the modules but i wasnโ€™t sure how to go about that so ive been putting it off for now

weak radish
autumn oyster
#

and making a text file full of rules

#

is actually a really good idea

#

i never thought of

#

i sort of keep track of the rules mentally

#

iโ€™ve some such as if a service is ever used at all in the module

#

it must be defined at the top

#
local MarketplaceService = game:GetService("MarketplaceService")```
#

helps with context when initially opening the script

autumn oyster
remote bear
ocean ferry
#

Is the game like flighting simulation or sum

#

i recently started make a game from scratch and im not using much modules

autumn oyster
#

iโ€™d say itโ€™s just a quirk of how my game is organized

#

mentally i know where everything is and what everything does

ocean ferry
#

Idk why i personally think many modules its a problem

autumn oyster
#

and where all the functions for a specific action are

autumn oyster
ocean ferry
#

I work on a game was FULL OF MODULES EVERYWHERE

autumn oyster
#

thereโ€™s no problem with doing what iโ€™m doing

autumn oyster
ocean ferry
#

i had to do some hardcoding and re-adapt the stuff for make it work and an actually unexploiteable cuz stuff like stuns and others was clientsided instead server sided

#

Stamina client sided praysob

autumn oyster
#

stamina usually should be client sided

ocean ferry
#

Yes and no

autumn oyster
#

if itโ€™s only used for sprinting

ocean ferry
#

For racing game with ping factors you can make a small window of verify if you have the right calculations

autumn oyster
#

the player has network ownership over their character

ocean ferry
#

Actually anti WS for racing games its possible if u use a custom formula

autumn oyster
ocean ferry
#

I love do anticheats

#

and break them

autumn oyster
#

but if you donโ€™t have a movement ac

ocean ferry
#

im used to hop on random games and check any vulnerability

#

i get used to break monad studio games

autumn oyster
ocean ferry
#

Rogue and deepwoken

autumn oyster
#

have you ever played azure mines

ocean ferry
#

I heard about iot

#

it*

autumn oyster
#

really sophisticated dupe for it

#

jailbreak?

ocean ferry
#

obv

autumn oyster
#

dupe for it too lol

#

bedwars?

ocean ferry
#

nope

autumn oyster
#

60k active players with serversided execution ๐Ÿ˜ตโ€๐Ÿ’ซ

ocean ferry
#

x d

#

in rogue i found a pretty technical vulnerability

#

did u hear or played rogue lineage?

autumn oyster
#

iโ€™ve heard of it but never played it

ocean ferry
#

so i can explain a rng manipulation

#

there is a zone where u can rerol lfor 250 silver a random spell right

#

there some spells are hard as hell for get BUT

#

since the shit lua uses a 32 bits based formula will select the smaller values

#

so i found a form for manipulate the rng by checking the memory pages with another math.random call

#

like reroll face aspect

#

until i found the correct memory address and match it with a seed equal to the shit i want

#

boom free race rerolls, free spells

autumn oyster
#

memory addressโ€ฆ?

ocean ferry
#

manipulating the fucking reality

#

i kinda need re explain it cuz was long time ago

autumn oyster
#

the math.random calls are made on the server

#

what are you talking about what memory address dude

ocean ferry
#

let me

autumn oyster
#

actually tapping into roblox server memory lmfao

ocean ferry
#

explain a sec im kinda dumb for it

autumn oyster
#

dude what

ocean ferry
#

this works brute forcing mathrandom global state or the random.new nextnumbers() states through leaked high precision outputs and forcing the server call the functions until i reach the state i want

autumn oyster
ocean ferry
#

the number its created thorugh 2 random calls merming two 32 bit unasinged integers into one before casting it into a double

#

upper32 bit are discarted so only the lower ones are used

autumn oyster
#

but

#

if i remember correctly, no matter how hard you try you can reverse a seed from even a thousand math.random outputs that are straight number outputs it wonโ€™t work

#

forget high-precision outputs

ocean ferry
#

as i said i can get the leaks with the free random calls like reroll face or mana color

Since the gacha uses a system randomly sets the viewport ambient and lightcolor to precise color values

#

rbx luau math.random uses the pcg32 algorithm its easy to brute force

autumn oyster
#

you canโ€™t brute force the pcg32 algorithm

#

thatโ€™s what i was literally just talking about

#

you know what

#

i could actually be wrong

#

but

#

i remember looking into this before and that being the case

ocean ferry
autumn oyster
#

how precise were the outputs?

ocean ferry
#

when i found the state u can locally bruteforce it and simply increment the state ingame until u reach the one i waint, this done through actions that make server call math.random or nextnumber depending of game

#

actual engineering just for roblox

autumn oyster
#

if your number output isnโ€™t completely spot on seed recovery becomes infeasible

#

where did you get raw math.random outputs from?

ocean ferry
#

i gotta found all my setup

#

this shit was funny until someone leaked it

autumn oyster
#

on the server

limpid fern
#

oop wrong channel

autumn oyster
#

lol

limpid fern
#

I've never understood how to PROPERLY store temporary data like votes or similar

#

same goes for server age and etc

autumn oyster
#

use a dictionary of arrays

#

so

ocean ferry
#

im never going to repeat that crazy shit i did fr

#

btw its patched now

#

๐Ÿ”ฅ

#

its harder get the fucking states unless the game its made wit hthe ass

limpid fern
autumn oyster
#
local votes = {
   FFA = {},
   Team = {}
}```
limpid fern
#

would i make it a module or smth

autumn oyster
#

then clear it after

ocean ferry
autumn oyster
#

you could just honestly have it stored in a variable in your voting script

#

assuming it wonโ€™t need to be accessed by other scripts

limpid fern
#

its just a gamemode and map voting system

autumn oyster
autumn oyster
ocean ferry
#

im just trolling

autumn oyster
limpid fern
#

but then should i store players usernames inside it or numbers like 1, 2, 3

autumn oyster
#

as an array

#

so

#
table.insert(votes.FFA, player)```
#

then you can do

limpid fern
#

yeah

autumn oyster
#

print(#votes.FFA)

#

and check what array is the largest and continue with your logic there

autumn oyster
#

and either donโ€™t let him vote or remove his old vote and add the new one lol

limpid fern
#

yup

#

tysm

jagged mortar
#

@stark kernel

#

Look at dms @stark kernel

regal salmon
#

๐Ÿ’€

cloud vigil
#

yoo

#

anyone here

regal salmon
#

whats up

cloud vigil
#

wth

regal salmon
#

nice try lol

cloud vigil
#

alr LOL

#

uh, can you help me understand parameters, its the only thing holding me back

regal salmon
# cloud vigil uh, can you help me understand parameters, its the only thing holding me back

parameters are essentially variables that you set when you call a function, and can then be used in that function
for example:

function myFunction(parameter1, parameter2)
  print(parameter1) -- will print "Hello, World!"
  print(parameter2) -- will print "Goodbye, World!"
end

myFunction("Hello, World!", "Goodbye, World!") -- passes the strings as parameter1 and parameter2
#

you can also pass in variables as parameters

#
function myFunction(parameter1)
  print(parameter1) -- will print "Hello, World!"
end

local myString = "Hello, World!"
myFunction(myString) -- passes the string varialbe as parameter1
cloud vigil
#

hm ok

#

i see them used a ton

#

and it still is fuzzy to me

regal salmon
#

yes they are very useful lol

cloud vigil
#

can u give me a better exampole

#

of something in a simulatior

regal salmon
# cloud vigil of something in a simulatior

say you want to add money to a player's balance

function addMoney(player, amount)
  -- assumes leaderstats exists and adds the amount passed to the player's money
  player.leaderstats.Money.Value += amount
end

-- example method of obtaining a player
game.Players.PlayerAdded:Connect(function(player --[[this is also a parameter]])
  local amountToAdd = 20
  addMoney(player, amountToAdd) -- will add 20 coins to the player's balance
end)
royal marten
#

Can you explain why we have to use pcall?
Instead of doing if nil == return

In context of detecting whether a player joined for the first time

cloud vigil
regal salmon
regal salmon
royal marten
royal marten
#

Interesting

regal salmon
#

instead pcalls return whether or not it succeeded, and the returned result

#

if it errored, the return value will be the error message

cloud vigil
regal salmon
#

if not, then itll just be whatever the code returned

cloud vigil
#

i understyand it just a little bit more now lol

regal salmon
cloud vigil
# regal salmon i'm not sure what you mean by that
  -- assumes leaderstats exists and adds the amount passed to the player's money
  player.leaderstats.Money.Value += amount
end```
for player and amount wont u have to do like amount = game.workspace.etc
tribal mango
regal salmon
#

it allows you to reuse the code for different variables

regal salmon
#

it was example code i was explaining parameters ๐Ÿ’”

tribal mango
#

use monads for the player's data

#

๐Ÿ‘

cloud vigil
fringe chasm
#

@cloud vigil fire a event when adding money

#

And add it in profile service

regal salmon
#

profilestore drool

fringe chasm
#

Store*

#

Yea

regal salmon
#

have a module that allows you to get player profiles

cloud vigil
#

are yall familiar with brawl dev begginer guide last video

regal salmon
#

thats what i do

#

no

cloud vigil
#

abnyways

#
local dooors = game.Workspace:WaitForChild("dooors")
local debounce = false

button.Touched:Connect(function(hit)
    if debounce == false and hit.Parent:FindFirstChild("Humanoid") then
        debounce = true

    
        button.Transparency = .5
        button.Material = Enum.Material.Plastic
        button.BrickColor = BrickColor.Red()

    
        for i, v in dooors:GetChildren() do
            if v:IsA("BasePart") then
                v.Transparency = .8 -- Use 'v' here, not 'dooors'
                v.CanCollide = false
            end
        end 

        task.wait(10)

        
        for i, v in dooors:GetChildren() do
            if v:IsA("BasePart") then
                v.Transparency = 0 -- Use 'v' here
                v.CanCollide = true
            end
        end 

    
        button.Transparency = 0
        button.Material = Enum.Material.Neon
        button.BrickColor = BrickColor.new("Bright green")

        debounce = false
    end
end)```
#

this is what I made to open doors and close

solemn mason
tribal mango
#

profilestore ๐Ÿฅ€
datastore โค๏ธ

regal salmon
cloud vigil
#

idek if thats what u just said lol

solemn mason
#

ye some like that

#

not very efficient

cloud vigil
#

i'm watching the better way to do it

#

by using pairfs

#

and :getfirstchild

solemn mason
#

alright

#

well that's good

cloud vigil
#

still learning

solemn mason
#

ye gl

cloud vigil
#

how much do u know

solemn mason
cloud vigil
#

did u watch brawldev

solemn mason
#

nah

#

i didn't

cloud vigil
#

how did u learn

solemn mason
#

I just read documentation and looked at the devforum

cloud vigil
#

u read everything

#

how

solemn mason
#

but everyone has his personal preference

cold stone
#

yo chat anyone mind checking out my game, and giving me feedback, i still have to optimize and im still improving the map but if anyones willing to work for a percentage dm me, also if ur a reverse engineer lmk if theres any backdoors or whatever thank you.

https://www.roblox.com/games/130983047740034/Mow-Go#ropro-quick-play

Join our group for coins aswell as send me ur id for a chat tag and rewards

Roblox

๐ŸŒฟ Mow Go! ๐ŸŒฟ
Start small. Mow big. Become a legend.
Cut grass, earn coins and upgrade from a push mower to the legendary Rainbow Mower! ๐Ÿšœ๐Ÿ’จ
๐ŸŒฑ 10+ mowers to unlock
๐ŸŒ New worlds coming soon
โ™พ๏ธ Infinite rebirths with stacking bonuses
๐ŸŽ–๏ธ Join our group for a FREE coin reward!
๐Ÿ’Ž Roblox Premium? Enjoy 1.5x coins automatical...

royal marten
#

In Roblox, can you associate to a player an invisible tag?

Ex: The use of it would make sure that the proper quest order is displayed

sullen fox
royal marten
#

Give invisible tag to player who completed the quest so you can do something like

If player.Tag1 = true then
Print ("Quest #1 accepted")
Else print ("Quest #1 has NOT been accepted")

tribal mango
#

or is it sequential

sullen fox
#

Falls under table category
use ipairs(lorearray)

tribal mango
#

do that if they are sequential and not able to be accepted out of order^

sullen fox
#

even if they are itโ€™s still a viable option (just find the index in the lorearray)

royal marten
void tusk
tribal mango
void tusk
#

its not necessary and technically slower

celest cipher
#

ts a good thumbnail for a horror retro game

#

?

runic nimbus
#

Not scaryy

hollow frost
regal salmon
ruby silo
rotund pawn
#

Any recomended way to implement Climbing on walls? I want to keep it locally. RayCast? Attribute? CollectionService?

hazy imp
#

trusses ๐Ÿ’€

#

๐Ÿ˜ญ

icy heron
rotund pawn
icy heron
rotund pawn
#

I do not see reason to create Custom Controller for that.
I just need some optimal way to handle all climbable walls

fathom pebble
#

One way is to set up a whitelist and then recreate truss mechanics on anything within the whitelist of parts and then import your own anim.

#

Other way is to listen to somebody who has experience scripting idk

red garnet
foggy perch
#

it's not a code but hridyansh23911's server using fake bloxlink don't apply the job or don't do the bloxlink

#

in scripter-hiring

distant hamlet
#

@lone cave

foggy perch
#

yea

distant hamlet
#

u slimy fuck

icy heron
#

THE @foggy perch

#

HOW DARE HIM

foggy perch
#

it's jst a warning

#

my account got hacked

#

so

distant hamlet
#

he got called out once

foggy perch
#

I'm not criticizing him but if it's not on purpose then it must be fixed

#

Keep safe and healthy

rotund pawn
willow maple
#

Bro what is this error

foggy perch
#

rizzfarm

rotund pawn
#

ChatGPT generated code?

willow maple
rotund pawn
#

Then fix datastore queue

regal salmon
cold stone
#
Roblox

๐ŸŒฟ Mow Go! ๐ŸŒฟ
Start small. Mow big. Become a legend.
Cut grass, earn coins and upgrade from a push mower to the legendary Rainbow Mower! ๐Ÿšœ๐Ÿ’จ
๐ŸŒฑ 10+ mowers to unlock
๐ŸŒ New worlds coming soon
โ™พ๏ธ Infinite rebirths with stacking bonuses
๐ŸŽ–๏ธ Join our group for a FREE coin reward!
๐Ÿ’Ž Roblox Premium? Enjoy 1.5x coins automatical...

void garnet
void garnet
jaunty hollow
halcyon cypress
#

๐Ÿคฎ

mystic void
#

hi,

is there any tool/linter to catch potential memory leaks during development?
I am using selene, but it dosen't seems to do anything besides catching wrong syntax
I am talking about a tool for example that check for non-closed connections of Runservice

halcyon cypress
#

hmm

#

i dont think that is possible to make

#

in studio

mystic void
#

ye
combine it in vscode or via CI/CD

halcyon cypress
#

oh

#

then idk

mystic void
#

ok

tardy pasture
tardy pasture
kind shore
#

guys can anyone tell me why this toggle is not in center. or is it ?

#

any human plz reply

regal salmon
#

looks centered to me

dusky relic
kind shore
dusky relic
kind shore
#

thanks for advice

heavy elk
kind shore
heavy elk
dusky relic
heavy elk
#

It might be because of the effect

dusky relic
#

@heavy elk Did you do everything?

dusky relic
#

Like everything everything

#

also yeah it's not centred

heavy elk
kind shore
#

yeah this one is different

dusky relic
kind shore
#

now i centered it by MCP claude

dusky relic
#

excluding the template images of course

kind shore
dusky relic
#

oh wait

heavy elk
#

Yeah I got lost too

kind shore
#

lol

dusky relic
#

I pinged the wrong person

#

@kind shore I'm talking to you

kind shore
#

yes i did everything

#

but UI figma files are AI genereted by the client

heavy elk
dusky relic
#

How df do you AI generate figma files

kind shore
#

you do it by stitch . google stitch it generated UI and you can export it in figma

heavy elk
#

I thought the images are

kind shore
#

no frames is in engine bruh

heavy elk
#

But can it do ui elements?

#

Like icons and stuff

kind shore
heavy elk
kind shore
#

images and effects , animations

heavy elk
#

So the distortion is ai?

kind shore
#

what distorntion ?

heavy elk
#

The effect in the video

kind shore
#

no that's a code AI generated to show you can make somehting like this

heavy elk
#

Ok I get it seems useful I will look into it

kind shore
kind shore
#

i connected claude dekstop to roblox engine by mcp

#

best thing i have done till now

heavy elk
#

Ai is getting too good

#

Gotta try the mcp

kind shore
heavy elk
#

I use agents in my editor for code but I have always doubted the ui and building skills of ai

kind shore
heavy elk
kind shore
#

100 bucks

heavy elk
#

How quickly do you burn through the prompts with opus?

kind shore
heavy elk
kind shore
#

yeah but 5x is way way huger . I did thought 5x is small but it's way bigger

heavy elk
#

I will definitely invest in it when I start making money from Roblox

#

I see you do ui have you ever tired the figma to suito stuff?

kind shore
heavy elk
kind shore
#

yeah i don't use this engine much . I am a professional unity dev tho

#

so yeah in my exp i didn't used figma to roblox till yet. But claude can do that good

heavy elk
heavy elk
#

Is the mcp free without a plan?

kind shore
#

is fusion some game ?

heavy elk
kind shore
kind shore
heavy elk
heavy elk
primal escarp
#

I've been coding for almost a year now and I wanna know if there are some sort of tricks other devs use to optimize communication between client and server?

#

Like lets say I want input from the player, so if i dont want inputs from players then I just simply put a check in the client but my concern is the exploiters, they can still spam remotes and it can cause some sort of lag

kind shore
primal escarp
kind shore
#

this is very fast but unreliable

primal escarp
#

thanks, I'll look into it

hearty lion
#

Inputs as in the keys they press I assume?

#

Oh, "input" as in just data

hearty lion
primal escarp
primal escarp
marsh cargo
#

Can somone Help me Turn a pet system Server Code into Local Script? Because i want it to be smoother dm me

hearty lion
versed arch
#

i doubt this'll work

versed arch
hearty lion
marsh cargo
primal escarp
#

thanks so much

versed arch
marsh cargo
versed arch
marsh cargo
#

no its probably because server scripts use like ping and a local script is local so it uses your fps for movement itd

primal escarp
#

yea using localscript for that is a better approach

elfin timber
#

hi
someone told me to use Use RunService.Heartbeat for loops instead of while true do
is that true?

primal escarp
#

yes

marsh cargo
primal escarp
marsh cargo
peak furnace
#

i can help you out

#

whats your current issue?

marsh cargo
marsh cargo
peak furnace
#

gotcha

#

dm me it

marsh cargo
manic hare
versed sierra
#

How do yall send a system notification using rblx TextChatService

heavy elk
bleak glade
bleak glade
#

the Channel should be a TextChannel

versed sierra
#

Or im blind

versed sierra
#

๐Ÿ˜ญ

dense spade
#

ill watch

simple epoch
#

im gonna try to learn c#

regal salmon
#

c# was my first language

simple epoch
#

i know only lua and python so this is very different

regal salmon
#

oh lol yeah quite different syntax

cold pebble
sullen fox
gusty axle
#

is anyone here familiar with rojo?

wind portal
#
local DogClass = {}
DogClass.__index = DogClass
setmetatable(DogClass, AnimalClass)

function DogClass.new(name, age)
    local dog = setmetatable({}, DogClass)
    
    dog.Name = name
    dog.Age = age

    return dog
end

function DogClass:Bark()
    print(self.Name, "is barking!")
end

return DogClass```
tulip seal
#

Can an exploiters change values inside a module script in the replicated storage?

sullen fox
#

only on their side

tulip seal
sullen fox
#

wouldnt it be dogclass = setmetatable({__index = DogClass}, AnimalClass)

sullen fox
versed arch
limpid fern
thorny osprey
static coral
orchid jacinth
#

How would I make my script check if humanoid is actual player and not an npc

versed arch
pulsar lichen
#

ok uhm guys

#

does anyone know if it's really needed to make server sided tool for a bot/npc?
if no, how can I make it like make bot using tool that is client sided so my hitboxes would be more accurate
the only thing I need to know is how can npc use a tool that is client sided, or it's impossible

regal salmon
#

if it's handled on the client, the client can also stop it from affecting them

pulsar lichen
#

I see

regal salmon
#

they could also potentially send fake hitbox registers to the server depending on what youre doing

pulsar lichen
#

okay

#

thank you I guess

regal salmon
pulsar lichen
# regal salmon if you *really* want to (which again i dont recommend), you can create a script ...

the thing is basically I have a server sided script with custom raycast and Pathfinder, I've been trying to make something like bot activates his tool which is client sided
in local script I have RemoteEvent on server registration which gets the same arguments from the client if it's not changed, so I've been wondering how would I actually make bot activating his tool
I've seen some games were saying they did that, but I have never actually found a way to do it the same lol

pulsar lichen
regal salmon
#

you could make lag compensation smugstare

pulsar lichen
pulsar lichen
regal salmon
#

essentially you save a collection of snapshots of a hitbox's positions, then when a client requests to hit in a specific location, you go back to the snapshot where the hitbox would have been at the time of the client's request on their side to see if it really hit

pulsar lichen
#

well, thank you I guess, I'll figure out more abt this all, I have never thought it's gonna be a little bit difficult with my bot

humble grotto
#

wrong channel mb

regal salmon
blissful arch
#

Where to find someone to run duos with

#

I think Iโ€™d learn faster if I made a larger project

wise turtle
#

Run duos with me

orchid jacinth
#

I was lowkey overthinking it since im a beginner

versed arch
#

but always ask yourself some basic things, even if it may sound obvious

#

i always do it whenever an error pops up, and recently, i managed to solve a really strange error that way

haughty sapphire
void tusk
frigid wagon
#

then why would Ipairs exist if pairs do the same

#

it doesn't make sense

void tusk
#

i mean for loops without wrapping the table in pairs/ipairs does the same

heavy elk
heavy shadow
#

guys what shuld i learn next

heavy elk
void tusk
#

it stops at nil

heavy elk
#

Yeah

void tusk
#

for most situations this behavior is not rlly necessary

#

would stick to generalized table loops unless ur trying to go for compat with lua

heavy shadow
#

is it easy to code an rpg game?

dry sleet
#

Also depends on how complex it is

kind shore
dry sleet
kind shore
dry sleet
#

Like uhhh

#

The only one I can think of is EVE

#

lol

kind shore
#

just $30 puff and you can play it inside your mind