#How to stop rng manipulation

1 messages · Page 1 of 1 (latest)

worthy mortar
#

I saw a rogue vid showing how they manipulate it to make the generation get high values and shit

https://youtu.be/-aC7tTEFVEo?si=7TyA-rEDIMKeoENZ

january 2025. 99% sure this is patched on rogue already.
credits to garfield for thumbnail and for helping me edit
@jayboyroblox500000 on Discord // brick @ https://discord.gg/HMTupzVaSf
https://github.com/jacquesGOAT/pcg32-bruteforce/
like, sub, comment, and hit the bell

▶ Play video
drowsy oriole
#

what is even the question here

worthy mortar
#

How to stop rng manipulation

hidden swallow
#

you know thats only for that particular game right

worthy mortar
#

Not really

hidden swallow
#

if you wanna stop it

#

just use randomseed

#

and get some sort of unique number for player

worthy mortar
#

Each player?

hidden swallow
#

bro

worthy mortar
#

Wait how does that work

#

Would u have to get the specific seed for each player

#

When using math.random

#

I use random.new tho

#

Does that matter

hidden swallow
#

how good at scripting are you

worthy mortar
#

Can u help r is ur ego to big

hidden swallow
#

im just wondering

#

what do you mean is my ego too big

#

😭

#
local seed = os.time() + math.floor(tick() * 1000) + player.UserId * 1234
math.randomseed(seed)
#

there

#

boom,

#

just use that

#

or something

#

and dont leak the code or else ppl will be able to rng manipulate!

#

and make sure to keep this in a server script in serverscriptservice or serverstorage

worthy mortar
#

The seed manipulaties random.new aswell?

hidden swallow
#

then

#

instead of doing math.randomseed

#

do Random.new(seed)

paper oasis
#

What does this even mean 💔

still palm
#

what are you people talking 💔

#

you can't manipulate anything unless you scripted it not safe

#

💔💔💔💔

hidden swallow
#

yeahh

#

which is why i asked 'how good at scripting are you' and then im immediatly hit with 'can you help or is your ego too big'

paper oasis
#

How to stop rng manipulation ☝️

#

Basically how do you stop rng manipulation so its not rng and gives you the same number every time

#

So he's asking how to make a variable

#

Hope this helps

worthy mortar
#

Scripters are actually insufferable

#

Can’t get shit without being called a dumb ass for asking a question

drowsy oriole
#

my friend joined this server to help with scripting 20 minutes ago and he's already losing his mind

#

yeeeah

worthy mortar
#

Do people not know that if you don’t know something your not gonna be the best at explaining it

#

I forget we’re cs majors not psychology

#

Oopsies

#

The only people u should be berating r the people going in scripting to hire or ask to teach them

prime needle
paper oasis
worthy mortar
#

No not really

drowsy oriole
wintry cedarBOT
#

studio** You are now Level 8! **studio

prime needle
drowsy oriole
#

if you're using it to code for you, that's just dodging actually learning to script

worthy mortar
#

It helps me debug sometimes

drowsy oriole
#

if you're using it to help and learn that's productively using it

paper oasis
#

I know how to script but it still writes all my code for me

worthy mortar
#

But if I wanna make something it takes 8 tries to get it right

paper oasis
#

Just faster and solves problems using better solutions

worthy mortar
#

With 100% accuracy

#

Damn I didn’t know we advanced that much

paper oasis
#

You obviously still have to debug and prompt it multiple times sometimes

worthy mortar
#

I should just drop college

paper oasis
#

Still faster though imo

prime needle
#

i hate roblox studio's 'assistant' it barges its way into my script putting random shit and then when i finally get rid of it it leaves giant gaps in my code that i have to restart studio to remove

worthy mortar
#

Yea whenever it does the little suggestion thingy is opens up all move collapsed lines and shit

prime needle
#

like sometimes its kinda close to what i want if its super simple like a killbrick it does it perfectly but when im making a complicated inventory system it will just be like here itemframe:Destroy()??

paper oasis
#

You need to be rewlly specific with it and show it the other relevant code for it to fully understand your system

#

I didnt know how to use async at all but it helped me get a working inventory system pretty efficiently

worthy mortar
#

There is a difference though between calling people “low iq” for using ChatGPT without any coding knowledge and just telling them “no I can't help you”

#

Ngs on here HAVE to inflate their ego by shaming them

drowsy oriole
#

k what are you talking abt

paper oasis
#

Idk he's buggin

#

Upset he cant script i think?

worthy mortar
#

Like talking to a brick wall

#

Anyways I got my help Ty tho

prime needle
drowsy oriole
#

real

worthy mortar
#

I’m saying u just gotta say no I can’t help you or don’t respond at all

#

But nah we gotta throw tomatoes at them an shit

prime needle
#

i leave them a link to a tutorial on youtube

paper oasis
worthy mortar
#

Rng manipulation?

#

One dude did

#

Off the jump

paper oasis
#

The phrase "how to stop rng manipulation" just doesnt make any logical sense

#

Well he's goated ig

worthy mortar
#

Well ig it’s a niece case

#

I’m sure there are exploiters who know abt it

prime needle
#

so rng is usually just a string of numbers that are 32000 characters long.. it runs through it eventually it will just loop to the beginning again. so with enough numbers you can just guess the next number

paper oasis
#

That is not true..

prime needle
#

32767 or something

paper oasis
#

Unless you're talking about a specific game?

#

But math.random is not predictable

prime needle
#

i know the rand function is in C programming

#

but not sure about luau math.random

worthy mortar
paper oasis
#

I dont know about C but in most mainstream languages math.random is very robust and not guessable

paper oasis
#

You're asking how can you stop the player from influencing the output of math.random or similar systems

prime needle
#

C is very old now back then maybe the rand function was good enough back then

paper oasis
#

And the answer is that they typically cant in any meaningful way

worthy mortar
#

The video showcases what I’m worried abt

#

That I posted at the top

worthy mortar
#

It uses this

prime needle
#

ah yeah well thats probably heaps better than what i was talking about

#

well its pseudorandom because eventually it does loop back to the beginning and will eventually repeat the same string but 32 implies that instead of just 32767 numbers its something like 4million and will probably never be guessable

#

32bit integer limit

#

i think 32767 is 8bit integer limit (dont quote me on this)

wintry cedarBOT
#

studio** You are now Level 4! **studio

prime needle
#

oh okay

paper oasis
#

Nevermind youre right

#

My fault 😶‍🌫️

#

Its nkot really a pattern but its an algorithm obviously

#

But if you just keep rng on the server its def secure enough for most cases

worthy mortar
#

Cool

#

Should I generate a seed for the player tho

#

Better safe than sorry

#

I just use the function

#

Without a seed

paper oasis
#

I mean yeah if you want to introduce more variables to influence the randomness you could make it better if you wanted

#

Roblox has a good id system you could use per player

prime needle
#

generate new seed using math.random then run it under math.random and use that to generate another seed for math.random - thatll show em

paper oasis
#

Woah

prime needle
#

i did make a password generater by doing that cus i was worried about pseudorandom making my passwords insecure

worthy mortar
#

Do I need generate it in a player specific script

#

And does the math.random just automatically pull from the seed for the player?

#

Or do I have to call it

paper oasis
#

I looked into this more because i need secure rng for a game im making as well. Math.random is completely fine for most use cases, as long as its done on the server. But if you want it to be completely unpredictable you should use GenerateGUID(false), which geberates a 32 character string capable of 10^36 unique combinations

#

So then you somehow map the output of GenerateGUID to a number

#

I dont know the specifics of the best way to map it yet but thats the gist of it

#

You can also use the output as a seed for math.random at server runtime, which makes math.random essentially unexploitable

prime needle
#

uknow whats better than rng just let a player press stop on the crate spin if its fast enough they will hit stop after the one they want every time

paper oasis
#

Which is usually determined based on the time that the server started

worthy mortar
#

The one I’m making rn is slop 😝