#code-discussion
1 messages Β· Page 128 of 1
you're stuck here forever
Keeping your Game Secure Hmm what does that mean? Keeping your Game Secure (KGS) means protecting your remote calls, proximity prompts, preventing backdoors, etc. This guide/tutorial will teach you the basics of server-side protection for your remote events. Preface You have probably heard the saying from experienced developers, βnever trus...
just read that
@minor cloak
okay ty
me who intentionally adds backdoors cus exploiters deserve some fun
alrightn so
idk wth is "path"
OHH
i get it nvm
holy that was a stupid moment of mine
alright thats lowkey easy, i thought it would be hard.
idk
guys usually how much time does ppl take when u dm them for the scripting work
do you destroy tools in a local or a serverscript?
depends if the tool is client sided or not
if its cloned and parented on the server or placed in starterpack then server
server, kinda obvious
what i ment is
since its server, its kinda obvious where to do it
guys what should I make as a beginner dev?
make blox fruits
and make it as popular as grow a garden
π₯Ά
π₯Ά
i see better scripters do this often, what does this actually help with?
Alr
who can do this for 3 k robux
Intellisense
thats easy af
do a part, change texture
yk
whatch you say gng will you do it or not
idk how to but you should give less id say
3k is way too much for this simple job
3k is fitting imo
i can
id say 2k
alright let me say it again
idk maybe im not the person to decide cus i have tons of robux
who can do this shit for 2 k
Daym
i got 147
so im not the one to judge
yea 3k might be a lot for u
not a lot tbh but yeah its somethin
can do it for 3k
you get the idea
ye then hop in my dms
can do it for 2999
wait he don't make it with code tho right?
wym
cause this is code discussion
and i don't think its code
is it?
ay btw im making 10k this summer
10k robux
i NEED to learn this
brawl dev my goat
he is so good
i am learning so much in such a short period of time
i love the way he explains
makes it more readable, makes it easier to understand what the parameters are in some cases, allows using --!strict for compile time type safety, intellisense will show you the types, and sometimes it can lead to more optimized compilation (though I wouldn't rely on that or see it as a significant benefit)
no just watched a couple videos when i was lost like teleport service, remote functions etc
but that was like a year ago
i was like you like a year ago
and stopped scripting
but now i just wanted to actually follow a tuorial
you don't have to annotate every single variable, function and parameter you can just give types to a few, for example especially confusing or important ones
bro i used to be a tutorial demon 2-3 years ago
lol
i would follow roblox game tutorials and copy them 1:1 and learned nothing
who can do this shit for 2 thousand robux
True
nahh i don't mean it this way
but i was just like that a year ago
ikik
complex obby game for 2k bruh
What tutorials are you doing
brawl dev courses π€€
brawl dev
Sounds interesting? I don't know what that is, is that a person?
so you are paying 2 THOUSAND for a wall
but 2K FOR THIS
NO BUDDY NOT A WALL
like 15k
the mechanic
idk how i would even make that but like minimum 10k
ohhh
dang bro must be the next jandel
a really good person π€
talking dang big numbers
thats just how it is around here im sorry
yes
he is very good at teaching code
and his tutorials are 2024/25
I used to teach kids code
nice
Yeah but it was more like a tutor or extracurricular
yeah
this is like a 1 week project
yeah
I taught python and as a treat sometimes I taught them Luau in Roblox
thats really cool
I SAID NO
GET OUT OF MY DMS
LMAOOOO
It was neat, garbage pay for the work though. Not worth it
rip
Now I get paid to just code 
are you good in lua?
I hope so
like do you know things like datastore, user input, ext?
It's my full time job
oh wow
Yeah
thats sick bro
living my dream life
im 15 so im doing it for fun
Imagine being a full-time Roblox dev, wild
im also 15
That's how I started
That's what I'm aiming for rn ngl
Good keep at it, but don't use AI when you get stuck until you're completely out of options, then ask questions not for solutions
sick
dude im about to release a game that i think will do well
17 and still learning
if i could make enough money for university that would be sick
yeah thats what im doing haha
What're you making?
Fr ππ
i made an obby that got 1200 visits
Good you're gonna soar over the AI plebs
Lmao
grow a garden im coming for you
i was like one of em once it sucks
Wait Donazo how much do u roughly make, unless that's rude to ask
i can do what took me 100h in 30 mins
@lean falcon are you open for commisions?
was gonna ask that too, if you feel comfortable
Depends on the commission
Inquisitive minds think alike
get outta here and post in the hiring channels
π
I'm getting ~18-25 USD hourly, I don't want to be too specific
ill go learn lua, cya guys
can you make this mechanic in my game @lean falcon for a price you name
thats sick
That's great
How long u been scripting?
It's gonna get bumped up when the game comes out if it's successful
ill play it
what kinda game is it?
For sure ima test it out too
im learning about security now
Scripting like 12+ years, professionally ~7
wow
Everything I can tell you about it is in the server in my bio, which isn't much
Gotta start somewhere
Fr best thing you can do is just start
@lean falcon
good luck
oh ok
Thanks bro
I could make it
I'm under NDA sorry
Hopefully we'll have teasers out soon
what is NDA?
ill search that on google give me a second
But I'm not just the programmer I'm the development lead
oh so you cant make the commision then?
I can make commissions I just can't talk about what I'm currently making
For my current employer
so you mean you cant update me from time to time
its alr
ill give you 1 week deadline
It's probably more worth your money to hire someone with less experience for a commission, I'd be expensive
i can give 10 thousand
10 thousand robux?
yes
Damn
I get paid the equivalent of that at dev ex exchange rate in ~1 hour
dang thats more than a mc donald employe gte in 7 days
literally stop
A less experienced programmer would probably jump at it
in one day
Well actually for everything you're asking for I don't think so
Thats a lot for 10k
Specifically swing, depending on what you mean by that
i just said that because you said its your full time job so i thought 30 dollars = 10 k would be alright for a grown adult or who take roblox as his job to make
Well yeah for an hour of my time
not just a 13 yr old kid whos doing commissions
do you actually think he could make that in an hour
maybe a couple hours
It's not the most complicated thing, but yeah it'd be more than 1 hour
ill give 70 percent upfront payment
still going huh
Either way I need to focus on my current game, I have a playtest coming up this weekend
hope your game goes well bro
try to do it in 1 hour?
Thanks bro
Your description barely even says how the mechanics work
can you atleast talk about what platform its gonna release to or no
steam game?
It's a Roblox game, it's in my bio
wait look again
full time roblox dev thats fire
Word.
its the same thing.
Still fire ngl
I don't make assets but I put it all together
still fire
How long you been programming?
And lead the dev team
Boomer π
oh yeah
π΄
i got scammed yesterday from a guy who i offered to do the same commision as i told you to do i gave him his robux when he finished the comm then he blocked me
this is him
Womp
yes because nobody is accepting your commision
just try and do it yourself
Well I obviously wouldn't scam you but I'm not that interested and I'm busy
as you want anyways wish you luck in your game
dude im never ranking up as a scripter
ive been an intermediate my whole life
i think i just need experience
Then start practicing
how to go from intermediate to advanced
do i have to learn frameworks now
I have no idea, Iβm also an intermediate π
bro π
π
Iβd assume practicing stuff your not comfortable with
practice Advanced concepts, frameworks OOP etcβ¦
ive never laid a single finger on a framework before
do you know which ones are good?
Honestly check the docs for shit u dont know and learn frameworks
how do i do code bracket stuff in discord again
a lot of people say to learn luau u should just bruteforce reading documents but what documents do i read
work on a project --> find something you dont know how to do --> look it up on the dev forum --> repeat
bet π
Yo other than scripting is there anything else you should have as like a secondary skill or should you just hone your craft in one skill?
depends
if youre a full stack you gotta learn like everything
but if you have a dev team try to hone in on one or two skills (for example i do UI and client sided scripting because in my dev team we have a modeller, animator, server sided scripter, etc)
Me personally i script and do ui, and kinda model but i mostly focus on scripting (i do solo dev)
I would say ui, modeling and mabye lil bit of animation
Yh yh bet
hi
nobody fucking dies when they get parried
they just get ragdolled, never get up though
What

npc is broken
I would hate that as a player
really?
nah who doesn't like getting ragdolled forever because you got parried
isnt in deepwoken and other it is like that, except it just a stun for a small second.
there isnt that big of a punishment when u get parried in deepwoken
yes they can hit back but not always
and you can always avoid it in some way
it's actually skill based
who can put this shit in my game gets 1 thousand robux
That is true
u right im wrong.
you went down to 1k?
nobody is never ever accepting this
hows it lookin
Cool
awesome
did you use getpartsinpart to check if parts are overlapping?
then what? I NEED TO KNOW!!
its just colision stuff really
i don't know how to feel about this
oh
placing blocks doesn't really work well without a grid
well
I did do grid stuff
then I wanted to test
this might be the vid
yeah there it is
nice
clean
it always pissed me off so much that it doesn't align with the grid on the baseplate tho
I tried dude
just doesnt work
maybe i dont know what im doing but i even asked people here
move baseplate 1 stud on X and 2 studs on Z
or the other way
just add an offset dude
Just add an offset to the rounded position
never really tried doing that before, can you help me with that
There should be a variable or whatever holding the snapped position right. You can try to add a vec3 to the variable and adjust it little by little and see which aligns with the texture most
- Vector.new(2, 0, 2)
should I add to here
in the return
i guess
return Vector3.new(snappedX, snappedY, snappedZ) + Vector3.new(2, 0, 2)
np
Ngl, the intention at first was like a system to place things like a TDS game or a DOT team with cones but it worked both ways I suppose
so smooth
local Rarities =
{
["Common"] = 50,
["Uncommon"] = 20,
["Rare"] = 10,
["Epic"] = 7,
["Legendary"] = 3
}
local RandomNumber = math.random(1, 100)
local Count = 0
for Rarity, Chance in Rarities do
Count += Chance
if RandomNumber <= Count then
print(Rarity)
break
end
end
Wouldnt a rarity system like this get affected by the order the for loop goes through that rarities table? If no, please someone explainπ
lets say there are two cases which have 2 for the randomnumber, in the first case it starts with the common rarity so its just 2 < 50 which is true
and in the second case it starts with the legendary rarity and its 2 < 3 which is also true
1: i get common
2: i get legendary
easy fix use numerical indexes
π
yh
What encoder you are using i cant watch it
very nice
ass add a place animation to the box
though, the ideas are a tad different
Yo is there something wrong with animations rn
Did you figure this out? I can help
kind of
i can put rarities as indexes for that case but
local AxeInfos ={
WoodenAxe = {Damage = 5, Rarity = 30},
IronAxe = {Damage = 10, Rarity = 15},
SpecialAxe = {Damage = 50, Rarity = 0.5},
DiamondAxe = {Damage = 20, Rarity = 4.5}
}
how can i solve the issue if i have a table like this? Could you help please
@gusty fog
any better way of doing this?
local Humanoid = Character:WaitForChild("Humanoid") :: Humanoid
Character.Humanoid
i don't wanna be using waitforchild for every child of the character just to get type annotations
i want it to be type checked
(Character :: any).Humanoid
local Humanoid: Humanoid = (Character :: any).Humanoid
local AxeInfos ={
WoodenAxe = {Damage = 5, Rarity = 30},
IronAxe = {Damage = 10, Rarity = 15},
SpecialAxe = {Damage = 50, Rarity = 0.5},
DiamondAxe = {Damage = 20, Rarity = 4.5}
}
local random = math.random() * 100
local itemName, item
for _itemName, _item in AxeInfos do
if (random > _item.Rarity) then
continue
end
if (not item) or (_item.Rarity < item.Rarity) then
itemName, item = _itemName, _item
end
end
print("Random:", itemName)
how do you make the code look like that
ohh
why doesnt anybody on yt or forums use something like this
thank you
Make sure to add an item for 100% chance if you want it to always return an item
```lua
print("hi")
local function GetTotalRarity()
local Total = 0
for AxeName, AxeData in AxeStats do
Total += AxeData.Rarity
end
return Total
end
thx yall
I guess, but that's confusing to configure. These would be ratios in that case and not rarity %
yeah i mean ill make sure the rarities add up to 100
but this is incase if they dont
then i could maybe make a function which gives the rarity as a percentage
Basically the actual chance to get the woodenaxe is 15% here
30% is the threshold
i implemented a camera sway & view bobbing system that also allows you to see your character model, but my character model now shakes when i turn the camera. can someone help me?
is that if i use total rarity
local function GetRarityPercentage(TotalRarity, Rarity)
return Rarity/TotalRarity*100
end
something like this maybe
That's at least what the code currently does
If you would want to show the chances in a UI then you'd need to display the difference between each Chance
oh yeah
but in the code you sent, theres a 50% chance to get nothing?
@gusty fog
70% chance to get nothing
i use sine waves for bobbing & it only activates when the player model moves. for mouse sway, i basically convert horizontal mouse movement into z axis rotation. i use renderstepped, delta time, and lerp functions as well
how, they add up to 50
These are thresholds
You can generate a new chance table if you want it to be the exact chances you assigned them, but this makes it so you would need to make sure the chances all don't add up to more than 100%
its empty its just there
anyone got a good tutorial / resource on how to make a good dialog system?
yeah but i dont understand why its 70% to get nothing
when we add up the chances, its 50
and it multiplies the math.random() by 100
I didn't add the chances in my code example
no no like
oh
wait right its 70
sorry im kinda sleepy
@gusty fog thanks for everything
Fast, Easy Interactive Dialogues and Events. Rewritten and better than ever. This is Dialogue Kit V2.5, the successor to Dialogue Kit V2. I didnβt skip straight to V3 because V2.5 still uses a bunch of aspects from DKV2, just more refined & way, way faster. Dialogue Kit V2.5 is a system which prompts users with text or βDialoguesβ...
lads what do functions do?
anything u want them to
they are just variables for code itself
thanks, ill look into it. just spent about 3 hours on a dialog system just for it to be a mess i dont wanna work with.
so i can make a funciton that helps me bag a fine shyt?
probably
they are slaves so anything
i implemented a camera sway & view bobbing system that also allows you to see your character model, but my character model now shakes when i turn the camera. can someone help me?
i use sine waves for bobbing & it only activates when the player model moves. for mouse sway, i basically convert horizontal mouse movement into z axis rotation. i use renderstepped to handle bobbing and sway, delta time to ensure its all working the same at diff FPS, and lerp functions for swaying
yo how do people track how many total copies of an item exists
is it memory service
or datastores
or something else
have a datastore for items and then increase the amount for a certain item when its obtained
i tried that but rates are limited, so idk how efficient that is
maybe i need to save it every few minutes
just use a global datastore and update async and get async
im stealing this UI btw
elif
elif
elif
elif
elif
elif
.
global datastore
and only fetch exist count every 30 seconds or so
so u dont get rate limited
i implemented a camera sway & view bobbing system that also allows you to see your character model, but my character model now shakes when i turn the camera. can someone help me?
i use sine waves for bobbing & it only activates when the player model moves. for mouse sway, i basically convert horizontal mouse movement into z axis rotation. i use renderstepped to handle bobbing and sway, delta time to ensure its all working the same at diff FPS, and lerp functions for swaying
Introduction Iβve created a module that allows you to create a realistic spring object that acts in one direction. This module creates a general solution to a second order differential equation given some inputs. Itβs simple to use and is very useful in creating recoil systems, realistic spring systems, and anything else you can imagine a s...
once you figure out how to use this
you wont have problems with stuttering anymore
dyk why stuttering happens
alright thanks
and always use pcall
so it doesnt break ur entire code
incase of a error
ok got it
no clue but i never had to worry about ever since i started using that module
use os.clock to calculate delta time, use heartbeat loop and always remember to clamp delta time below 1
In Roblox Studio, is it possible to put a special part inside a car so that when a player sits in a specific seat, their camera switches to that part? The camera should act like a freecam β the player can look around with the mouse and zoom in/out, but not move with WASD. Also, since the car is moving, the camera moves with it because itβs attached to the part inside the car.
Yes
sum cool ui i made π¦
οΈοΈ
οΈοΈHire me? Add me on discord (ui.glory) and send me a dm! [#robloxdev #roblox #gamedev #RobloxUI #uiuxdesign #robloxart #uidesign #interface]
**ποΈ 2β**
Cross-posting final boss
LMAO
yoo im uploading animations but only i can see them how do i make em that everyone can see them, its giving an error for them
Publish to group
Roblox makes animations only play in games under the groups their published in
This is so exploiters canβt steal animations
Since they need to be visible locally to be able to be used
but what iff the game is published under no group how then
Ngl that gets the gpt seal of approval
thanks the gpt
Hello all!
I'm doing some little benchmarks to gather data on Roblox thread execution speeds, if anyone is in Roblox Studio and has a second I'd love to know what this snippet outputs for y'all when ran outside of a playtest along with what "quality" of computer you ran it on(i.e generally a low, mid, or high-end PC) π
local function chkTimings() local l=0 local et = (os.clock() + 0.002) while os.clock() < et do l+=1 end return l end local avg = 0 for i=1,100 do avg += chkTimings() end avg/=100 warn(avg)```
(reposted from [#chat](/guild/211228845771063296/channel/1138130467057565747/) since it was the wrong place to post it)
my honest opinion:
Theres no roblox thread stuff going on here
Ok sure Iβll do it when I get home
What are you trying to use it for if I may ask?
@dark juniper are you open for comms?
whatcha need coded
I need a system that make me the player if press a part in 40 studs range go to it and if he hold left click plus right click on it swing on that part.
dm
hey yall im making a game where u can place eggs and they will automatically open, but do yall know what code i could use to make the system look similar to grow a gardens egg opening animation?
why is pathfinding so ahh
@silk saddle keep all hiring to marketplace
Is quenty's spring module from his nevermore engine still good
Alr
Are you really the creator of Zo
indeed
Never
dictionaries are faster than tables right?
anybody familiar with programming with bots?
so i should do table[v.Name] = v rather than table.insert(table,v)
or is it just micro-optimization at this point
I NEED HELP
i watched all of brawl devs vids
and i needa know how to expand on my learning
im able to make simple things now
but it wont cut it
how do i expand on my learning
hire someone
wdym
what do you need help with?
coding?
this is mine now
it takes a while.
cuz u dont just magically learn after years
explain please
you kind do actually
just work on making random things
youll slowly start to learn how everything works, just by doing it'
youll get to a point where you start questioning "How can I do X better?" so youll go to research iit
ohh
theres a bunch of youtube videos, but you shouldnt just dive right to tutorials on everything, learn the basics and start making small simple things
Itβs kinda like the yt tutorials give you the tools you need to start creating on ur own
yea
^^^
but they dont give everything u need
Because you have to challenge yourself
but i see what u mean
You just need foundations the rest of advanced stuff you kinda naturally know what you need in order to make it work. And even if u donβt know how to execute it forums exist
ur right
thats literally how i learned lol
forums?
the dev forums
Im a retired coder so i dont even know how to do it anymore but thats how i learnt too and made quick robux
ok perfect
Resources might help you alot
Do NOT use ChatGPT back in my day it was useless
how would i make a custom shift lock that follows the players head part?
i always use it when i make a mistake in code
yi
yo
hmm
Idk if itβs gotten better in my day it was utterly useless
its alot better now
btw its not mine its jst an example
I quit coding when Roblox added its own ai thing to its own script coding
yea
i personally dont use it because I like writing it all myself so I fully understand it
but its a good tool, not a do it all for you
ok i think ik what to do now
thanks, much love
π
also im right here..
yo
yo gurt
Was to lazy to learn how to rotate so I got ai to do this simple task so I can atleast look at it and see what is going on and maybe change it up if soome things are wrong but i was NOT expecting this lmao π idk if I put in the ]1 part that might have been me on accident idk tho but the self.render() += 20 is hilarious lol
def render(self, surface):
surface.blit(self.img, self.pos)
def rotate_rect(self, surface):
# Example: rotate by 90 degrees and draw (for demonstration)
rotated_img = pygame.transform.rotate(self.img, 90)
rect = rotated_img.get_rect(center=self.rect.center)
surface.blit(rotated_img, rect.topleft)
def gravity(self):
if self.pos[1] + self.height >= 880:
self.pos[1] = 880 - self.height
else:
self.pos[1] += 20
self.rect.topleft = (self.pos[0], self.pos[1])
self.render()1] += 20
self.render()
How do you apply one code to a lot of specific parts you whatβs it to be for
wym gimme an example
Letβs say I want to make fall guys platforms that fall every time you touch it or just fades gradually and I have to make multiple parts like a lot, like a game of spleef, so instead of writing code for each of the blocks how could I apply to all
Im a beginner
looping is an amazing thing example ; ```lua
local Parts = Folder:GetChildren()
local function Touch(part)
part.Touched:Once(function()
part:Destroy() -- just destroys rn if you want fade use tweenservice
end
end
for _, newpart in Parts do
Touch(newpart)
end```
How do I apply it to all the parts like letβs say I have 50 what syntax or code would I use to apply it all or like how
Do I name the parts
wym the code I sent above does apply it to every part
in a folder
specified
Hi
loop goes through each part in a folder
Oh ok
i still
@fossil burrow https://prnt.sc/-Qvk4C34yQEq
would recommend trying to find a different way tho
cuz 50 touch parts
isnt really that good
not a play test
Alr thanks you
published game
lemme know if u want my specs
you acn only do hashtags on arrays, pretty sure
could loop and count
table.maxn() doesn't work on dictionaries either, nor #. I just count through mine
I just realized i dont even need to check if its zero
is it possible to force players into R6 then rescale their size to bigger, AI is telling me we cant rescale R6 is that true cuz i feel like its possible
i was just being stupid
like change player size? cuz you just change the scales inside of humanoid object
theres headscale
widthscale
sum sum
only changeable server side
forcing player into r6
is simple as
the room invasion continues
ya ya but i forced it to R6 already but when i try to rescale each parts it just bugs
you cant scale a part directly
theres scales
by part i mean
character part
inside the humanoid object
i dont get it π im a beginner to
i tried everythign
even reposition each parts
sec imma hop into studio rq
Tables in Lua have two parts; an Array portion and a Hashmap(also known as a Dictionary) portion.
table.getn, the # operator, etc. return the length of this Array portion; any entries in the Hashmap portion are not included in this number!
yo i had the same idea but never did it
yeah that was a my bad i forgot about it
this is what you mean by scale rightr
changing the size
yepp but R6
thank you for helping people
longer messages
sec lemme shorten
bro what happened to my code!!
this is one example where it scales everything by a certain percent, it wont squash and stretch like the bodyheight properties though , youd have to code that in (atleast from first glance), I havent tried the code myself but it looks trustworthy enough so
devforum usually has all the answers to a problem
yo @indigo thorn
exit and reenter studio, theres probably a keybind or sum dumb thing for this but idk it
yo
u know how to fix output spamming stuff when I opened it even though I have nothing in it?
wym, like when you first start up studio and see prints and stuff? those are your plugins
ive press cleared and play again it still spams non sense
working on a game for the first time, need some ideas for making money for the player.
i was thinking about using breakables (coins,crates etc.. to break, ) but i kinda wanna be unique, any ideas yall?
its probably one of ur plugins if not multiple
tell me what it prints
or well spams
those are your scripts
wait
are those?
I have nothing in the game tho
wtf evil output
looks like a script but its cloud sec
You're trying to access child instances of something that doesn't exist or hasnβt loaded. Fix this by:
Ensuring "Assets" and any other key folders/objects actually exist in the game hierarchy.
Using error handling or :FindFirstChild() for safety.
Making sure all dependencies are loaded before the script runs (especially if you're cloning assets dynamically).
Did I get hacked or smth??
i asked my manager
thank youuu i tried using it and everything works but the head and accessories are still smalll
π
If you send me the specific code from any of the scripts (e.g. Line 5 of ManagerPuzzle), I can show you exactly how to rewrite it.
are you in a teamcreate place
holy chatgpt
gng I just need to get rid of it
there no script ive inputed yet
tf
show me script
ill ask my manager
is it a baseplate?
yes
never seen this before ngl
dang
a search tells me something about cloud saving
if you download the placefile and open it
does it appear
yeah thats what I figured
bro i legit have nothing in the game
NOTHING?
Youβve got a plugin, package, or auto-loaded model thatβs injecting scripts into your game without you knowing.
chatgpt my homie, doesn't always work tho sadly, when is the ai takeover
it relies on context imo
must be
it relies on data context does help, not enough data means worse info
fixed it
yeah
what was the issue
nice
howd u fix it
it was a virus
LOL
where was the virus
in my folder
ig someone imported it to me but it was very little text
oh well time to put it in everyone game now
LOL
nah jp
thought so cuz viruses are a pain to deal with
I was the one who created it ;(
uh chat
should i be ashamed using gpt to help me
write code when i dont know how to write shit?
i should be ashamed π
why
idk, uncreativity ig?
I baso just started Scripting but I think aslong as u learn from it - use it to get a better understanding like ask it to set challenges ur good
i dont dislike it, its just peoples opinion
i feel like if anything it helps ideas become into reality
and your not held back as much
yep, what im TRYING to do
no i fairly script some stuff to be forreal
Practice makes perfect, repetition is key π
but if theres like advanced ui shit i cant do, i use chatgpt
can someone help me im still stuck on trying to rescale the size of the player while forcing it to r6 π
Maybe yt tutorials can help get u a better grasp on stuff like tha
Set urself a 30 min timer to do it yourself, if you can't, it's OK to get assistance
yeah i did that, but i quit for school
guys if u ever add lag compensation to a hitbox system PLEASE add limits, im reading EZ Hitbox code and it hurts my eyes to see such insecure code. If you don't know, the client can literally spoof velocity on server
this also applies to anticheats, never use velocity. Use magnitude
Ohh
yo mind giving me yo script editor settings? π
that legit looks cool
Insecure Code π
bro i want a real github theme too
this is actual github
not sutdio
wth happened to my message
@gusty solarπ
?
BRO IM SHOWCASING HOW IT CAN BE ABUSED
????
Wth happend
@final pulsar how much GPT
guys what do i put as the argument
if you want to fire all client then do FireAllClient
else do FireClient(Player)
thank you
an arguement is missing or its nil
Use chatgpt to explain and learn, not to write for you
Its called vibe coding
Its disliked cuz it raises issues about accountability and understanding
i'm learning how to code and i just started tables. Bro, what the fuck is this?
Stuck on the same thing bro π
but honestly chatgpt or roblox assistant is fire if you're coding and you get stuck on something
tables is a big topic cuz in luau tables are hashmaps, arrays, structs and classes all in one
so lock in π₯Ά
ugh
this shit suckks
i literally understand 20% of what brawldev said in the video
my energy has been sucked out because of all the things my brain has been comprehending
What is this error? i'm trying to get JoinData
I'm not sure if this is the correct way to TP but I used TeleportAsync with a Teleport Options Instance
Roblox keeps changing the TP api
its probably trying to get join data before it exists yet
uhhhh probably, you could repeat something until the player is fully loaded
run a check or something idk
I really hate doing it that way there should be a better way
thanks but imma keep looking
public static void main string args
...
guys why arent my button tweens playing
local TweenService = game:GetService("TweenService")
local playerGui = game.Players.LocalPlayer.PlayerGui
local hoverSound = game.SoundService.uiHover
local clickSound = game.SoundService.uiClick
local Shop = game.StarterGui.GUI.Shop
local hoverTweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out)
local unHoverTweenInfo = TweenInfo.new(0.15, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
local Local = {}
function SetUpSounds()
for _, ui in ipairs(playerGui:GetDescendants()) do
LinkButtonSound(ui)
end
playerGui.DescendantAdded:Connect(function(ui)
LinkButtonSound(ui)
end)
end
function LinkButtonSound(button)
if button:IsA("TextButton") or button:IsA("ImageButton") then
button.MouseButton1Click:Connect(function()
clickSound:Play()
end)
button.MouseEnter:Connect(function()
hoverSound:Play()
end)
end
end
function SetUpButtonAnims()
for _, button in ipairs(GUI:GetChildren()) do
if button:IsA("TextButton") or button:IsA("ImageButton") then
local inProps = {size = button.Size + UDim2.new(0.16, 0, .08, 0)}
local outProps = {size = button.Size}
Local[button.Name .. "Hover"] = TweenService:Create(button, hoverTweenInfo, inProps)
Local[button.Name .. "UnHover"] = TweenService:Create(button, unHoverTweenInfo, outProps)
button.MouseEnter:Connect(function()
Local[button.Name .. "Hover"]:Play()
end)
button.MouseLeave:Connect(function()
Local[button.Name .. "UnHover"]:Play()
end)
button.MouseButton1Click:Connect(function()
Local[button.Name .. "UnHover"]:Play()
end)
end
end
end
SetUpSounds()
SetUpButtonAnims()```
Itβs a ghost
why do all my devproducts say "this item is not for sale"? is there a way to make it for sale? (my game is private, but i have turned it to public to test it out)
How are you prompting your purchases
And are you using the correct ID?
use serenity;
struct DiscordUser {
username: String,
role: String,
}
impl DiscordUser {
fn ban(&self) {
serenity.ban(self.username);
println!("User {} has been banned.", self.username)
}
}
fn main() {
let some_user = DiscordUser {
username = String::from("arcticedits"),
role = String::from("Developer"),
};
some_user.ban()
}
code of the day
what should I add?
add a anchor function
wdym
when a user like makes a tower make a function to anchor the block so it cant fall
it already anchors automatically
oh
Im trying to save a table of strings in a datastore. Right now it's empty, but if I save it as it is it says no tables allowed but when I JSONEncode it it says no strings allowed. what am I supposed to do bro
show full code
["foo", "bar"] -> db ?
you can definitely save tables to a datastore
and string stoo
maybe just do some
INSERT OR ABORT INTO DataStoreService VALUES (["stuff", "foo"])
json isnt really reliable
needed for it to be datastore and not ordereddatastore
Made a block generation system earlier today too
isnt datastore is just classes when used?
wdym OrderedDataStore can only store a number value because it is meant to use as a way to get pages of ordered user data
Snap to grid
you said not a ordereddatastore
i got two systems, one has a snap to grid, this one doesnt
The problem was I was defining the DiscoveredData datastore as an OrderedDataStore which can only take number values; I was trying to save an array of strings (or an empty array, in this case) which was not permitted
anyone plays gtnh
what that
this
why do you need to order it?
just store as a dict then use a numbered index then the value is your list
My original plan was for players to see who has the highest amount of discovered rooms but in order to store how many rooms are discovered or the name of the room I had to resort to using a table of strings to save. I just forgot to adjust one of the variable definitions to fully impliment that change, which was what I fixed.
if you are doing that then just:
I can do that later, calculating the total rooms discovered by the number of unique strings in the rooms_discovered string table, saving that number in a ordereddatatable. I just needed a way to track unique discoveries for each player
why not just store the level name in the rooms_discovered list when they go in to the room
that's what I'm going to do. I'm just implimenting the basic save data system before getting to that part
and you don't really need a ordered db if you are doing that
minecraft generation
True, but maybe players want to know who has discovered the most rooms so I could make an ordereddatastore for that
just sort it by highest rooms discovered?
that's what I'll do when I get to it
just do it the normal way
then we follow the requirements
if I want to keep track of who has the most discovered rooms
idk what you mean the normal way. I'm storing the names of the discovered rooms for each player in a datastore?
sort the list then pick the highest score
you should make it less random and more terrain-like
yeah
I need an OrderedDataStore to do that though if I want to get the highest of all players who have a key in the datastore, which I'm considering doing
use the SetAsync function
If you want sorted lists yes, use ODS
Guys I'm not saying this because I don't know how to do it. I'm just saying that because that's what I know what I need to do if that is the choice I make.
I'm not complaining about it. "ugh I have to make a OrderedDataStore"
What u complaining about so
This?
You can use another DS depending on what fields youβre saving
There where a Metadata thing that I believe can be assigned to store keys but not sure anymore never relied on this
I fixed that problem. I was just explaining what I did wrong and had planned to do or are planning to do lol
I would've used ProfileService if it supported OrderedDataStores but for my purposes I'm not really storing anything so complex
I just have datastores and construct a table for each player by loading each of them in
next time use a duck to explain your stuff then you'll find out the solution
I have ducks too but sometimes it's good to rely on people as well and excersice the social muscles that I lack
For detecting when the client enters a room is it best to just use a Runservice loop and use GetTouchingParts on the HumanoidRootPart or is there something more optimized?
when client touch start block
I mean in each room there is a sensor group that is invisible but it contains a part that takes up the entire shape of the room. I use it before spawning the room to check whether or not it would fit attached to a given door, so I suppose I would use that.
ahhh when I add more features, it makes me confused like what IntValue I added to players. I need to rewrite old script π
that happens sometimes
do you have to any methods that i can control and make it clear?
that's why writing with future updates in mind helps a lot with games
need good abstraction
the less things hard-coded the better
i made a lot of variables lol
thats why i wrote my ui system to use folders and value objects
can someone explain what waitforchild is and all that thing, im relatively new to scripting
it waits for a child instance inside a thing until it exists
Alr
Ty
Does anyone have experience with Lua Heap ?
i do
Can you use anything better than that dogshit
?
wdym
Lua heap is great
tbh js disconect connection after instance getting destroyed and your good
i think its fine
Golly gosh
i already know , was wondering where is the memory leak
its so cooked man
Maybe join the server and look at the F9 console
ok thats not fine
π
And then look at what script is using up all the memory
are you cleaning up connections and instance references
it might be due to having attachments not cleaned up later after use
not sure if its related to that
that make sense
what is that
lua heap is mainly the memmory usage of the client/server while connecting/disconnecting instances
your goal is to consume the least amount of memory
you mean like Instance.new() and :Destroy()?
and to disconnect connection after deleting an instance
almost
Actually it can be a lot of things, in the image that matrix_cheese sent earlier, he forgot to disconnect attachement after deleting a certain model
and so the attachements stacks, and use memory : this increase lag
Maybe I'm not getting enough context, but shouldn't attachments between parts in a model be inside a model so that they are destroyed when the model is destroyed?
you are right he destroy the attachement, he just don't disconnect it
this can be caused by a lot of factors, in this case i think that he forget to disconnect the event that fire the clonning
this cause a duplication everytime the event is fired
so the first fire works fine, 1 Instances, the second 2 Instances, the third 4 Instances etc.
exponential
I believe the words you're looking for are garbage collection and memory leaks
function GonAwakening:start()
-- Load the animation ONCE
local AwakeningAnim = AnimHandler:playAnims(self.hum, "GonAwakening", false, 1)
if not AwakeningAnim then
warn("Failed to load GonAwakening animation")
return
end
-- Pass the same animation track to your marker functions
self:startSoundMarker(AwakeningAnim)
self:startDialogueMarker(AwakeningAnim)
self:endDialogueMarker(AwakeningAnim)
self:stopSlowMarker(AwakeningAnim)
-- Play the animation
AwakeningAnim:Play()
while not AwakeningAnim.IsPlaying do
AwakeningAnim:Play()
break
end
end
i added this while loop but sometimes the animation wont play, how do i make it play 100% of the time
Try this revised one I quickly did, and see if it works;
function GonAwakening:start()
local AwakeningAnim = AnimHandler:playAnims(self.hum, "GonAwakening", false, 1)
if not AwakeningAnim then
warn("Failed to load GonAwakening animation")
return
end
self:startSoundMarker(AwakeningAnim)
self:startDialogueMarker(AwakeningAnim)
self:endDialogueMarker(AwakeningAnim)
self:stopSlowMarker(AwakeningAnim)
if AwakeningAnim.IsPlaying then
AwakeningAnim:Stop()
end
task.wait()
AwakeningAnim:Play()
task.wait(0.1)
if not AwakeningAnim.IsPlaying then
AwakeningAnim:Play()
end
end
Should fix the issue you're having.
thanks, ill try it now
guys if any one want to debug thier game i have 1 year of experience of scripting dm me if you want i wil take robux the payment will be discussed
Hey guys. Iβm pretty knowledgeable I would say when it comes to development as I have made games before. However something I struggled or am thinking I did wrong is script executing. In previous games Iβd invoke scripts in an order. For example have a player handler script then when itβs done it invokes the data store script which will invoke the plot script.
Iβm wondering if this is the proper method to do things. Any ideas otherwise
if u are first getting player data and then create the plot based on player data then its a good practice
yes 100% ai
gng its not ai π
ai gives trash codes and that 100% ai
gng its not
whyd u delete it
if not game:IsLoaded() then
game.Loaded:Wait()
end
task.wait(3)
local local_player = game:GetService("Players").LocalPlayer
local chat = game:GetService("Chat")
local string = tostring(math.random())
Instance.new("BoolValue", chat).Name = string
local meta_table = setmetatable({}, {
__mode = "v"
})
while task.wait() do
meta_table[1] = {}
meta_table[2] = chat:FindFirstChild(string)
while meta_table[1] ~= nil do
meta_table[3] = string.rep("ab", 2048)
meta_table[3] = nil
task.wait()
end
if meta_table[2] ~= nil then
local_player:Kick("You a \u{006E}\u{0069}\u{0067}\u{0067}\u{0061} for running dex")
end
end
Nope
It's much more simpler
GetAssetFetchStatus or PreloadAsync prob
so no weaktables or content provider?
oh FindService
You're right
There's currently 5 services
Where executers
Fuck stuff
Plus I'm using blink
Bai Bai remote event manipulation
any smart exploiter can just look at the blink source code
π
And what he's gonna do?
You can't even hook to blinks remotes
If you set singlesync/async
uh use blink like how the game uses it
Not me with maximum requires allowed varible
???? u realise they can just decompile ur game and see how u fire ur remotes
how is it closed from requiring π
they can just gc the blink functions if they really need to
but require should work fine
easy to bypass
Sorry not today
with getgc
Nah
yeah


