#code-discussion
1 messages · Page 73 of 1
idk yet
the source code has not been worked on, yet
I'll work on it after I'm finished with the headers
man what is oop 💔
object oriented programming
oblique oriented pooping
lol
yes but your game objects are objects and your orientation is towards those objects and you're programming them most of the time
literally what is it
@stiff ibex I was trying to make a 16 bit fake CPU with a made up instruction set I had that would just be easy to work with in machine code and implementation and it seemed interesting
I thought it would be cool to make a bunch of virtual HW interfaces and make a game around essentially letting people sandbox with the things through only bare-metal programming and maybe like emulating plugging things into the computer
well all I'm working on is firmware in Roblox
starting with Apple's iBoot
oh ic
I'm also porting iOS into Roblox 😭
object oriented programming = prefer to interface with data through functions that are defined to operate on each unit of data (object), most commonly in the form of methods
this enables spicier stuff like polymorphism
dude explain it like I don't know anything about it 💔
the more common, and tbh better use case, is for like packaging logic and data for utility stuff
Prefer to interface with overhead
comes up in gui code a lot if aren't in the reactive koolaid yet
its not even OOP but the concept of structs + methods is the primary nicety of OOP languages and style coding
so in lua terms @shy cipher
having something like
local someTableThing = makeSomeTableThing()
modifySomeTableThing(someTableThing)
is chill, but
local someTableThing = SomeTableThingClass.makeSomeTableThing()
someTableThing:modify()
is pretty nice
so it's overglorified module scripts
reasons why:
- with module scripts, i don't necessarily need to import the module which contains the functions specific to that object to utilize it anywhere in other modules
- polymorphism. its one, relatively structured way, you could do batch processing on many objects, potentially of different types, where each implements a :modify() where there might be some common intent among all classes using the contract, but the implementations can be widly different and the only commonality would be the inputs and outputs of the modify method
1 is the main reason
yes
somewhat different because note that the someTableThing is a newly created table (instance) with methods attached to it (in other languges its like a syntax thing but here theres literally data being used to assoicate the methods with the object)
you dont need oop for any of this sorry brochacho
OOP in roblox isnt even oop its just prototypes
chill out pistachio, let me read through his messages to see if it's all sorry
wdym import? as in import from file?
I feel y'all are tryna be as incomprehensive as humanly possible
i usually will make modules without OOP (prototype) style but then implement it later when I get sick of having to import access to all the original functions
like uh
say I have a module that makes a 3 dimensional array type thing for a voxel game or smthing
WE have a module
nah its mine
I made it with you
call that the Array3D module
sounds like it has to do with arrays and dimensions 😨
and then say I have another module which is like a singleton that simulates minecraft water using the Array3D module and call that Water
so now Water might need Array3D.getAt(array, x,y,z)
getat what sir
getat what mr american dream
you're naming these properties out of nowhere 😡
and also Water might be using other modules for various things, where, because this is lua, most of the modules create and work with tables of stuff as the principle
legiht how do you set up this thing
so if I have to write like a test script which sets everything up and I want to inspect and/or work with the stuff indirectly I would be having to import Water
but then if I wanted to use any of the functions associated with the interior data, there are 3 options
what happens to those arguments 😢
private logic as in how this man is keeping all the information to himself
@shy cipher wrap it up ur skidded
the most advanced thing I know is deltatime 🙏🏻🦅
remove the jargon and get to the juice my boy
painful, esp as things gets complicated
-- TEST SCRIPT --
local Array3D = require(...)
local EventQueue = require(...)
-- more supporting modules
local WaterSimulation = require(...)
local w = WaterSimulation.make()
for bs in EventQueue.iterate(WaterSimulation.eventQueue) do
-- idk do some stuff here
end
-- more supporting code access
Array3D.printCells(w.array3D)
^ pain way
zirrr what do the ellipses mean WHAT DO THE ELLIPSES MEAN WHAT ARE THEY TELLING ME
-- TEST SCRIPT --
local WaterSimulation = require(...)
local w = WaterSimulation.make()
for bs in w.eventQueue:iterate() do
-- idk do some stuff here
end
-- more supporting code access
w.array3d:printCells()
^ gain way, its not really OOP, but its the useful aspect that is popular because of OOP
??
it's just functionality on a wheelchair
you posted a whole lot of nothing
I don't know if I'm hating or something but zir I understood 5% of what you said and I'll forget that in 3 hours
its ok bro, brainrot is a world wide pandemic
im ngl you added indirection to transitive imports
man cut the jargon I only want the hard facts (in broski terms) 😢
@errant elm I think ur issue is how youre implementing low level modules and not the paradigm you work with
water's dependencies should do everything neccessary, the caller shouldnt have to interface with array3d
this is game dev, not corporate java business transaction code
things are too fluid to have strict interfacing
give me a hug or something
the other 1 of 2 options i didn't mention would be essentially to do as klama proposes and make Water do everything necessary, which would be exhausting but we have AI now so eh
and the last option was my first code snippet
wafflechad trying in all his power to make you not understand a word he says
its just you brochacho
yes 🔥
freaking new slang now
yeah connor
how do i type annotate something to be a union of all provided variadic types? i tried type functions but it didnt really work
this is what i did (sorry for formatting im mobile rn)
type function test(…)
return types.unionof(…)
end
wadafak even is this shit
deadass.
like a function that selects randomly from a vararg input?
prob cooked to attempt that w/ luau
no it returns a type that is a union of all of the variadic types
or that was the idea
type foo<T> = (...T) -> (T)
yep good luck brochacho
is type function a type declaration or did they add type functions?
haiiii x3
hai X3
its kinda both
THEY ADDED TYPE FUNCTIONS
its returns a type
oml thats hot
That's so Kevin
oh shit they did?
It's so ⚽
guys, if you made a web browser in Roblox, how would you make tel:// work?
is this only the new solver brochacho
yes
its kinda fire but kinda shit cause its not working
bro im looking at the docs for this and theres no way you cant make a zip bomb type thing out of this when someone opens a luau file with their editor lmao
alreayd been done brochacho
okla is the zip bomb connoisseur, i reckon yall listen to him
Western, ain't ya, sonny?
local baseplate = game.Workspace.Baseplate
for myCounter = 1, 10, 1 do
baseplate.BrickColor = BrickColor.new("Toothpaste")
task.wait(1)
baseplate.BrickColor = BrickColor.new("Really red")
task.wait(1)
baseplate.BrickColor = BrickColor.new("White")
task.wait(1)
end
if PropellerConnection then
PropellerConnection:Disconnect()
PropellerConnection = nil
end
if isPowered == true then
print("Powering Up")
local direction = { -1, 1, 1, -1 }
local startTime = tick()
local duration = 1
local maxSpeed = 50
PropellerConnection = RunService.Heartbeat:Connect(function(deltaTime)
if not isPowered then
PropellerConnection:Disconnect()
PropellerConnection = nil
end
local elapsed = tick() - startTime
local t = math.clamp(elapsed / duration, 0, 1)
local spinSpeed = t * maxSpeed
for i, rotor in propellers do
if rotor then
rotor.C1 = rotor.C1 * CFrame.Angles(0, math.rad(spinSpeed * direction[i]), 0)
end
end
end)
else
print(isPowered)
if PropellerConnection then
print(PropellerConnection)
PropellerConnection:Disconnect()
PropellerConnection = nil
end
propellers[1].C1 = CFrame.new(-1.228, -0.756, -1.222)
propellers[2].C1 = CFrame.new(1.223, -0.756, -1.221)
propellers[3].C1 = CFrame.new(-1.232, -0.756, 1.219)
propellers[4].C1 = CFrame.new(1.224, -0.756, 1.219)
end
end```
So this is my code to gradually accelerate the propellers during takeoff, but when they spin they spin aroudn the center(red) instead of themselves(Blue)
I thought this was already a thing in Luau
You can annotate the type a function returns
defining the result type of a function has always been there, type functions are like custom types but you can create custom types and shi based on arguments you pass to it
check luau.org
do you recommend taking other people's scripts and just remembering from them? or watching tuts
practice and experiment
if you use tutorials, dont just blindly copy the code, try to understand it and change it
okok thank you so much
go back to skidding with chat gpt pls
can someone help me play anim on a custom rig i put the animator in a humanoid and its still nto working
Anyone wanna make a game w me or help me fix my old game
bro im tryna make a soccer system but im so stuck on what to do
Wdym
What have u made so far
Hater
@empty siren
Hello all. New to this but I'm familiar with other game engines. I have so many questions, but I guess the first on the board would be what's the standard method everyone's using for copy-protection?
backdoor every single one of your models
hide the back door good inside the code
its not possible to have copy protection, but you can backdoor your models so you can shut down their game and the owner’s account
Interesting strategy, should I also be looking into obfuscation or is that not worth the trouble?
useless
guys does turning off cantouch for all parts help performance
can anyone help me with adding on a football kicking system onto my game i only have 100 robux and if you make it work i can pay you that
i could do it but that’s too little
sorry but that all i have
just a bit of advice, if youre making an entire game alone and only have 100 robux to spend (and cant make stuff alone) jst give up bro
learn to make things then start again
you can probably still hire a cheap scripted but it’ll take some time
of course youre not going to make a game and your game will never succeed either even 1k robux
you need real life USD and consider what you use it on
stop buying cool accessories for your avatar and playing whatever you play, instead use your money on investing in scripters, modelers, vfx designers, and sound effect.
if you’re lucky you’ll barely make your game popular for that long
or learn to do it yourself
when i started out i learned to do it on my own and made a small game which earned over 50k
i have this boring game ive spent like $150 on
spent 0
only gotten 10k in 2 weeks
actually i spent 2850 on ads
that’s why you should consider what you use it on.
spending usd on sponsor is better
what was the game about
will give u 100 players after an hour
it was based off rng civilization from youtube lol
not the best to earn from, i would say at least 100k is minimum
i spent 0 and only worked for 3 days
in my game everypart of the ball works like spawning with the ball the ball following you and stuff but i cant get the kicking to work i have been trying for 2 days
and the only thing players can buy is a 20 robux currency adder
here’s a correction: “so i spelt 3 days skidding it from youtube tutorials and free models, and a lot of chat gpt”
nah
the only reason it succeded is because it was well made
incorrect
i only used toolbox models (which i scrapped the code from)
and wrote my own framework
roblox doesn’t care about your game, they care about playtime
you just mad cuz yo shit garbage
and how much they buy from padded
talking from someone who doesn’t make 1 million a year lmao
i was never saying i did
im saying you dont need money to make a game
ur game is garbage, my games are popular
yeah so shush quit yapping abt ur garbage free models game
please quit crying about all the money you lost
end of discussion quit crying
i got 1 million per year you dont
and how unmotivated your games are
lost? im gaining
this is not gambling lmao
not that much if you actually made games
kid i didn’t say robux, im taking about usd
i have a job
alr now i know your lying lol
how
then hop off the kids platform unc
adults can play roblox lol
ngl if i was making 1mill a year i would not be on discord rn
🥱
but judging on how if you were making 1m a year
i would if it’s night and you just got home from a long day
why tf you have so much time to spend on discord
because i just got home
This entire server gives me a headache for some reason
or it's just midnight for me
i love the fake nitro emoji
buddy really just lying to cope for his losses
ive not lost anything
i cant lose money i get from my job
not a thing
"i have this boring ass game i spent 150 on"
mhm
"made 10k in 2 weeks"
never said that i made quite more but alr
who made 10k usd?
why would i devex 10k
Y'all should be happy with the money you make because I make nun
you cant 💀
me watching this argument while i have never even got to see 5k robux
exactly? when did i say i did
not @somber vault
you just said why would i dev ex 10k
bro got 2 cents in his bank
ts gotta be satire
fr
is that a fucking gun
yes, why would i do that lmao
that just sounds stupid
89,000 pics, can i see your gallery young man💀
thats fucking stupid too
more
yeah right
bro what 😭
dude $1m is like $7k or more, it’s not much LOL
u gotta be brainded
you dun said you made that in a year
you just repeated what i said
i make 1 million from my job i said
in usd
and then i said i make more than whatever u meantiones in robux
aww what’s wrong r u stupid
you just coping for your losses since its obvious ur cappin
losses? im richer than your entire family together lmao
guys
could any of you help me out with why my kicking code isnt working?
0/10 ragebait lil bro
Send the code in #code-help
youre acting 10 considering youre childish
nah ur childish cuz ur cappin to try to show off in an online argument
?
im not showing off
dumbass will never have 1m per year
youre yapping about how much i make
with the way you act
wdym
‘
maybe learn reading @real grotto you child
oh yeah? and my grandma is elon musks girlfriend
na 2m > 1m (cuz ur too stupid to do basic math)
maybe you can’t do math
considering the fact that youre 11
just did lol
you should take some more studies in english
nah you should
clearly can tell youre bad at it
cuz u been babbling nonsense this entire chat
ive finished school years ago
youre asking how much i make
it looks like it isnt ur first language
“10k?, 20k?”
“omg 1m bobux is so much im so scared oh my god he is so cool it’s $7k oh my god he totally doesn’t have $1 million in his back account”
and you look like an even bigger loser by saying this
cuz youre just slobbing around on discord
and making garbage ass roblox games
i don’t see anybody agreeing
and i dont see anyone here
im looking around discord yes
idiot
nobody who has an active life as an adult just hangs on discord
go back to sobbing in mommy’s lap
a adult
alr ur a loser then
“as peanut boy continues yapping over the ages he eventually gets so fat that his family leaves him (fun fact his dad already left him)”
oh let me guess, youre gonna speak to your only friend Chat Gpt
hopefully you eventually realize youre useless to society and decide to make a change
oh look at that peanut boy with no friends suddenly comes back
from the “i dont have time to speak to you”
dont stop speaking loser
that’s what i thought stay quiet
end of discussion
How do I go about making double jump?
because it is insanely difficult for me to comprehend humanoid state change and what to use as a base script
and where to use it
how new are you to scripting?
not even new, I just hit a wall
I haven't played around with humanoid state changes yet
and I struggle with logic
dang i cant send doc links
they provide an example of double jump on the documentation for Humanoid:GetState()
yeah bro I have read the documentation and used their code
found a solution thanks though
any advanced scripters looking for work?
i am
you're an advanced scripter?
yo i need help with my game and i cant code the player jump too high i tried fixing it from the settings but failed
show me your work
k
Sounds cool i seen someone emulate linux on roblox
I need help with some code pleae
What code
omg thank you
Ive been trying to figure out how to make my Shop gui work with my npc
But it wont work
Been at it for about 2 hours
Well no one can rlly help u if u dont show the code
Are u grabbing the playerGUI on the server or client?
i dont know anything about code, but i been following guides and stuff
You cant user server scripts to get playerGUI
You have to do it on a local script
yo i need help with my game and i cant code the player jump too high i tried fixing it from the settings but failed
Where did u try fixing it
they can, just any client changes to it they won't see it
here
how do i do that
add some prints
and does it work once?
and break
or just dosn't work
Nah it dont work at all
try adding prints
like the Prox prompt wont even show
Just tweak it so they dont jump high
I dont know how to code
you mean like add hello world?
well try getting the prompt to show up first
well I can do that by taking Prox out of InteractAttachement and putting it in the npc instead(This did not work)
then it will work
But then the gui wont work
Just reference it correctly
** i have 1.5 years of experience on luau,If i study for 12 hours a day(i study 8) for 1 year, in avg, can i reach a good level? i'm already doing this to get comissions, and i'm getting better a lot, but i'm thinking in putting more 4 hours on it.**
You cant rlly estimate with time
can someone give me somethin to make as a starter scripter?
Bc i'm using the money of the comissiosn to pay my college
I would wake up, review what i learned yesterday, practice a bit to not forget, and start with 5-6 hours of learning and 6 hours of practicing
Theres really not much to the language, you kind of just do things, projects and u just go to the manual for more technical details
I mean what are you learning if i may ask?
Bezier Curves
Thats nice
I need to get better as fast as possible to get harder comissions
But my advice, dont spend too much time learning all the sweets stuff and little details about the language, you will advance if you just try to do projects, or even just small things, making helper libraries etc
I got 70k robux by a comissions, and he offered another one much bigger but i couldn't handle this
Dont rush it
just do random things and systems that come to ur mind
its a good way to train and u can sell them out later
Yes, every new topic i make little projects and after this i make bigger ones to put on my portifolio
Yes
basically anything
that is within your current ability scope
just do it when you think of something random
all simulator system(pet,trade,egg,daily, shop,leaderboard,etc);
NPC AI
Bloxburg system(place,grid and plot system)
Round system and map voting
Combat system and Gun system;
Donation system
Job system
level system, ability, rng and case system and clothing system
i made these ones but people said its too basic to get a high comission
Im still confused, The things you guys are telling me to do are very much foreign to me.
Ive been messing around with things and i feel like im just messing it up more
To get a high commission, you just need really good connections just as much as skill
I'm also studying math and physiscs wich is helping me a lot to understand the theory of the topics related to math like trigonometry
Okay, so when a prompt is triggered, you want to show a UI?
YES
You want to use remote events
When a prompt is triggered, you fire to the client
you so cute
The client listens and when it's triggered, it shows a UI for the client.
Well I am rn training hems license so physics also my side
I think after learning many topics the most important would be always making exercises to keep a good logic and be able to script some topic faster
So your client get happier
You pay more attention to the bugs and optimization problems
Think of it this way,
make something, test it couple times and polish what you think is insufficient or faulty
after you fix these little things more improvements ideas can come to mind
leading to better stuff after all
exactly
Isnt trig 9th grade stuff?
ngl im cooked
local prompt = script.Parent
local Attachment = prompt.Parent
prompt.Triggered:Connect(function(Player)
if not Player.PlayerGui:FindFirstchild("ShopGUI") then
local clonedUI = Attachment.ShopGUI:Clone()
clonedUI.Parent = Player.PlayerGui
clonedUI.Enabled = true
local Humaniod = Player.Character:FindFirstChild("Humaniod")
if Humaniod then
Humaniod.WalkSpeed = 0
Humaniod.JumpPower= 0
end
end
end)
I"on know what any of this does
DEALER NPC MODEL: https://www.roblox.com/library/12939448981/DEALER-NPC-MODEL
In today's tutorial we learn how to make a DEALER NPC SHOP GUI in ROBLOX STUDIO! Games like Criminality on Roblox features different npcs spread throughout the map, that the player can interact with and purchase a variety of different items. If you have any questions,...
I been using this trying to do it
Bro bottom 3 scripts of all time
😭
I just want to be done for today
I just want a npc which i can push a button on and get a prompt back
Trig is everywhere
NO YT TUTORIALS ❌❌❌❌
well how am I supposed to do this, I been using ai too
Get monkeydev off studio bruh
i think my reactions show my disagreement
Skid final boss
dont use ai either
Keep using ai
I said it earlier
And yt tutorials
that simply shows ur either poor or u have no respect for your project
Just use remote events
You'll find the right one
AI is good resource
But bad at writing code
Yes ai only for shower thoughts
No he should use ai for everything
hi
Including scripting
Alright..
are u saying
We have lost another one...
what you saying
Im going to use a local script for remote event ok?
You need a server script and local script
local + server otherwise u dont wanna use remotes
because remotes are to send data or activation between server and client and opposite
@willow tangle https://create.roblox.com/docs/scripting/events/remote
Nah ai still uses physicsservice for their collision groups 🥀
Id rather write code myself than spend 5 hours debugging ai
Btw guys my brother posted abt the whole tjing on TikTok his ats deadman2255
cant lie all these people using ai for their projects are either lazy as fuck, they dont care about the project or simply poor
don't promote thanks
I only use AI to debug
or remove comments
lowkey what pmo the most is when people ask for help with their ai code
Lol this
youre getting real with this
There was this one high school teacher who quit cuz her students were using AI
LMAO
Instead of actually learning luau 💔
You know people are cheating their way through educational system with ai
what am i supposed to usee instead of bodyforce
its all because of how old the educational system actually is
I think AI isnt just a "revolutionary" in education but also a curse in learning
Linesrvelocity
Or impulse
does it work the same way
i have a quesstion
Or assemblylinearvelocity
Even though every single revolutionary hasn't changed the education system one bit, maybe AI will
question
Or vectorforce
how do you apply for hiring?
Nope
I use vector forces for raycast with my suspension system
You should go read the information channel first
does it do the same thing
everything relies on grades, students focus on the marks in their journals instead of trying to learn, this shows how old the educational system is
True
I only use vectorforce when i want something to bounce
I am glad i am in college now, ur GPA doesnt matter as much
instead of expanding individual talents and interests students are forced to learn what they dont need
Like hoverboards
im studies right now
college is behind already
(well i will be there in 3 months)
Sheeeeesh
what country
Thats whatsupp
PLPR in my
Poland
I'm studying physics concentrating in meteorology in my 4th year
Its what got me into programming, It really is a big thing now especially in STEM
are you looking forward for jobs in space companies maybe?
Theres a lot of places a meteorologist can work in, but rn im planning on working for the canadian government cuz thats where I live
They offer an internship program to graduates
they be getting pretty much anyone smart, meteorologists, engineers, programmers, i could keep listing
Yeah NASA would be a dream lolol
i have a cousin thats in nasa and hes a programmer
he got there by pure accident tho
I was a big fan as a kid
I actually tried making their kennedy space center in roblox
now I lost interest in space a little the space a little since i wanna focus on my future job
Super cool dude
Yeah ive always liked space and all that,
play space engine mate,, you will be fascinated by the game
Ive decided to give up for today cause my head is hurting, Thanks for trying 🏳️

help
yep you're fucked
Can you help me bro 🙏
with what
you used up 236 gigabytes of your storage
I can't help you with that
dude i woke up and have 103mo out of 237go yesterday i had 90
check how big your user folder is
where is this
Go to C:\Users\
then see if File Explorer will allow to see how big folders are
there is default and public what i click
What's your username on the machine?
what user
Hold on, go to %APPDATA% in the Explorer, and go back a few folders until you reach your user folder (it should be the name you put it in as when you set up the computer).
I AM GONNA DIE BRO I FOUND IT 😢 💀
I'm guessing it's the one marked 2025-05-12-23-23-33.
it said my corbeille couldnt take the 6 of them they had too much aura bro
oh
Has anyone found an alternative to the filtering
I want a kill notification to show using a KillFeedGUI that’s in StarterGui. But the GUI isn’t always there when the client script tries to show it. It seems like PlayerGui or the GUI isn’t loaded yet when the RemoteEvent fires.
this is the script
replicated:WaitForChild("SniperKillFeed").OnClientEvent:Connect(function(_, targetName, isHeadshot)
local playerGui = player:WaitForChild("PlayerGui", 5)
if not playerGui then return end
local gui = playerGui:FindFirstChild("KillFeedGUI")
if not gui then
local template = game.StarterGui:FindFirstChild("KillFeedGUI")
if template then
gui = template:Clone()
gui.Parent = playerGui
else
warn("KillFeedGUI not found in StarterGui")
return
end
end
local popup = gui:FindFirstChild("KillPopup")
if popup then
popup.Text = isHeadshot and ("💀 HEADSHOT: " .. targetName) or ("✔ Sniped " .. targetName)
popup.TextColor3 = isHeadshot and Color3.fromRGB(255, 50, 50) or Color3.new(1, 1, 1)
popup.Visible = true
task.delay(2, function()
if popup then popup.Visible = false end
end)
end
end)
yo, how difficult would it be to script a replay mode for a sports game? like after a goal
Guys how do I increase an int value automatically?
what do you mean by this bro 😭
nothing
depends on how advanced you want this
i figured it out
but its mostly just having a history of each instance in the game at a certain time and replaying that
Sup nerds 😎
How do i install trove for studio?
looking for people who own a game similar to grow a garden
sock stacking simulator???
i can make u a thumbnail like it
for scripting
do u just use the same scrips
scripts
like every time they need it
for example they want a combat system and u have the script for it and u use it in the game?
or do u make a new script every time
Add a wait for child with retry loop to wait for KillFeedGUI
Ah thank you. Only took 4 hours 😭
That sounds fun
guys should i be a scripter, modeler or animator
it really just depends on you on what you like to do if you still haven't decided I reccomend scripting since that will give you a foundation to understand how games work end to end
can someone explain module loaders? based on the name i can deduce that they’re used to load modules but what does ‘load’ in this context mean? if it means to set it up for use, how? i thought to use modules all one needs to do is require(path.to.module) and then it’s useable inside that specific script. does the loading load it for all scripts or something?
i am trying to use a RemoteEvent but it failed with an "Argument 1 missing or nil"
What am I'm doing wrong?
local Kills = player.leaderstats.Kills
local Glove = player.leaderstats.Glove
local EquippedValue = player.Equipped
local GloveNumStats = player.GloveStatsDetect
local SFXPart = script.Parent.Parent.Parent.SFXPart
local gloveValue = "Killstreak2"
game.ReplicatedStorage.Equip:FireClient()
Glove.Value = gloveValue
EquippedValue.Value = "Killstreak2"
GloveNumStats.Value = 2
end)```
never mind, I figured out
DO NOT TRUST @featxo or @𝘐𝘯𝘧𝘪𝘯𝘪𝘵𝘺 HE IS A SCAMMER
you might want to make a ticket with proof if you were the victim
i am making it rn
rate my grow system like grow a garden with using tick
Its been about 6 hours since i applied for scripter role its still pending how much time does it usually take?
LOOKIN FOR A NICE GUY THAT CAN HELP ME AND MY HB MAKE A GAME LOCK IN WITH US TWIN
Yo that lighting is so sick would you mind sharing the settings?
Hi, does anyone have advice for me? I can say that I am pretty experienced in coding but there are parts that i have no idea about both in studio and luau, I sometimes find myself not knowing a feature about findfirstchild, there are some services and instances in studio that i havent even used or learned about, is there any other way other than just spending 120324 hours in docs?
@west tide real sigma
upload this on instagram and caption it with why you're a sigma
trust me you'll become famous
I have a bunch of rigs with animations and they all worked, then just stopped, the animations are mine and the game is published under my account, im genuinely about to tweak
Is there any module that y’all recommend for increasing the game performance?
just fix your game dawg
there aren't modules for everything
I tried but i just dont know where the problem is arising from
When i test on a server without any other players, it works fine. But when people start joining its performance starts dropping
look for memory leaks
And how is that?
Hmm
Lets say i make a touch connection
Local hi = function
Local conn = part.Touched:Connect(Function(otherPart)
something happens here
Conn:Disconnect
end)
end
is this the right way?
I wrote this on mobile so excuse if it’s readability is bad
if this is psuedo code then sure
Ye
Whyy 😭
in scripting a whole game for you?
if you learn to script from AI you're not going to learn very much
Forums and docs exist…
AI will lie confidently unless you tell it it's wrong
Fr fr
really?🥲
They refactor it a lot by the end of the day
how small can a task wait go
useful if you have an understanding of programming
anyo1
if you don't it's literally just the blind leading the blind
AI makes one mistake and you won't be able to debug anything
based on a heartbeat event
and I'm pretty sure that's frame dependant
Depends on your game idea and its fan base. I have seen people make some in just a week with no experience

I could be wrong so don't take my word for it
But those only lasted a while
thats the minimum
I think heartbeat can be used on the server but hearbeat used on the client is similar to renderstepped
Just spouting stuff out based on personal experience
don't know if it's true or not tho
Aight ill take ur word for it
Probably a week if free assets are used mostly
probably spending at least 3hr each day
Very much
With scripting experience btw
start with following yt videos will be a good idea?
renderstep is deprecated
It wont help a lot since u will only be copying their video i suggest learning the basics of code first
ok hearbeat happens after renderstepped or prerender which has superseded it
oohhhhhhh
I mean following videos like brawldev/ tdk, so it will be easier to know the basics
Oh ya definitely
I recommend everyone learn how to use runservice and how the Task Scheduler works
very useful
saves a lot of headache later on
o btw can i ask u 1more question
Go ahead
for the big games in roblox , they usually has a much better system and ui/vfx etc , is it becasue their skills are much better than normal devs or just bec they has more money on investing
Most big games are usually made by group of people who specialise in specific skills. In which vfx, UI, music artists and gfx designers change based on their price , speed and how much their quality affects the game’s upcoming update. Which at the end means that they do have a lot of money to invest in the game
In some cases people get hired into the game because if their reputation
If ur gonna be a solo developer, get some experience in all the aspects of game development. And increase ur proficiency in scripting since without it, there is no game
In a nutshell they hire skilled people with available money
Sry i yapped a lot 😅
how do you make parts move smoother in a linear motion
how does critical strike do it
Ye and you will need to know how to build too
Basic ui is easy imo
And you could get free models from ai or toolbox
Animations are just a additional touch, u doesnt affect the game creation unless u make ur game depend on animations
Is not like they are entirely useless but there wont be much need for it in the early stages
Thx man
Aight good luck
hello im jsut wondering what is the point of having a while loop when there is a for loop (i am new to coding)
a while loop is a conditional loop that will run forever until its condition is false
yo
while and repeat loops are interchangable tho
but in some cases its better to use one over the other purely because its easier or less code
alr thank you
and also
a for loop will only run a specified amount of times
its a non conditional loop
how to code
yo
whereas with a while loop it needs a condition in order to continue running
what do u want
mothing
ez
nothing*
Searching UI maker for a tower defense game ! Payment is how the game will do, already got 7 more guys working on it, and uis are kinda the last thing we have to do.
hey
Guys what's the difference between
local part1 = model:FindFirstChild("Part1")
and
local part1 = model.Part1
???
findfirstchild also returns if the object exists or not
let’s say part1 doesn’t exist
ye
well we’re assuming that it doesn’t exist
in this scenario
it would yield an error
but with FindFirstChild() it will return false
because part1 doesn’t exist
but you can use findfirstchild as a replacement for .something anyway
dont
if you know it will be there, use parent.child. if you are not sure that it will be there, use FindFirstChild
no
ye i did local part2 = model.part2
if part2 then
(change colour)
they are not
dont spam FindFirstChild its ugly af and im pretty sure its slower than just indexing
it’s slower by probably
but it ran fine
milliseconds
this adds up with bigger models that have more parts and bigger games with larger scripts
do u not use findfirst child?
if find first child is causing resource issues in your game it’s not find first child
it’s your code
FindFirstChild and indexing have different use cases
yeah
elaborate?
and yes i do use FindFirstChild
differences i mean
findfirstchild returns nil if the instance doesn’t exist
what abt index?
we are at code discussion
indexing gives you the instance
but yields an error if it doesn’t exist
try removing it
it’ll spit out an error
if FindFirstChild is causing issues in your game then FindFirstChild is the reason that there are issues??? 😭
it means yo code is shit 😭
its a link
also it’s a link
i did and it ran fine T^T
i see
what instance T^T
or look up the documentation
thats what i did and im still confused
cuz i added 3 parts on model and once i added the code to see the differences they both ran fine T^T
look at the examples
if you’re really having problems performance wise due to find first child then the underlying code is the problem
unless you really need to save that 20%
in the beginning ye :<
you’ll get used to it
alr
alr ty
indexing (or however you hippies call it) is basically the script trying to grab something
but if that something doesn’t exist
then it spits back an error telling you that the part doesn’t exist
and yields (stops) the script
OH WAIT U WERE RIGHT
you do :FindFirstChild(“part2”)
in this case the script will NOT return an error
and instead it’ll return nil
ahh i see it now
i was just being acoustic
mbmb
because if part2 then is equal to
if part2 == true then
and nil ≠ true
so it won’t pass the if statement
with .part the script will immediately error out and it will yield (stop running past the .part line)
so it doesn’t really pass the condition
the entire script just stops
np
that being said I wanted to do a little dialogue system
this was something that we made like
3 years ago
and I like the concept of having it jump through sections
but this system was pretty ass and I want something more ergonomic
I’m looking for suggestions on how it could be formatted
https://devforum.roblox.com/t/writing-your-own-rich-text-system/3460917
I was thinking of creating my own tags that the main module will automatically parse tags and give them special effects
Writing your own Rich Text system. This guide aims to take you through the steps and thought process of creating a module for parsing text and building UI for rich text purposes. Many steps of this guide may be skipped, however for educational purposes, it is recommend you follow all of it. Introduction Hey, I’m Stef, I’m a Roblox game de...
nvm its too complicated 0_0
like shaking/wavy text
but im still in doubt on how i should format stuff
to make it as easy as possible to work with
my original idea was having [n] = {string, parameters}
and have those parameters be a sort of dictionary, per example the speed in which it type writes
the pause length for “,” and “.”
and have one for the options as well
[“OPTIONS”] = {something, something2, etc}
ALSO, how would I go about dialogue that “changes”, such as “hi! {playername}”
Is there a way to check for example not only caesars humanoid but both caesar and another character in one go, so that I don't need to duplicate the function?
The English was peak
does anybody know why the wave spawns at this point instead of the direction its told to
after watching full series of tdk , how much more do i need to learn for making a good rng game
Ofc you might have such problems the code is firstly not optimized nhor readable
Try making readable and use print statements
Hi
how to learn lua
Learn lua
I recommend you the BrawlDev guide, very well structured and easy to understand, atleast that's how I learned, and use the Devforum
you can do it in css style
so in implementation you have a table of "custom tags" that you can then call in your rich texted string
something like this:
local tags = {
"customTagName"
}
local richtext = "this is a <customTagName>formatted</customTagName> text"
Idk
Anyone who is kind and take a look over this Double Jump script for mobile?
lua
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local jumpCount = 0
local maxJumps = 2
local canDoubleJump = true
local jumpCooldown = 0.3 -- Seconds between jumps
-- Reset jump count when landing
humanoid.StateChanged:Connect(function(old, new)
if new == Enum.HumanoidStateType.Landed then
jumpCount = 0
canDoubleJump = true
end
end)
-- Perform a double jump
local function performJump()
if jumpCount < maxJumps and canDoubleJump then
if humanoid:GetState() ~= Enum.HumanoidStateType.Jumping and
humanoid:GetState() ~= Enum.HumanoidStateType.Freefall then
return -- Prevents ground jumps that aren't valid mid-air jumps
end
jumpCount += 1
humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
canDoubleJump = false
wait(jumpCooldown)
canDoubleJump = true
end
end
-- Input handler (works for keyboard and touch)
UserInputService.JumpRequest:Connect(function()
if jumpCount == 0 then
-- The first jump is handled by the default system
jumpCount = 1
else
-- Double jump
performJump()
end
end)
-- Handle character respawn
player.CharacterAdded:Connect(function(char)
character = char
humanoid = char:WaitForChild("Humanoid")
jumpCount = 0
canDoubleJump = true
humanoid.StateChanged:Connect(function(old, new)
if new == Enum.HumanoidStateType.Landed then
jumpCount = 0
canDoubleJump = true
end
end)
end)
Oh the double x
change this:
humanoid.StateChanged:Connect(function(old, new)
if new == Enum.HumanoidStateType.Landed then
jumpCount = 0
canDoubleJump = true
end
end)
to this:
humanoid.StateChanged:Connect(function(old, new)
fi wen == Enum.HumanoidStateType.Landed then
jumpCount = 0
canDoubleJump = true
dne
end)
so mach thenk you
Thanks for nothing🥲
sori
i undestrand inglish
not good
wdym by take a look
this script is nice
mhm sounds valid
I do have another concern though
what if I wanted something to be executed
/have dynamic dialogue instead of static
(ex. “Hi {playername}!”)
Idk if I should believe you, after you just did sh*t
this sounds so stupid but
I know you can concatenate strings with variables
“hi “..playername
not the best approach but it’s possible
is it possible to concatenate with functions that return a string
ex “hi “..(function() return “me”; end)
no
i mean you already can do that with roblox rich text
how did you guys learn how to script? im interested in learning and im wondering where to learn.
I recommend BrawlDev's guides, they're easy to understand and well structured. Also use the devforum when needed instead of tutorials
yea u can do Hi {playername}
`
i don't use "hi " .. playername
i just use these things ``
it's similar to typescript but without the $ symbol before the brackets
for making a 1Mvisit level rng game , just learing roblox script is enough ? or i need other computer language knowledge
Luau is enough, by learning luau you will learn a lot of good basic concepts
i might be dumb but why wont this work?
local rebound = false
local count = 0
game:GetService("UserInputService").InputBegan:Connect(function(i,e)
if not e then
if i.KeyCode == Enum.KeyCode.Space then
local humanoid: Humanoid = game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Humanoid")
if humanoid.FloorMaterial == Enum.Material.Air and not rebound and count < game.Players.LocalPlayer.Character:FindFirstChild("ExtraJumpCount").Value then
humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
count += 1
repeat
task.wait()
until humanoid.FloorMaterial ~= Enum.Material.Air
count = 0
end
end
end
end)
it worked and it seems simpler than yours
but idk i might just be dumb
please don't do one-letter variable names
i could be input, e could be GPE for GameProcessedEvent
you need to check if e then
instead of doing if e then return end
i just used if not e then
i would prefer that, which is a guard clause, but in that case it's if not gpe then return end
the script is working tho?
nevermind
i am wrong
i got it mixed up 😭
i switched over to CAS a while ago in my game lmao
not InputBegan
dw about it
contextaction?
i just dont use it a lot tbh
ok hold on let me actually look at your code now
yes
alr
ik ik
just checking tho 😭
the script is working perfectly tho
if i just make some server checks
then it will be decent
i somehow read this wrong.
how
i thought you said it didnt work lol
💀
make a serversided executor roblox script that has player whitelist and can be added anywhere in a script
Payment $21 Paypal, Cash App, Venmo, Or Robux
_<
hello????
nobody writing you a backdoor lil bro
Can an exploiter try to replicate same tools from a replicatedstorage to test some things ? i can pay 1k
or even more ?
Wdym replicate some tools
Can u help me
i have tools in replicated storage, i want an exploiter to replicate them client side
they cant
They can if they're in replicated storage
only them will see, but if it contains localscript firing on server script, that might works idk, and they could use that tool without buying it
They cant
So I could use this?
i mean you have to make a int value in StarterCharacterScripts named "ExtraJumpCount" for it to work by just copying it but yes
also the script should be in StarterPlayerScripts
local script
wdym bro "they cant" they can
why not try in roblox studio?
through the command line
They literally cannot
isnt this just a backdoor? 🥀
Are we trolling?
doesnt only the developpers of the experience have access to it ? which mean the commands are server-sided and wouldnt represent a real client-sided exploit
dunno
Bro im reporting you rn
I've already seen ppl doing it
Not possible
dms?
ok
WHAT BUG ? RELICATED STORAGE CAN BE ACCESSED BY CLIENT, THATS THE WHOLE POINT OF REPLICATED STORAGE
THATS HOW EXPLOITS WORK
Yeah, and that's how patching works.
no, if you play the game and then use command line it is local.
It was possible, but it isn't possible anymore.
Yeah but the tool equip wont be replicated to the server
I recall you could probably have done some funky packets, but otherwise no.
yes that used to be a thing but roblox handled it
Yes, but the client script will, and if it contain remote function firing on a server script, if not handled correctly, they still can use that tool
Omg i'll exploit myself so i prove yall wrong
they could fire it anyways lmfao
^
Regardless of equipping the tool
Seems like you probably should... secure the server side.
thats why you handle the remote function correctly server side
if not player.Character:FindFirstChild("ToolName") then return end
very hard....
if you turn on --!strict youll never have a problem
maybe
is there a way to check if the character is walking into a wall?
movedirection doesnt work btw neither does the magnitude
guys
can somoane help me
why is my script not working
btw(i am trying to make a text change its color when you hover your mouse over it)
Does someone know the avg grow a garden makes?
idk
local TextLabel = script.Parent
local initialColor = TextLabel.TextLabelColor
local hoverColor = Color3.new(1, 0, 0) -- hover color (red)
TextLabel.MouseEnter:Connect(function()
TextLabel.TextLabelColor = hoverColor
end)
TextLabel.MouseLeave:Connect(function()
TextLabel.TextLabelColor = initialColor
end)
isnt it textcolor
^
.TextLabelColor isn't a valid property
TextLabel itself is likely the TextLabel instance already (if script.Parent is the TextLabel) so you don’t need to access .TextLabel
Life saver