#code-discussion
1 messages Ā· Page 298 of 1
watch some tutorial on youtube practice make some small games
so I wanna make a sort of mini game thing when the player is trying to not let this explode (this is a first person game) and I want the players head to sort of glide around while they are trying to do all the minigames on this. I need someone to make the minigames on this work, and I need someone to make the gliding animation. I have a mid amount of robux that I can pay you guys dm me if you are interested.
what even is the minigame
ill tell you when u dm š
i sent a dm
what do u guys do after your done with tutorials
u make some stuff with what u learnt
some
Yeah, mostly for just splitting, gsub, length and matching. I haven't personally used a lot of the other functions
But for string length you can also use #, not sure if there's a real up or downside to using either
@rose raptor
string.len is slower than #
#, is almost two times faster
Huh, just checked and yeah you're right, never knew that
looking for someone who can make me an icon for my game i can pay after the work dm me
1 bytecode vs 4
Is there anyone who could help me on a project Iām working on I donāt really have fund so Iām giving percentage if anyone is kind enough to help Iād really appreciate, Iām on limited access run so I canāt reply to dms till April 8 so if u do me donāt be offended if I donāt respond till April 8 or so
What do you do?
RPG
And mmo
No bandit beating
Kinda like tell dead
Or do u mean whatās my dev skill
Like what's your role in game?
If so itās modeling
So can u help me?
Iām limited access so can u create a serv and inv me we use as dms
I canāt reply dms till April 8 cuz limited access
Done
Can you do group chats?
No sorry
Create a server and invite me to it we use it as DMs
@manic nacelle
ok
Invite sent
Joined
how do u guys handle exploiters spamming remotes on your game?
implement rate limits
yeah but like how exactly. i already had a working system but like the way it works is that it listens to all remoteevennts and make another OnServerEvent for each one of them
and i keep thinking there should be a more efficient way
guys how i could i make a combat/swords like blox fruits with m1s and abilities? i dont want to play the animation on the server i want the animations/vfx to be on the client so it looks smoother but how can i detect animation events to create hitboxs + validate executing the move (stun, cooldown)
make all remote events go through ur rate limit and have that dispatch the connection
that sounds a bit more messy than my current one ngl. considering some remotes are only for server > client so they wont have an OnServerEvent in the first place
@wise turtle can you help me in understanding how i could do something? code help is just pure rage bait
get out sezoo
what you want?
youre asking how to make abilities
make all the remotes you need to ratelimit go through some middleware then
instead of all remotes in general
yes a non laggy and non exploitable one
wydm by exploitable you mean the damage becoming like 9999 by hackrs?
@wise turtle so can you help me?
i want to play animations on the client and i still want to detect the animation events
do them in localscript š š š
peak help
you can listen to an animation event played on the client on the server
you can also listen to an animation event played on another client on another client
for real?
damn
but
oh wait nvm
i think i got it
Guys Yk for images like index and etc in Ui how do ppl make the charchter not go low quality without viewportframes cuz they are always low quality
this is peak help i did not knew this, not use localscript
On another by another?
you can bind to client A's animator on client B and listen to the events
are these all weld types in Studio?
Oh okay
GUYS is it a bad idea to promptproductpurchase prompt on the client? or should i be doing this on the server?
Zero difference
Prompt from the client when possible, as this will eliminate latency in the actions that incite the prompt
Hello guys i have a problem with my animation i mean how to use it on myself when i start the game ? Because i put in the localscript "Animate" the right Animations id but i still have the normal walk on me (i did my animation on blender). I published my animation on roblox for me because i have created the world for me not a group
they r constraints
welds are WeldConstraint, Weld, ManualWeld, and Motor6D those join two parts rigidly together
dude does purchase detection not work in team test and server vs client test?
It does
can i show you my purchasescript in dms?
Big ass script or you just didnāt wanna copy and paste
no that is the whole purchase manager
for some reason it doesn't work when i team test or do multiple client vs server script
np
You need way more structure
oh no
Does +2 quests stack infinitely
nope
max 5
i know how to use validation, it's a gamepass

BRUHHH
YOUR SCRIPT IS 700 LINES
@hoary cedar well what is the bare bones fix to make it work for my script
yo chat how do i set the private servers to cost robux i cant find it
is it in configure this this place or configure this experience
Experience
anyone know a good way to learn lua for roblox studio development
yk which one like tab
just use ai and read what it says
Let me check rq
a good ai tho
appreciate it bro
dont wanna use ai
then hire someone to teach u or use good old youtube tutoroials
itll take a long time tho
im a fast learneer
do u got good yt playlists?
covering all of the basics and advanced stuff at once
were u able to find it too or nahhh
These are physics constraints, not welds.
find audience then access settings and scroll down
theres a lot of yters
gl
The way I learned was by doing a ton of experimentation. To be honest I would just edit free models and learned cause and effect for things, but I would probably instead recommend that you follow tutorials. However, don't follow the tutorials one-to-one, messing around with things as you go along to see, again, cause and effect.
preach
People will tell you to use AI but that doesn't actually teach you, it just gives answers to what you want
appreciate it bro ty tytytyty
np
i think ill stick to thedevking and then do that and apply & practice what I learned
no it depends really
if you copy paste then you dont learn
but if you pick apart the code see how it works
then you learn
use brawldev instead i used devking and can say his explanations are ass
could even try to rewrite it after understanding
it depends on the person's capacity of understanding things. honestly you're right but I think ill stick to thedevking because I sometimes find my own explanation to some things and they come out to be correct.
Yeah but it seems im late now
his explanations are very simple yes but they are simple to the point of being vague and not to mention some of his videos are very outdated
trust me you are better off teaching yourself than using his tutorials
oh then maybe ill use brawldev's tutorials
lowkey just only read the docs 
thanks for the advice tho
ye that can help but may be confusing for complete beginners
i didnt understand that shi at all when i started ššš
anyone can give me the docs?
i already have knowledge in other programming languages so the docs may be helpful
lua is so easy compared to c++
nooot really but still basic things are understandable and self explainatory
u should be chilling actually
lua is more similar to python
yes
true
its higher level
cframe and other properties
do u know how dictionaries/hashmaps work
@empty lake
what im trying to say is if u know how those work u already know 50% of how roblox apis work
every field is a string
ohhh
not memory offset like in c++
great then
so for example
also
the ādictionariesā in lua/luau are called tables
but they can also function as arrays
they can also be combined but its not recommended
not sure if python allows that
ill just start documenting myself a little on these things rn
also common data structures like classes or enums or structs dont officially exist you need to recreate them with tables
tables are op
ohh
you can do operator overloads with them as well but dont stress about that rn
and then for accessing table fields you do
table.field
or
table[āfieldā]
both are basically the same but if you have a string key literal with a space in it you need to use the latter, like:
table[āspaces in keyā]
got it
and also lua has something called āuserdataā which is just classes defined in c++ or internally but idrk too well but they work similiarly to tables
you can create your own but you cant really do much with them
because all you can do is attach a metatable to them and so custom behaviour as well
but they cant directly store any data
but dw too much about it they only have like 1 or 2 really niche use cases
you can just use tables
also do u know any typescript
im so lost rn i think ill just start documenting myself from the beginning all the way to the top
my head's a mess
also forgot to mention, table fields/keys dont just have to be strings
they can literally be anything
great
@empty lake ?
like javascript?
no
typescript
but nvm if u dont
luauās types system is heavily inspired by that of typescriptās
anyone got a macro to transfer data from an old game to a new one
dont think that is possible unless u do it manually
don't learn typescript it'll drag you into the abyss
ggs
or if you are using external database
p sure i will be
no i mean the game with the data u wanna transfer already needs to be using one
but iuts over 600 profile services
if not u gotta do it manually
what
theres no way u genuinely need that much wtf
godš
just use the same code to retrieve it you are already using in the old game?
have fun
guys wtf pls help
use player.CharacterAdded
I'm guessing Character isn't created yet
Just do local char = player.Character or player.CharacterAdded:Wait()
oh yeah I forogt to add the :Wait() 
tysm bro
works all fine thanks guys
or
players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
-- code
end)
end)
Ye I think this version is better
yeha ill use this characterAdded:wait or player.chaarcter is worse looking imo
ty bro
no problem. Next time use the #code-help channel.
yeah no I looked and realized I accidentally wrote in this channel and was gonna delete and write in #code-help but u were already helping me so I saw no point
Six sevenn
does anyone know how to make a discord bot be online 24/7 while slash commands actually working?
it has to be on a 24/7 computer. usually people will buy a VPS (basically a computer in some room that a company owns) that is designed to be online 24/7, these cost usually around $5 a month
thanks for the info
what
Yeah, just code it like noraml
Normal
I host two of my bots on my pc
I do node index.js for one of them
thing is, im not active as much
My pc stays on 24/7 sometimes I go days without touching it
ah, i thought that was for websites
What is your pc doing that itād overheat while idling
Rendering a model maybe
Anything else no
nothing
but its 8gb ddr5 lmao
Brother
(ram) ^
I feel for you
code help is useless they just talking bout random stuff so ill ask here.
how would i make a tower defense unit data store (needs to store individual unit data/person like traits stat rolls etc) idk how id set it up in the datastore n stuff cuz im too sped for this stuff
This channel is just as useless
yea i figured
hidden devs fall off is crazy
wheres the help when a poor sped dev needs it
how am i gonna make my tower defense slop without it
no more tower defense slop
just have a table in your datastore for each unit
or i mean
here's the structure
OwnedUnits = {
[UnitID] = {Stats go here}
}
would i need like a uuid system to seperate each players individual unit stats or am i overcomplicating it way to much
you can get a unit id with a uuid
ok
aight
would i have to make a new datastore seperate from the player data store?
cuz idk why thats always what i think when it comes to this
but idk where im pulling this info from
return {
Gems = 500,
Gold = 0,
Level = 1,
Exp = 0,
UnitInventory = {},
}
so it would be ur thing in the unitinventory
if you want, i can show you how i setup a datastore for my units
that might help me visualise it a lil better
i keep going in circles with the way im tryna figure it out
would it be the same for a relic/armor system
cuz im an idiot i decided id make a complicated td with character building cuz ofc i would
so imma need to store like a bunch of things š
this is what the data looks like
the ID is the key btw
btw just use GUID, it's litteraly impossible to generate a duplicate
so for mine for an example itd be similar to urs but id have like armor and the armor would also have a GUID?
if the armor/relics can have diff stats
i suck at understanding the data store stuff man its too much
is that stored out of roblox servers??
that's stored via datastoer
ahh
but i'm using profilestore cus its better
yea same
cuz its easier and i cannot for the life of me do datastore
so is the httpservice guid a built in thing then
not something id have to find
yeah
httpsService lets you generate a guid
it's in roblox api by default
this is still prolly gonna take me forever to figure out fully ;sob
thanks for the show tho
i mean, honestly
datastore isn't hard
as long as you have a good understanding of tables
i just overcomplicated things for myself
and loading data
data is where i struggle
usualy with datastores you got
tables im kinda alright
you store the data and all relevant info
and then when the player joins
you make sure everything accomodates for that data
such as giving the player the units
and stuff
just updating everything to reflect the stored data
For future reference can you dards stop pinging the person that you applied to a hiring post
If the dude hasnāt read it yet he hasnāt read it yet
And if we ask for your portfolio on the hiring post SEND UR DAMN PORTFOLIO
GUYS WHAT DOES THIS MEAN
you have an extra end
nvm this laggy give me a sec
no i got it
the problem was that i used elseif already
1 or 2 audio wise
you can use elseif more than once
1 because in no. 2 the audio just cuts out also where do you make the sfx?
capcut
i feel like the arms are too much š
like theres too many
maybe it looks better from other angles
it looks better from angles
ohh
yeah but the second one would sound better in a combo no?
what do i need to add to a script when i want it to telaport the player when its clicked on?
for a war game?
you made this or preview from some1 else?
someone else
hi
im having this issue where the animation doesnt stop
do a break in it
wdym
its supposed to stop when i let go, you can tell when the sound stops playing
make it so when the item or thing does a certain amount of damage its sstops the animation
no thats not what i want
it doesnt stop when i stop holding
it used to work idk what I did
try using it so when the game or script detects ur not holding it triggers the animation to stop
Then make a detector
If not holding stop animation or some shit
Youāre the next einstein mate
who said einstein was dead
are you joking, no im not i suck at scripting
do u want some help?
yes please
dm me
why not solve it here? im curios to see the solution
you DONT wanna see that script
Hi guys just showered
Im feeling so fucking awesome but i slept the whole day like entire day and its 3 am idk how im gonna sleep
script then cry then sleep
Why cry:((
i saw an ECS know as Matter, can u guys tell me what u think about it
Please please use raycasting for hit boxes.
The animation is likely looped. Just turn off Looped and republish the animation.
its mid
simply because it is old and unmaintained, so it is lacking compared to more modern ecs like jecs
if you're new to ecs i think the matter docs are way more helpful for understanding the concept than the documentation of other ecs libraries though
Ai
clicked on? is this for a UI element or a physical button
physical
it needs a ClickDetector
and inside of the ClickDetector, is where your script should be
maybe start with that bro š
lol my bad
but do you know how to get rid of an plugin that changes the look of studs when u allready "deleted the plugin"
plugins just execute code, you need to delete whatever it added
How long did it take u guys to fully learn scripting?
the look of studs is usually done either via a texture/decal, or the part's Material property
will
U never fully learn scripting lol. But took me about 6 months to get the hang of it
How did you guys learn to script?
this is what im dealing with
Watch Untitled by nydsoda and millions of other Roblox Studio videos on Medal. #robloxstudio
Bruh, I know how to do build but I want to learn scripting now.
just remake the part
the baseplate? whenever i make a stud it looks the same
Tutorials
Send me some please.
ima just delete and redownload
This is the first episode and beginning to become a Roblox Scripter/Game Developer! With 3 playlists (Beginner, Advanced, GUI) containing 50+ videos and 30+ hours of content, I will guide you through this journey to start making the games you want to create on Roblox!
DISCORD š
Join my Discord Community if you want scripting help, participat...
Is someone willing to help me on this little code? it's from a tutorial and i'm trying to tweak it a little but i'm doing something wrong
Sure
local touchPart = game.Workspace.TouchPart
local partIsTouched = false
touchPart.Touched:Connect(function(otherPart)
if partIsTouched == false then
partIsTouched = true
print(otherPart.Name)
task.wait(2)
partIsTouched = false
end
end)
this is what I have rn, idk which part I should change so it will change color based on when it's touched
You want the part's color to change when it's touched?
yes
To what?
i can do the color and stuff myself I just don't know how to write a script that allows it to change to that
local Part = workspace.TouchPart
local function onPartTouched()
Part.BrickColor = BrickColor.Red()
end
Part.Touched:Once(onPartTouched)
hm
ohhh
I should've just rewritten a whole other function rather than trying to add it into my current one
local touchPart = game.Workspace.TouchPart
local partIsTouched = false
touchPart.Touched:Connect(function(otherPart)
if partIsTouched == false then
partIsTouched = true
print(otherPart.Name)
touchPart.BrickColor = BrickColor.Red()
task.wait(2)
partIsTouched = false
end
end)
All of that code was simply unnecessary
this is where I start to get confused
What's confusing you?
just trying to memorize everything
like all the words i need to make certain things work
you'll memorize it over time no worries bro
Do not focus on memorizing. Focus on understanding
Software development is not about writing scripts you've seen
How many weeks until you think I could develop a simple game by myself?
or rather
how many weeks do you think it would take
like a button simulator
What does that look like for you?
A simple game with buttons on the ground with rebirths, cash, and a few simple gamepasses
kind of like a passion project or a progress check of sorts
Get up to events, then start: #dev-discussion message
You could start as early as a couple weeks, but it would not be production ready
Hey so im kinda new to scripting like my best things ive made are a plot system, somewhat working round and intermission system, and a m1 system like hitbox spawns and if the other player is touched it hurts them, im just confused on how to get better and be able to make full games instead of systems, anyone can help?
from what i've heard so far do comissions to hone your skills mostly
a button simulator is really easy to make, you could make it anywhere from a few days to a few weeks depending on what you add, but creating just a few buttons that change player stats is like only a few lines of code
The nuance comes with anti exploitation and replication
oo okay good to know
but i dont have a portfolio and like i feel like i wont get hired because of my lack of projects
if i make a portfolio with 3 - 4 things could that get me hired?
I recently assisted a user on a very similar project with the same experience as you, @hardy junco. They had several issues
But they had something nonetheless
oo good to know
how long have u been a scripter?
I started learning to script on Roblox in 2014
12 years š
have you made a job from coding?
Yes. Roblox is currently my full-time job
did you go to college?
No. I am self taught
@hardy junco where can i find commissions, like all the ones in this server are for like tens of thousands of rbx or hundreds of dollars and i cant do those
roblox dev forum
okay
the like creator hub thingy
do you have a recommendation for a portfolio website to use?
I'm brand new unfortunately
to what?
development
what games have u contributed to
cant say
where are the commissions page on the dev form??

idk if its called the forum or not but its like some sort of marketplace to hire ppl
i forgot the name of it
Roblox's official marketplace is called the Talent Hub
yes that thing
so FindFirstChild is just like a precaution so theres not an error message?
wouldn't you want the error message
You may need to filter through assets that may not have a certain resource. You cannot let your program crash if an asset does not have that resource
You can send a warning message to the console via warn if need be
ohhhh
thank you I see
it's so it doesn't crash if it keeps repeating?
What do you mean by repeating?
if it keeps repeating an action it shouldn't be because the child isn't there
kinda like that? or did I interpret it wrong
Code does not repeat an action unless you design it to
FindFirstChild loops through the object once to find what your tryma find lol
if it doesnt exist, it gets ignored
okay ty for the help
took me a few weeks to get the hang of it but maybe cus i knew js and web dev before that lol
why does my roblox character have ragdoll when I reset??
this ziffix guy is typing an essay
local function onLivingPlayerTouched(otherPart: BasePart)
local character = otherPart.Parent
local humanoid = character:FindFirstChildOfClass("Humanoid")
if not humanoid or humanoid.Health == 0 then
return
end
local player = Players:GetPlayerFromCharacter(character)
if not player then
return
end
-- Do something.
end
In games, we often want to know when players collide with physical objects. BasePart.Touched is an event in Roblox that fires when two physical objects collide. A player's character is made up of physical objects, mostly in the form of limbs. These limbs are far from the only physical things in the game, so we must filter out the noise.
We can determine when a player collides with a physical object by seeing if a Humanoid exists as a sibling to the limb. If we can find one, we confirm the player is alive, then further ensure they're not an entity or NPC by cross-referencing the character with known player characters.
As you can see, the data we may receive could have varying shapes, and so as not to cause a program crash, we must safely probe the nature of the data
maybe a game implemented it, i also heard roblox wants to implement ragdoll on reset instead of the classic blocky death :/
its in studio
would that not mess up all roblox gamess WITH actual ragdoll or no?
roblox implemented it in studio then š
idk never used custom ragdoll myself
so this script is basically to tell the difference of a player and an npc
To tell the difference from anything that isn't a player
A tumbleweed could set off the physics collision
okay good to know good to know
yes otherPart is a parameter and it will be the other part touched etc im guesing u know this right
does anyone know why my network recieve is spiking hella high when i stand still but send is fine
if not we can help
yes
im trying to not make my brain explode as im learning all this
i'm watcxhing BrawlDev's tutorial to kinda teach me the basics and its pretty helpful I just don't like directly copying the scripts because it doesn't help me learn as much
Learning how to script with the Roblox engine is a lot easier when you understand the software engineering concepts
does anyone know why my network recieve is spiking hella high when i stand still but send is fine
Learn how to code with Lua before Roblox
now how do i do that
is it a specific game or have you tried checking if its normal in other games
Read the Lua 5.1 manual, watch a Lua tutorial, read Roblox's intro to scripting
Lua isn't Roblox's language. It's something you can learn outside of the engine
i do know that
i watched youtube tutorials and found it easy (now its outdated ofcourse)
maybe check this out: https://www.youtube.com/watch?v=aX0Kw_txrIY
These tutorials will teach you how to script on Roblox in 2023. I aim to keep these videos as short as possible whilst providing as much detailed content for you. In the first episode, we look at properties and how to reference objects in the game so that you can edit their properties from a script.
Next video - https://youtu.be/t_AVxdkp7vA
Jo...
its in my game thats why im saying
just watch throw it
š when someone stands still in my game the network recieve spikes hella high
the server is sending too much data maybe
ive been debugging for 4 hours idk what it is
idk
make a script in ServerScriptService
type in
Lag = none
and it shouldf ix it
thanks for the fix bro
ofc
if only that worked
game work sometimes
updates = preplanned
fps = yes
no
maybe u have a script that constantly sends updates or something in your workspace is causing it
want me to join studio and see?
@ashen gate
Ziffix
local baseplate = game.Workspace.Baseplate
while true do
wait(1)
baseplate.Color = Color3.new(math.random(1, 255), math.random(1, 255), math.random(1, 255))
end
this would be good for a rainbow thing right?
or is there a simpler way
game.Workspaceis redundant. An environment variable calledworkspaceexists as a shortcutwaithas been deprecated for nearly 5 years. Usetask.waitmath.randomhas an overload where a lower bound of 1 is implied.math.random(255)is equivalent- Use
BrickColor.random - This randomizes colour. It does not create a rainbow
yes
Whats the difference between wait and task.wait
https://www.youtube.com/watch?v=O3fgWrbRyM4
check it out yourself
in summary, task.wait is the newer version of wait as wait has been deprecated (discontinued)
get my full Roblox Studio course here (50% OFF):
https://linktr.ee/ByteBlox
photos of my pet pigeons: https://www.instagram.com/subnautica_man
discord: https://discord.gg/ay5gc9XcAh
wondered how to make a main menu in roblox studio? or how to create a shop which has working GUI? ive made lots of 2024 roblox scripting tutorials about all the d...
i'd rather just start using task.wait than watch that
yes
it just shows differences
Oh, and Color3.new takes in a normalized RGB value. This is a value from 0-1 representing a percentage of 0-255. You're providing it with a [1, 255] range, which excludes black. Use [0, 255]. Use Color3.fromRGB when using a non-normalized range
@hardy junco
yes
you know very much wow
its common knowledge
yo chill š
wait throttles at 30hz. task.wait ties into simulation/frame rate, which enables greater precision
try hard š āļø
so task.wait means someone with a higher fps has an advantage
its not tied to frame rate actually
it uses robloxās task scheduler
so its more accurate than wait
ah makes sense
wait and task.wait don't actually wait for the specified amount of time. Threads can only resume based on the hz of the pipeline they're connected to. Since wait throttles at 30hz, you'll have an imprecision of 1/30 or 0.033 seconds. Since task.wait does not throttle, a higher frame rate on the client can improve the accuracy at which you wait, down to an imprecision of 1/240 or 0.0042 seconds as per Roblox's FPS settings. wait and task.wait both return the actual amount of seconds waited, which can be used as a scale factor to standardize physics
why is his explanation funnier than yours
#getexplainmogged
This scale factor is commonly labelled "deltaTime"
If we move an object every frame at a specified speed, we must scale that speed to keep it relative to time:
part.Position += part.CFrame.LookVector * VELOCITY * deltaTime
If the user lags, the time between frames increases, making deltaTime scale VELOCITY up to compensate. The part will appear where should have in that time spent lagging. If the time between frames decreases, deltaTime scales VELOCITY down to compensate
so its useful in like racing games?
wait does not run at a fixed 30Hz anymore, both wait() and task.wait() are handled by the task scheduler. behavior depends on engine load, not a fixed tick cap. a 1/30 accuracy is not reliable anymore... also, fps doesnt improve task.wait() precision. it runs on robloxās server/client scheduler and not on the render frame rate. fps is just how often the screen draws
using wait would make it unfair, you'd fall behind
using task.wait would allow u to be where u were
In every physics simulation
FPS does increase the accuracy of task.wait
It's tied into RunService.Heartbeat/PostSimulation
yo does anyone know how to unfavorite games that are deleted? the ones that give 404 page not found
damn
seeing it change here now starts to make sense
thanks
i learnt something today
im so glad undo exists
i just deleted my whole game almost
well its just the baseplate i've been using to learn
but
why the heck all commissions are long term ASK FOR A SIMPLE TASK GODDAMNIT
Hey! How much is a good pay to have someone make voxel destruction ?? Something I wanna do in the future if I canāt do it myself
Why not take a long term one but ask for per task payment?
Long term ask for stuff that include data saving
that's straight up my weakness
You mean voxel?
Oh my bad yeah, thank for that i didnāt notice
So i've finished all the stuff and started making the buttom game, can you explain how to make multipliers and stuff?
I still have a lot to learn
What kind of multipliers?
for example you step on a button, then the button gives a multiplier to the cash
this is what i have rn for leaderstats
idk if i should do it differently
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local cash = Instance.new("IntValue")
cash.Name = "Cash"
cash.Value = 0
cash.Parent = leaderstats
while true do
task.wait(1)
cash.Value = cash.Value + 1
end
end)
oh wait I should probably make a datasstore thing huh
- Your parenting order is wrong. Prefabricate instead anyways
- Your loop creates a memory leak. Players can disconnect from the server, and in turn, the server should stop processes related to the player
There are a few ways you can represent the multiplier, but at your stage, I would recommend creating another leaderstat, or creating a separate data folder under the player where it can be stored
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
local cash = Instance.new("IntValue")
cash.Name = "Cash"
cash.Parent = leaderstats
local multiplier = Instance.new("IntValue")
multiplier.Name = "Multiplier"
multiplier.Value = 1
multiplier.Parent = leaderstats
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
while player.Parent do
task.wait(1)
cash.Value += 1 * mutliplier.Value
end
end)
alright thank you
guys be honest do u think a fully functioning custom inventory with dataSave and auto updating UI is enough for a portfolio?
if they are making a full game they not gonna comm you to only make 1 system š
yo, when do you guys usually use :WaitForChild() and when do you usually use :FindFirstChild()?
:WaitForChild() if your not sure that object has fully loaded yet, :FindFirstChild() when your very sure that object is loaded
like when u first join a game, it takes time for shit to load, and if your script loads before the object :FindFirstChild() will error
ok i understand it now.
You can put it in your port but itās not a full port
yeah ofc but is it like project showcase worthy
If itās working and not trash js put it on there
the ui is kinda trash
cuz im trash at UI
like it doesnt look that good
alr
Am i converting the camera to mesh local space properly? i am trying to test an octree ray system in my engine. For it i am taking the camera position and rotation and turning it into a mesh local equivalent. I think this is where i have been experiencing bugs since i cant find any issues with the code i was referencing.
We don't do selling here anym
how do u even sell frameworks cant ppl just pirate it or some shit
Pirate it?
like someone buys your framework then just gives it to someone and eventually itll spread or some shit
yeah ive always wondered how people protect their systems
ig a contract but thats probably super od'ing it depending on how like in depth the framework is
usually they sell multiple copies and you build your own idea off of it
edit the framework, etc
anyone know how i can remove the need for global variables in this shit ```#include <iostream>
#include <Windows.h>
DWORD ret_address{};
void (__stdcall *GlDepthFunc)(unsigned int) = NULL;
auto cave() -> void;
auto injected_thread() -> void{
HMODULE openGL = NULL;
do {
openGL = GetModuleHandle(L"opengl32.dll");
Sleep(100);
} while (openGL == NULL);
GlDepthFunc = (void(__stdcall*)(unsigned int))GetProcAddress(openGL, "glDepthFunc");
HANDLE glDrawElements = GetProcAddress(openGL, "glDrawElements");
unsigned char* hook_location = (unsigned char*)((DWORD)glDrawElements + 0x16);
ret_address = (DWORD)(hook_location + 0x6);
DWORD old_proc;
VirtualProtect(hook_location, 6, PAGE_EXECUTE_READWRITE, &old_proc);
*hook_location = 0xE9;
*((DWORD*)(hook_location + 1)) = (DWORD)(&cave) - (DWORD)((unsigned char*)(hook_location + 5));
*(hook_location + 5) = 0x90;
}
auto __declspec(naked) cave() -> void{
__asm {
pushad
}
(*GlDepthFunc)(0x207);
__asm {
popad
mov esi, dword ptr ds : [esi + 0xA18]
push ret_address
ret
}
}
auto WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) -> BOOL {
if (fdwReason == DLL_PROCESS_ATTACH)
{
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)injected_thread, NULL, 0, 0);
}
return true;
}```
yeah, i think its best to have some kind of terms and service with ur product
is there a way to wait without stopping the flow of the loop
task.spawn
so i gotta do allat just to make one command wait .2 seconds more than the others?
task.delay(0.2, function) is simpler if you just need a delay
yes
show your code
it works now it just legit just 3 lines
someone said it was shit but heh it works
it is shit
im here too fool
im everywhere
roblox studio maxxing
except outside, touching grass
same guy thats prob in all those servers too
š
hes in rodevs and this
bro u do not need 6 studio serversš
just come here get flamed for like 2 mins and they give you the answer to ur problem
I use them to hire people
hire me
find me a dev that can make you this amazing model bro
with the worst code ever
exactlyy
task.spawn(function() --this is garbage, this immediately makes a new thread and then task.waits
task.wait(1)
end)
task.defer(function() --this is better, this makes a thread after stuff is ready(very simplified) and then task.waits
task.wait(1)
end)
task.delay(1, function() --this is the best, this makes a thread after stuff is ready and 1 second has elapsed
end)
okay let me try
waitt u cooked
and its like better perfomances?
whats the actual difference between task.spawn and task.defer
task.defer waits untill the end of the current execution frame
one of them is called task.spawn and one of them is called task.defer, hope this helps š
ohh alr ty
thanks this help alot š your really smart
when programming a system like stamina, is it better to just run a universal loop on the server that updates everyone's stamina or individual loops per player for their stamina
this tuff bro
Zero networking servers 
universal
whats a networking server and why should I care
but if you need per-player control without touching the others then individual

you have made me curious tho
why do you think I should be in networking servers
and what the fuck is a networking server
you need connections
connections lead to more jobs
you find connections by networking
many invite only servers offer that
I dont work for other people
im a game producer
it also lets you find people to hire
š
do you want actual good talent
no I want cheap devs
ur not gonna find anything good in hiddendevs
do you perhaps know where to get people who can make full anime ability kits
animations?
animations, vfx and code it
i am confused
isToggled = not isToggled```
that should turn isToggled into true but somehow it doesn't work
where are you checking the value after you toggle it
Zero mutuals btw
nah hes actually him
Old head sitting in the hiddendevs discord
š
Ur 40 years old unc
My beats still clear yours
Bro my name is just halfapiece why does roblox need me to change it to run ads It says i gotta change my buisness name
13 ccu isnt that bad
š
sound design is critical for a game
Itās Roblox š
those satisfying pikc up noise is what makes simulators fun
without good sound,none of the popular games will be popular

whats wrong with being 38 in hiddendevs
š
people can be 90 and still wanna make games on roblox,you cant discriminate
Old head with zero ccu talking bout some bs
stop giving him what he wants
38 year old wageslave btw
my game has a 15k eval within 2 days of buying it
LOOOL
2 days is a months work
damn thats cool! im about to go study in cs real soon,what do u think i should prepare?
would work better on #dev-discussion
sure bro š
wait till the database gets cooked cuz claude put the databse in txt
Gemini is ass and is terrible at reasoning
Unc go back to working ur 9-5
Wrap it up
Larp larp larp
im thinking of going into ML or Cybersecurity
Ngl youāre cooked either way
but it really depends,im still on my first year so i have alot of time to pick
true but imma code with the help of AI
Ur 38 Unc wrap it up
Ew
this server fucking blows š
Ur a 38 year old wagecuck in hiddendevs with zero ccu
mods! kick him out!
does bro actually think ccu matters?
Yea
Thatās what being a Roblox developer is
āDoes bro think money matters?ā
Itās all a bout player count
since when,alot of people be roblox dev for fun and not for the money
This server has a combined iq of 3
one of them is me
my game has a 15k eval 2 days after buying it
Right.
Damn only 15k Robux
Zero mutuals
And the other two for 2 mil
š
Each
W larp larp larp sahur
00000 mutuals on ur side pal
Not even friended to Nate
3 days give or take
how did bro make a game in 3 days? am i hearing it right?
Itās called not larping
And locking in
drop tips bro
u guys think i can sell this too? https://medal.tv/games/roblox-studio/clips/msapE78nHY0irecwQ?invite=cr-MSw3ZTMsMzM4NTE0MTEz
Watch Untitled by TooJasper and millions of other Roblox Studio videos on Medal. #robloxstudio
do u not have other responsibilities
bro my inventory is so fly
2 dollars
ill take if fr fr
I work on the weekend
2 dollars for that is lwk good
whats the game that u soldv
Itās a game called steal a brainrot for 1000x tsunami mode
@rose raptor wake up i need your help
im just messing with ya
Bro my name is just halfapiece why does roblox need me to change it to run ads It says i gotta change my buisness name
best of luck on ur project
if you ever need advice just ask
but genuinely get out of this shithole asap
this is the worst roblox dev discord
genuinely if you are talented please show off ur talent
its like the only popular one 
all public dev discords suck ass
you gotta get in an invite only one
those r the only servers worth ur time
this server is ego battles and ragebait
just many more that are not serious or just clueless
its like finding diamonds in a pile of trash
thats really just how social media is
people are much more comfortable acting a damn fool online 
dude u legit just said ccu doesnāt matter
š
i hope to God these people don't act like this in real life
its not the biggest thing in the world tho
or they genuinely have no friends
no ccu,life still goes on
yes it is 
its subjective
there are other ways to earn money bro
this right here is the problem man ppl argue over opinions 
if your doing roblox as a hobby your wasting time
i think its fun
alright imma stop
hobby projects r for steam since thatās where they actually sell
i just enjoy developing and creating things
every hobby is wasting time 
not everyone has the same goals
no one is going hiking to earn money
you are your own person, i am my own, and so on
roblox is for simple quick dopamine incrementals and stupid shit you play with friends
people do things for different reasons- it should not matter what those reasons are
live and let live man
that'll take you far in life
love the philosophy discussion in #code-discussion
shakespeare among us

plato and socrates in the channel
anything but studying my notes for my exam this week
procrastination maxxing
I just got offš mb for the ping king
you good
sounds complex,might wanna avoid procrastinating on that
I was just tryna make my stand walk with me and then all my scripts stopped working for some reason
So i just got off and didnt save
yeah def shouldnt be, especially since finals are in like 3 weeks
And everything went back to normal
so ready for class to be over and to have a break
I just lost the model i made in 10 minutes
ive done good on my other tests and i believe we get a drop so i'm not super worried
well linear i bombed my first test but did good on the other one
do you have autosave on?
this is just how all my classes feel at this point especially second semester
i feel like most people are just so burnt out by the end of that spring semester
just ready to get to summer and have a break
i do like math tho, just hate the actual learning process
linear algebra is all matrices right?
yeah
its not bad just a good bit of rules and operations to memorize
it almost always boils down to row reducing a matrix in some way
good lord 6 is crazy
im in 5 rn and its been pretty rough
after this semester I can start getting into all my fun major focused courses though
so i think it'll get a lot easier
Yo
Yo
yeah im having to play catch up with my gpa because I decided going out 4 days a week freshman year was a smart idea
so its made internships impossible to get right now and also put my scholarships on the line
yeah glad i got it out of the way tho
def still have my share of fun but I think i got most of it out of my system
yeah thats what really locked me in, was the realization that school is literally my future
if i throw this away i dont have many options
getting expelled is crazy lmao gotta be doing some stupid stuff
yeah def my path, im already 2 years down, dont wanna make this a waste and computer science is something I am very passionate about
gets a little scary at times realizing i'm gonna have a real job soon not some retail gig 
typical discord interaction
Ios 26 keyboard is so broken
i feel like im deleting more than actually typing
Siri vibe coded it š
siri has somehow devolved since release
very weird how apple is usually pretty innovative but has just done jack shit with siri
yeah, im not super worried just kinda scary to you know be an actual adult
feel like life after college is just so vastly different
or they've cooked up some crazy ass siri thats gonna change the world
only two options
ill bet on siri being shit cuz they are just bad
steve jobs was the innovation,not the company
yeah i think apple has sort of realized they dont need to innovate anymore
which honestly not sure what more you can innovate on phones
i think what we have right now is basically perfect and anything else would just raise the cost without providing value to the average user
they should let pc games run on phones,kinda like how Macbook neo uses iphone chip and is able to play pc gams
they should work with game companies to port more games to apple
literally alot they can do
think the big issue with this is lack of active cooling on most phones
and with iphones specifically the architecture is relatively new
so it isnt supported by a pretty wide range of games
idk about new
but it can still be a great device to play less intensive games tho?
yeah apple vision was rough
