#code-discussion
1 messages · Page 28 of 1
ok but from where
put the fries in the bag
hes unemployed now though
sao paul brazil
I own 2% of blox fruits
and LSplash too?
yes i'm lsplash
bro did one module
fr?
Yeah
@carmine gulch i own 30% of bloxfruits
I bought it for 250k usd
i own the other 68%
i bvought it for like 3 bucks
it seems too good to be true can u provide proof
me and indra r just cool liek dat
Crazy thing is I’m being deadass
have you made it back
lol
35m is 100k
how much did u make
I’ve met my roi long time ago
It’s more than 100k
well i meant what you posted is
@carmine gulch is alright, one day you'll get to our stages and you'll be like us man
ok we have extremely high figures here
dw u starting small youl be big soon
real
bro my job application from sao paul brazil didnt come
bloxfruits is the biggest game out there
just wait like 3 business days
The group isn’t called that dumb ass
my mailer being lazy
@vernal timber stop yapping
brookhaven
i think hes just trolling at this point

why
he is
well one of theb iggest
hes legit
yeah the name of the group is 'group bloxfruits'
Bros lying when I ACTUALLY have a percentage
@carmine gulch is alright bro one day you'll be like us big devs
u starting small i fw it
ill give you 25 dollars for .0000001%
isnt it this?
yes
show me the legal document that shows that you actually bought it
bloxfruits is a completelyt other group then its a lie
as a big roblox creator i'd like to give you all jobs
You wanna see the contract?
😂
yes for proof
Ok
excluding @carmine gulch cause hes making it big soon i fw him lowk hes a small dev rn but he'll be big
Let me find it
I’m on my phone it’s in a old gc
i think core is more believable than the other person here
@carmine gulch what is ur roblox username
who wants a job hit me up i'll give u a job in sao paul in brazil
you'll be working asan executive game idea creator
with big studios such as fisch and blxofruits
ZeroZero_Two
can I report him for harmful disinformation?
no cause the job is real
lowk i believe in @carmine gulch he'll make it as big as me one day
😭
bro i have been asking for a job since 1 hr
ZAY UR J*B COMES IN 3 DAYS BRO WAIT
dont curse him dude
@white pecan it ocme:s withj ur contracty
did you buy zombie attack or are you the original dev because i swear beacon owned it
@carmine gulch your not in the contributors page
gang he bought it
BUDDY HE BOUGHT THE %
Gang I’m not a developer
😭
is dis guy joking
you're*
dong
*their
@carmine gulch where is the contract? disappeard in files?
in which section are you
not everything needs a contract
Fruit shop boss
bro he owns zombie attack
yoo dats right
i think he has the capital
I bought the robux with real money
ok monkey
there are black markets i heard you can literally buy around 10k for around 5 bucks..
why would u spend so much money on digital currency 😭
hes probably trolling again
fair
W gkmc
I’m such a sigma
ok but that is defo real
Its there a way to script affilcate code for influencers, like fortnite, they get % from gamepass bought with their code? I think data base to sotrage every payment and what code used, after month summarise it and group payouts?
Or someone have better idea?
guys whats better composition or inheritance
yeah i used to sell on them
bad guy
keep ur money up not ur funny up
@paper imp Question
what
?
its there no way to make it automatic right?
Like I need summarize it and make manual payments
Uh like infulencer got their code "Star20" for example if someone used his code and buy gamepass hhe get % from the gamepass
in my game
yes
its said that he takes 10% off of each purchase
which when i tried purchasing passes of his game was true
instead of my friend taking 7 robux he took 6 robux
so there must be a certain method although im not entierly sure
that has nothing to do with scripting thats just commission
i figured there was a way to do it scriptwise idk bro
how do they do that then
roblox does not notify you about the extra 10% loss
the creator literally earns less
not creator
Depends on your goals
if u donate all ur robux to an alt then u would lose 10% more value
wait.. thats why hazem is such a rich guy
he takes 10% commission
if third party items are bought in ur game u get a 10% commission
yeee
i thought u'd have to do it scriptwise
when you have millions of dollars, 10% is nothing in comparison to the amount of money you have remaining
10% of 10M is 1M, boom, a whole million dollars down the drain
so what? you still have 9 million left over
at such great scales, normally no matter the amount lost, however much you have left is still overwhelmingly large
readability
sure, 9M could make you live a whole lifetime, however losing 1M over laziness is just wild
oh i didn't see the context - why would you donate it to an alt though?
no clue, saw the tiktok kids doing it.
If your goal is something fantastical and dogshit such as readability then go for inheritance

noted!
io forgot to say thxs
i have 4k robux i want a really clean smooth viewmodules a swing one and a shotgun both must be able to be animated for shotgun simple shoot pickaxe a swing do it in my map upon completion if im happy you get payed!
what the grammar
@mystic grotto Hey hepatitus how are you
What if instead I pay you 4k to leave and never come back
i don't understand this rationale. Readable code is the foundation of a maintainable codebase. Composition can achieve this.
What I mean is that if his primary concern is something as nebulous and irrelevant as readability then he has swallowed too much uncle bob OOP nonsense already and should go all in
readability isn't nebulous, it's pretty clear what is and what isn't readable. it's not irrelevant either; you wouldn't want to work on a codebase that uses this:
s=string;sc=s.char;
g=getfenv;
b=buffer;w=b[`writeu`..g()["sc"]([[56]])];c=b.create;ws=b["write".."string"];rs=b[`read`.."string"];r=b['readu'..g().sc([[56]])];
bb=g()[g()[`sc`]([[99]])](14);
g()[g()[`sc`]([[119]])..g()["sc"]('115')](bb,0,"print")
g()[g()[g()["sc"]([[115]]) .. g().sc([[99]])]([[119]])..g()[""..[[sc]]..""]("115")](bb,5,`math`)
g()[g()['sc']([[119]])..g()['sc'](`115`)](bb,9,"abs")
g()[g()["sc"]([[119]])](bb,12,2);
g()[g()[""..[[sc]]..""]([[119]])](bb,13,3)
g()[g()[g()[`sc`]([[114]])..g()[`sc`]([[115]])](bb,0,5)](g()[g()[g()[`sc`]([[114]])..g()[`sc`]([[115]])](bb,5,4)][g()[g()[`sc`]([[114]])..g()[`sc`]([[115]])](bb,9,3)](-g()[g()[`sc`]([[114]])](bb,12)-g()[g()[`sc`]([[114]])](bb,13)));
to do this:
local x = 2
local y = 3
print(x + y)
Awesome example
local x = require(xValueManagerFactory):GetValue(true)
local y = require(yValueHandlerMarshaller):ObtainState()
local Adder = require(numberAdderModule).new(x, y)
ObjectPrinterFactoryManager(Adder:GetResult())
I can prop up strawmen as well
Sure, this is understandable, but it is not readable because it's overdoing an easy task
OOP is the art of overdoing every task
i see your point on why its nebulous
If your goal is to make hyperbloated clusterfucked Enterprise Software that will take 100 people to work on, go for it
i agree that oop can get way over the top unnecessarily, but thats generally due to poor execution
if your goal is to make a game, just write code and stop abstracting shit
Roblox is already abstracted to a sufficient degree out of the box
most people think you need to wrap everything in a class or encapsulate everything, which is just not the case but a nice median point would be c++'s struct (though luau doesn't really have this)
true but then you now run into what each index really represents; a struct uses pretty much the same amount of memory and is far more readable 🤷♂️
I'm not saying this is wrong, milking clueless employers is awesome and I love job security
no i agree that most enterprise code is generally not that good and doesn't use oop that well. I don't even use oop that much but I don't think it deserves that bad of a rep, especially when executed well
Look around at modern software and reconsider that take

which part do you disagree with?
Computers have never been faster, dogshit has never run slower
That OOP is not deserving of its reputation
Ask yourself this; in 50 years will people jokingly get Cyberpunk to run on a microwave, the way people do with DOOM today?
well how do we fix this code?
-- Script
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local maxStamina = humanoid:GetAttribute("MaxStamina")
local screen = script.Parent
local staminaBar = screen:WaitForChild("StaminaBar")
local remaining = staminaBar:WaitForChild("Remaining")
humanoid:GetAttributeChangedSignal("Stamina"):Connect(function()
local stamina = humanoid:GetAttribute("Stamina")
remaining.Size = UDim2.new(0, 0, 1, (1 - (stamina / maxStamina)))
end)
i was excited to see a fellow oop defender then disappointed when scrolling up 😔
OOP is demonstrably bad for performance of programs, so at least it must make projects easier to manage, or make the lives of programmers easier right?
i think where i choose to use it i get positive returns from it.
If that were true then why do you need 2,000 Indians to make a messaging app these days?

Programs have never done less in more time
depends on the application.
Quintillions of clock cycles have been wasted by OOP
yeah but most computers can afford the waste and programs need to be written for humans more than they need to be written for computers.
Right, OOP makes things easier for the programmers, which is why Uber employs 2,000 software engineers
and your back
lol
you’re, learn the syntax
idk anything about uber's design, codebase, or services. it's hard to blame that on a paradigm.
It’s a messaging app, you click the button and it charges your credit card and sends a message to a driver
And yet somehow with 2,000 engineers and a quadrillion dollars the app barely fucking works
Spread across a dozen companies and the global market
Uber aint need allat bru
There’s 200 at Uber eats in America
Object Oriented Programing?
Wdym bruv?
You could write Uber Eats in like three weeks
I could. You couldn’t. 🤣

prototypes are trivial, scale is hard
There’s a lot of policy involved in programming there it’s not just writing simple code
backend development is where its at
If your talking abt the legal side then yh
What problems does scale introduce in this example?
Yeah most of them work on niches with laws in the locale they have to write code against
Trying to claim certain code is difficult
You're asking what scaling problems uber could have?
very general
Its like saying "I claim the hamburger"
😭
Tbh a lot of development is very simple
its consistency and scaling thats hard
Yes what kinds of problems would be introduced at scale that would be alleviated by throwing 2,000 engineers into the mix
They also have hundreds of interns that factor in to that old 2,000 number. Recently they had layoffs.
lets say you want to code a bot to make 1 simple command thats easy
Most interns aren’t even comp sci graduates
They get in through a program that is basically dei
so many better places for less
i genuinely can't tell if this is rage bait
if not you have the dumbest takes in the world
It’s not, I’m genuinely curious what you’ll say
What are these problems
I swear people in this chat never help bruh its js arguments
oh wait this is discussion not help
js change ts to "code debate" atp
“code bait”
😭
@supple burrow you cant make a claim then not back it
dont call it a dumb take then give no response to it
"I genuinely can't tell if this is rage bait" is not a response bruv
The takes that align with the standards that made the industry a dumpster fire are the correct ones, yes?
idk how you're just deciding it's oop's vault.
What job?
Software Engineering
Maybe your job lol
No I mean specifically what job, are you employed?
what company is using a different paradigm offering services at the same scale of uber with an incredibly lean team of developers?
Ai will replace the idiots of their respective fields
No but im hoping to be a software engineer
You included nobody likes a guy who can't be humble
Says the dude who can’t learn html
Full of bozo takes
What 😭
I already know HTML
So does like the other 90% of the planet
You not included
Not many because it is seemingly more profitable to structure your company as a wasteful bozo clusterfuck
IS that all you come here for to trash on other people clearly somebody got laid off with the uber workers
I came here to honk bozo noses. Let me see that schnoz bro
"How can I prove to myself I need to find a new job"
Clearly you got to much time on your hands
I never been laid off broski
Your right never employed to begin with
Been in software engineering like 17 years now
like i'll accept that uber is wasteful and their structure sucks but i do not think that's because of oop. you have plenty of companies with small teams offering multiple services using the paradigm without fault.
Have you been sleeping for 17 years I think you might need to wake up
Cause clearly you been dreaming to long
Minimum age for this guy is like 40 and this is what your saying
🤣
Cause your choosing to argue with a teenager 😂
Without fault, except that their shit sucks and crashes and is slow and uses too much memory
Apperently you're a super busy software engineer yet you sit in a discord server arguing with teenagers.
but other than that, without fault
hey.com is none of those things.
I’m on Amtrak, perfect time to dump on a bozo tbh
This broke fool can't even afford a jet
Again my I ask how a person who thinks the most important thing they can do is argue with teenagers is a software engineer, you seem like the most dislikable person hell I doubt you can even code you just come here to feel special cause everyone knows your an idiot in real life.
Fries. Bag.
Dumbass. Mothers basement.
You should take this opportunity to improve your customer service skills you’ll need it in your future
You should take this opportunity to head over to mcdonalds I hear they are hiring and your mom doesn't want a 40 year old living with her.
Imagine using the same insult someone already used
Plus you actually live with your parents
Mfw
Imagine being a 35-40 year old arguing with a teenager.
Imagine being a teenager with no prospects, getting demolished by a guy laughing to himself on a train
Delighting in your squirming tbh
Anything you say to me will never make the situation better for yourself you are a person whose life has such little meaining and purpose that the best thing you can do with your day is come into a discord server and act like you actually have a few braincells cause no one buys your shitty act in real life.
Pittiful tbh
I know bro you’re sad
You have no backbone tbh
If I were you I would actually be insulting me
You’re just taking it like a good boy
Asking for more from papa with every reply
Wow so a pedophil e I can only imagine what other things you are
Aww cute did you learn that word from your fathers court proceedings
wtf 😭
Mfw
I'll accept uber and most companies have waste in their employees, but it obviously needs to be a large number. Uber likely has tens of large scale services that need to be constantly maintained.
This thread explains it fairly well
https://news.ycombinator.com/item?id=25376346
Is this what you spent the last 15 minutes typing.
I havent spent the last 15 minutes typing
Look at what you spent the last 15 minutes typing 😭😭😭
Says the pedo
Bro got whipped so bad he whipped out the p word
making the app itself isnt hard, scaling it is
@tall phoenix just ignore lol
there are so many ppl in here that want to create arguements
I swear pedos be showin up everywhere nowadays
Yeah good advice, maybe he’ll stop himself from looking worse at this point
This dudes a pedo not js an argument 😭
i didnt read the chat low key
Bro can go back to complaining about how his dads fingers are too thick and html is too hard to learn
Mfw
THis dude is 40 saying this shit when he knows its a teenager
Anyone know what "CopyTexture::Skylight" tag is in MicroProfiler? Isn't documented or anything.
Yeah bro and all thirty million people saying good boy are problematic lol
Creppy guy 😂
Bro is really using a meme to slur someone
Just smile and take it like a good boy bro
Big difference when its a 40 year old saying it to a teen
You should take it like a good boy
None of this matters because the app breaks constantly and in most cases can't do the most basic shit
uber doesn't know about the 800 SaaS they could be using instead to make their app maintained by 6 and a half people. 🫵 😂
so who cares about their high minded mega services
Multi billion dollar global and publicly traded company broski
i've never had any issues with the app
You've probably just consumed so much soy that you can't even recognize buggy software anymore
the brainwashing is sad
lmao
how many people you think work on the mcdonalds app? ts is buns icl.
who even uses uber eats is the question 😭
10,000 at least
They don't deliver to me
who cares bruh the deals are gas
I know someone in here who works for McDonald’s
and you're right, typescript is buns
Does that count
@native orchid have you ever worked at a company lol
Yeah, shit sucked
Why cant the McDonalds app js reset when I spend my fkin money like ts cant be that hard but then again ive never made a mobile app
me waiting for the example of a c codebase with few developers serving at uber scale: 🙃
👴
The fucking post office?

Instacart was pre acquisition
Lol I like post offices
instacart is written in c?
JavaScript and uh I can’t remember maybe just js
no shot any silicon valley company is writing much c. it does not align with the goal of them at all.
Yeah the goal of making software that actually works?
I worked for a real time bidding ad company acquired by google written in c we had like 4 engineers and sold for just under a billion
they are all shoveling the most high-level languages to get a working product that they can hyperscale by speedrunning the us national debt then doing an IPO or being bought by private equity.
Wow that's bozo shit, you didn't glue together a trillion microservices?
Are you even programming if you aren't linking together libraries you don't understand?
The data matching part where we looked at the data from wholesalers to match your profile was a mess
That was like 200 different companies we had to interface with without a unified standard
My guess is that it was fast, worked, and it wasn't actually that hard to write
yes?
Yeah the whole meat of the product was simple. Written by one guy in a week
Using Perl mainly then extended with c
Insane that you didn't have six meetings daily
We did when google came knocking
sounds like the work of amatures, ngl
You should ideally be spending 95% of the development cycle discussing philisophical topics and not writing code
There’s a big market for rtb
How many SCRUM MASTERS did you have?
Anyone who gets good traffic either signs up for double click or google or makes their own
Double click is google these days
I think we had one scrum master
When I started at google post acquisition it was a big change
I'm sure as soon as you walked in the door all of your competence and drive evaporated instantly
They took our team and put us on a three year integration plan and folded in people from their rtb teams
and you did nothing of value after that point
Well yeah but it was masked by the free lunches
One job I had was at we work and they had beer kegs in the kitchen
who cares if our shit runs like ass and crashes, we have a room full of legos and a chef
Can you blame me for overcompensating and deciding to hate whatever those people like?
No but all lines of work typically have waste at the highest levels
People and processes that are useless and suboptimal
Computers were supposed to make us better, but they actually just made us worse faster

We've never been able to be this stupid this quickly
Now I earn about 162k with a vdc
What was it like back in the 1930s?
Hah
$7 was quite a lot!
The minimum wage was dog shit until like 10 years ago
Also the federal minimum wage is like $6 still
In New York it’s now $15 but a decade ago it was closer to $7 or $8
Making $7 an hour 20 years ago was average
Now it’s poverty level
I want a job
@carmine gulch me too I need a job
Am I tweaking ?
Modules not a valid member of sss
but u can see it is
then when i do waitforchild its a infinite yeild
yo guys how do i remove the looping of my animation
is it when i import
or when making the animation
please
im literary gonna give someone 2 robux if they can help me fix my proximity prompt to animate an object, i spent a WHOLE DAY and it wont work :sad:
you cant access serverscriptservice with a localscript
Post the code
Can i just friend you and invite you to my game
Ok
whats ur user
Dm
Yo anyone know how to make destruction like jujutsu sheniigsnd. Im tryna make an invincible game with it. Seen a lot of people on TikTok doing the same but idk how they replicate it
How to learn Roblox scripting
i dm’d u
Can someone help me fix the reason why I am returning "HTTP 403 (forbidden)" error?
Server
local playerService = game:GetService("Players")
playerService.PlayerAdded:Connect(function(player)
local httpsService = game:GetService("HttpService")
local serverInformation = httpsService:JSONDecode(httpsService:GetAsync("https://ip-api.com/json/"))
local eventsFolder = game:GetService("ReplicatedStorage"):WaitForChild("events")
local serverLocationEvent = eventsFolder:WaitForChild("serverLocation")
serverLocationEvent:FireClient(player, (serverInformation.city .. ", "..serverInformation.country))
end)
Client
local locationLabel = TopBarPlus.new() :: TopBarPlus.Widget
locationLabel:setName("locationLabel"):align("right"):setOrder(2)
local eventsFolder = game:GetService("ReplicatedStorage"):WaitForChild("events")
local serverLocationEvent = eventsFolder:WaitForChild("serverLocation")
serverLocationEvent.OnClientEvent:Connect(function(text)
locationLabel:setLabel(text)
end)
Perhaps a reason
you should also be caching the result
crazy they actually put money to use it
you know of any other api thingy
Hello Developers, Some experiences have server region displays like Server Location: FL, USA, which shows the server location/region of the server. In this tutorial, you’ll know how to make that. Step 1 Enable HTTPS requests in your game Enable HttpsService Game Settings > Security > Https Requests > Enable Step 2 Now we get the location ...
cache your result once and use pcalls
http://ip-api.com/json not https://ip-api.com/json
how do people use modulescripts but like.. actually
What do you mean?
Just
People scripting with modulescripts i jjst dont understand
Like
I get that its for universal functions but how do people use it like that
-- Module script
local module = {}
module.SomeData = nil
return module
-- Script 1
local module = require(game.ReplicatedStorage.Module)
module.SomeData = 10
-- Script 2
local module = require(game.ReplicatedStorage.Module)
print(module.SomeData) --> nil probably
task.wait()
print(module.SomeData) --> 10

who needs help with pressure mega token or chained mega token i can help you for robux
What the fuck is pressure mega token
The hunt thing
Global table?
ye use _g for global table
-- Module script
local module = {}
module.DealDamage = function(attacker, target, amount, damageType)
if not attacker or not target then
return
end
local health = target:GetAttribute("Health")
local maxHealth = target:GetAttribute("MaxHealth")
if target:GetAttribute("Invincible") then
return
end
if damageType == "Fire" then
if not target:GetAttribute("CanBurn") then
return
end
target:SetAttribute("OnFireSeconds", 5)
elseif damageType == "Blunt" then
local armor = target:GetAttribute("Armor")
if armor < amount then
health = math.clamp(health - (amount / 2), 0, maxHealth)
end
else
health = math.clamp(health - amount, 0, maxHealth)
end
target:SetAttribute("Health", health)
return health
end
return module
-- Script
local module = require(game.ReplicatedStorage.Module)
module.DealDamage(player1, player2, 100, blunt)
Thank you :]
I have no clue what is happening in code-help so I may as well ask here,
I am very hesitant to use the base animate script found in the character, but is it a bad idea to have animations depend on conditionals in a renderstep? It's what I have been doing, but it's proven very tedious (mainly due to detecting playerstates on a loop). Is there any better method I should be using for this?
I have been just modifying weights based on movement, however things like jump only trigger for split seconds
Usually keeping things event driven is based, but there are a lot of cases where you need to switch animations based on something that is unrelated to any event or to an event that would be firing every frame anyways
so nah, if you want to use a renderstep update function go for it
My #1 issue right now is mainly just jumping
So you jump and it switches the animation but then it switches immediately to something else?
Yeah, because it's a renderstep it constantly runs the conditional, since jump only triggers for a split second that means I'd need ANOTHER conditional to detect freefall, etc.
It's constantly checking for unique situations which can get messy
I may switch to event-based to see if that helps
let me experiment a bit with events to see how it works
I mean... that's just how this goes

if I must have 20 unique conditionals then I will do such but I will do my best to
avoid that fate
Why is that a fate to be avoided?
readability and functionality
How are you doing the conditionals?
this right now which is why i'm trying to avoid having to account for too many things, i guarantee there is an infinitely cleaner and better way to do this
i am using weights so i can cleanly transition between them
If you're worried about this I'd write a function that helps you out with this
a framework so i could get an idea would be appreciated ^^
local animationTracks = {
IdleCycle,
WalkCycle,
Jump,
Falling
}
local function switchAnimation(newAnimation)
for _, animation in animationTracks do
local value = (animation == newAnimation) and 1 or 0
animation:AdjustWeight(value)
end
end
i am not that impatient fortunately
For a moment I thought I was living in some kind of horrible cyberpunk hellscape 😄
Is there a way to indentify self in typechecking for metatables?
I'm trying to do methods
You put the object for the first parameter
this is what I'm talking about
self is unidentified
tried a lot of other methods
still learning typechecking so Im not the best
uhhhh
U can just disable animation overlap
or whatever its called
you dont return setmetatable
Tbh I'm not too big on type casting but if you want auto complete when you type self you could do:
self = self :: Account
Use that as the first line of your method
wdym
its fine to do that
do
local self = setmetatable({
self.Name = Name;
self.Cash = 0;
}, BankSystem)
return self
oh wait
also you gotta return
for your addcash
it doesnt really matter how you return it
if your using strict
It's the same thing bru
it's the same
What're u actually yapping about
that's not the problem though the problem is that self is unidentified
can someone
U also might wanna specify number in return parameters
^ self=self::Account
I know how to work meta tables just not typechecking
that didnt seem to work tbh
can you show the result
you do it in the method
💀
might be your typeof thing then
X:method()
self = self::object
--other
end
is account your internal
Didn't I say that? I might have dementia ngl
oh
whats the reasoning behind that
I hate doing it that way because you have to add it every single time
If you're on strict mode it'll shout at you
ye
ye but why using the & in the first place, shouldnt you only be using that for your internal stuff
I normally just do
local self = setmetatable({}, Class) :: Class
It combines types
ah yes I see now
I only use it when I see another script using it
then I learn how to incorporate it
I'll probs use it eventually
can anyone test my code and rate it
Tbh I only do it when I write classes/objects. Sometimes when I write functions and I want the auto complete
this is a head bobbing script, make sure it's in first person and put it inside of starterPlayerScripts
strict goofy ah
uhhh is this ai
no
explain what this do
func4 = lerp(func4, math.sin(tick() * int) / 5 * math.min(1, int2 / 10), 0.25 * deltaTime)
(I already understand your code)
@candid abyss
...?
awfully long time....
am I applying to a rank role
seems like a random person is trying to waste my time
gng
I was gonna rate your code
but you first gotta explain to me you understand what your writing
also a person that has alot of experience in coding knows what AI code looks like
that is DEFINITELY not it
can anyone test this code, it's a head bobbing script and it goes inside of StarterPlayerScript, also rate it
i was joking about the ai thing btw, ur code looks legit but the lerping part doesnt make sense to me
Can u make a code for me?
while true do end
I want to make something so every induvial player will see the npcs with there friends avatars. my problem with my current code is it only uses the avatars from one players friend list and since you cant use ApplyDescription on the client every player sees the same npcs. is there a way so I can make it different for each individual player?
make the npcs on everyone's client
dont just apply descriptions to preexisting ones
Smart but would this affect if I was checking when a player interacted with a prompt on a npc if it was on the client. If I wanted to add a value to the players leaderstats through the server could I still do this?
What is it? If it's simple I'd do it
you can create invisible dummy parts with the prompt on them
or just over engineer it
So the server wouldn't be able to detect a prompt being clicked if it is on the client correct? But if I use remote events would that work?
i mean it could work
but thats over engineering and you can just detect the click on the server
With the way you were saying or how?
create a dummy part
set up ur interact ui thing
then when a player joins
create a dummy in the position of the dummy part
Is this a good qoute?
The past is for those who don’t share the present. The present is for those who are ready to face the future. And the future is for those who create ones of the past.
is there a way to fire a remote and get a response from firing once
like you fire server and then it echos a result to the client
use a remotefunction
alright ty
can somebody somebody give me an idea for something to script (im a beginner, dont ask me to make a whole entire soulslike game 😭)
anyone know why r15 rag doll script used on r6, makes the r6 rag doll weird?
Make a combat system
smth funny:
asthma system
ill try
anyone know how to make, you are in combat tag
huh
make combat what?
like add a tag to the player when he's in combat mode?
basically when ur attacking someone check if their player got an attribute called: InCombat and if not then add one called inCombat and set to true, and after some delay set to false
yeah just do what rony said and add a tag to the player, and then make a frame visible when the player is in combat
I’m having trouble changing the value
like do:
if not playerWhoAttacked: GetAttribute ("InCombat") then
playerWhoAttacked:SetAttribute("InCombat", true)
end
no prob
one last question how do I detect when player is attacking and who’s getting attacked
dude, why am i ur teacher ITS NOT THAT HARD 😭
who fired the remote? the player who hit, who is he attacking? the player who the hitbox touched
oh what if you have multiple sources
wdym multiple sources
then the hitbox will get all of them
2 chars and not 1
then the remote event will fire individually
like for example you have different hit boxand remote for each attack I guess
just fire a imaginary hitbox on the client and then if there is something do the same thing on the server
i would handle hitboxes on the server instead of client because of exploiters
OMG NO
One on the client
if there is smth then fire server
and do the SAME thing
yeah thats what i meant bruh
and if not then just do on server
you said just server
plus im assuming that the remote event only triggers if the player has hit something
yes
idk what abt U i wanna make repo on Roblox 😔
what r some justfinisheda30parttutorial things i can make that r easy and for practice
wdym by just finished a 30 part tutorial
make a door and a key and make key open door
on how to script
search
might be a variable mismatch
i know thats what im trynna say
lemme retry
I'm not good fixing scripts but try this
local Equipped = false
Tool.Equipped:Connect(function()
Equipped = true
end)
Tool.Unequipped:Connect(function()
Equipped = false
end)
You declared variable Equipped but never assigned it in the first place. You may have printed the value before it even changed.
no its ina mouse.move
so its constantly changing
is that your whole script?
Show the whole script
yeah.
just that bit is all u guys need see
paste the whole script in here
shouldnt it change if i equip tool?
alr
well..
i doubt it tho
js send it
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Block = ReplicatedStorage.GhostBlock
local Tool = script.Parent
local Stud = 1
local GhostBlock = Block:Clone()
GhostBlock.Parent = game.Workspace
GhostBlock.Transparency = .5
GhostBlock.CanCollide = false
Mouse.TargetFilter = GhostBlock
local Equipped
Tool.Equipped:Connect(function()
Equipped = true
end)
Tool.Unequipped:Connect(function()
Equipped = false
end)
Mouse.Move:Connect(function()
print(Equipped)
if Equipped == true then
local MousePos = Mouse.Hit.Position
local BlockPos = Vector3.new(0, Block.Size.Y / 2, 0)
BlockPos += MousePos
local XPos = math.round(BlockPos.X / Stud) * Stud
local YPos = math.round(BlockPos.Y)
local ZPos = math.round(BlockPos.Z / Stud) * Stud
BlockPos = Vector3.new(XPos, YPos, ZPos)
GhostBlock.Position = BlockPos
end
end)
Mouse.Button1Down:Connect(function()
if Equipped == true then
local NewBlock = GhostBlock:Clone()
NewBlock.Parent = game.Workspace.Blocks
NewBlock.Position = GhostBlock.Position
NewBlock.CanCollide = true
NewBlock.Transparency = 0
end
end)
its literally nothing else
Replace the line:
local Equipped
To
local Equipped = false
If you want it to be something else than nil.
what works?
ight
take this to #code-help
no that's not alright
cause you won't get far
stop trying to take shortcuts and just do it the normal way
u can use it as a assistant
you*
there's nothing wrong with using AI for coding unless you fully rely on it
well I just assumed he meant fully rely
no worries
no, ai code is full of unoptimised code
and its really bad at debugging
you can use it as an assistant.
i am learning tho i just wanted to try ai scripting as people say its good and fatser
local Players = game:GetService("Players")
local DataStoreService = game:GetService("DataStoreService")
local Serverstorage = game:GetService("ServerStorage")
local Datafolder = Serverstorage:WaitForChild("leaderstats")
Players.PlayerAdded:Connect(function(Player)
local PlrData = Datafolder:Clone()
PlrData.Parent = Player
local Folder = Player.leaderstats
for _, Value in (Folder:GetChildren()) do
local Name = Value.Name
local loadedValue = nil
local Store = DataStoreService:GetDataStore(Name)
local s, e = pcall(function()
loadedValue = Store:GetAsync(Player.UserId.."-"..Name)
end)
if loadedValue ~=nil then Value.Value = loadedValue end
end
end)
local IsStudio = game:GetService("RunService"):IsStudio()
Players.PlayerRemoving:Connect(function(Player)
if IsStudio then return end
local Folder = Player.leaderstats
for _, Value in (Folder:GetChildren()) do
local valueSave = Value.Value
local Name = Value.Name
local Store = DataStoreService:GetDataStore(Name)
pcall(function()
Store:SetAsync(Player.UserId.."-"..Name,valueSave)
end)
end
end)
game:BindToClose(function()
for _, Player in (game.Players:GetPlayers()) do
local Folder = Player.leaderstats
for _, Value in (Folder:GetChildren()) do
local valueSave = Value.Value
local Name = Value.Name
local Store = DataStoreService:GetDataStore(Name)
pcall(function()
Store:SetAsync(Player.UserId.."-"..Name,valueSave)
end)
end
end
end)
is this a decent logic
Yes
Did your ledge grabbing system contain alot of math
Just wondering
nah, but my directional moving did have moderate level math
like trig and such?
im guessing since ur character is facing a certain direction
cerebral palsy
wdym
I think he’s referring to use the laws of triangles in unison with the laws of vectors/CFrame and their exotic operations (dot/cross) to calculate the ideal direction for something
you shouldn't have to run IsStudio since datastores are locked in studio
yeah
@paper imp ^
you can check the source code, however its old, i don't fully remember but i don' think it uses dot nor cross
and the direction of movement is retreived from the humanoid movedirection
what math did u use then
i said i don't remember
i might remove it from my portfolio thew source code looks messy
same for flappy bird
dam
combat system
would be cool lol
why do people start taking coms with no personal projects
😭
i got like 5 people dming me with 0 projects what so ever
maybe to fund for future projects
but would require animations alot
If u actually use it to learn, and not just copy and paste yes
Its a very powerful learnign tool
i mean u could use free anims, theyre hiring u for the code not the anims
free animations are not the best and the availability is also not the best
not actual coding
It is
yh
It still lacks yeah, but its still powerful
some people actually assume the more awesome the visuals are the better you can code
99% of the time the code will either not work or be half functional
Not true at all
It sucks but its still HELPFUL
true, but combat systems are high demand
i personally dont find it helpful
to each to their own i guessa
did you try perplexity.ai
Many great programmers use AI on a daily basis
no
i use that for research
mathwise it can code WAY better than chatgpt
Especially for debugging
is a rng skibidi toilet tower defense
Why make it harder on urself when AI is such a resource
💀
bro 💀
name 5
I know people irl that use it
- ai cant do anything intermediate or higher level
- ai is unethical
how is ai unethical
name 5
yh
Many whom ar eengineers
using data that they dont own
Bro im not tell u thei rnames tf
cant do hight level
ok i agree with point 1
but how is ai unethical?
uses data they dont have permission to use for training
thats literally the fuss over ai art
i think once we reach AGI its going to be fun
its one step closer to super intellegence
do they gather their data from open sources?
wdym?
I was talking to someone who wanted to learn
i think its a combination of internet scraping and actual researchers
litearlly from everywhere
yeah but if its literally from everywhere theyr answers would be hurrendous they do need actual professionals telling them whats right and wrong
Lol
There are many things in the world that consumes WAY more
Ong
dawg u clearly dont know what ur talking about
it takes one search to verify what ur saying
💀
aw so ur saying im right :)
thank you
How is AI consuming lots of energy
FYM HOW
Explain to me
nah have you heard open ai new model databases consuming like almost 1% of the entire world energy or something
@thorn frigate GTP-3 only takes like 100+ of annual household energy use for training
thats probably for training
Its nothing compared to most sources of energy
and energy isnt the only problem
👍
thats chatgpt 4
chatgpt 3 required like 40-48 times less than gpt 4
the future generations would be even more energy hefty
50 giggawat hours can power roughly 5k households for a year in the us
i just realised my dumbass put a completely useless variable for leaderstats😭
i literally had it right there im gonna crash out
Oh no
What are we gonna do now
calmly inform a responsible adult
name some more pls
o alr
I love kittens
building is way better than scripting 
Yeah but i cant build and i can script
Only way to make game work!!
nothing to make work without builds 🤷♂️
AI can script, AI can't build
building is superior
Guys how does one do modular and clean code without making it overly complicated and quitting 🪫
Idk how people do modular code at all
Hi
uhh.. wit modules and abstract thinking
Like how do people make games with only modulescripts 
Theyre like scripts but have a dictionary bro
yeah i have no idea bri
Explain
Module comes with a table
Scripts dont but overall theyre the same
Cause i dont understand modulescripts at all
Its normak scripts but comes with a table instead of
print("hello world")```
All i know is you can create functions to use in different scripts
so what did you not understand
That doesnt explain how people can only use modulescripts to make an entire game 
Bro its normal scripts
thats what im tryna know bro
anyone help me import time
Define welding parameters
class WeldingMachine:
def init(self, temperature, speed, pressure):
self.temperature = temperature
self.speed = speed
self.pressure = pressure
self.welding_active = False
def start_welding(self):
self.welding_active = True
print("Starting welding...")
time.sleep(1)
self.perform_weld()
def perform_weld(self):
print(f"Performing weld at {self.temperature}°C, speed: {self.speed} mm/s, pressure: {self.pressure} bar")
# Simulate welding process (can be more detailed based on your needs)
time.sleep(3)
print("Welding complete.")
self.check_quality()
def check_quality(self):
# Simple weld quality check
print("Checking weld quality...")
time.sleep(1)
quality = "Good" if self.temperature > 150 and self.pressure > 5 else "Poor"
print(f"Weld quality: {quality}")
self.stop_welding()
def stop_welding(self):
self.welding_active = False
print("Welding stopped.")
Instantiate the welding machine with sample parameters
welding_machine = WeldingMachine(temperature=200, speed=50, pressure=7)
Start welding process
welding_machine.start_welding() is that correct
IT HAS THE POWER OF NORMAL SCRIPTS SO THERES NO DIFFERENCE
they have 50 different modules and 1 normal script that requires and executes them
hell no bro this is oython 💀
Yea bro w
i need it in lua
Also i dont know how to do OOP 😭
I should learn that
Whats def is it like makjng a variable?
Its simple but once you learn it you tend to overcomplicate
like function in lua
its a function
Teach me vro 🙏
Def is a function?
bro its the damn syntax
-- Welding Machine Class
WeldingMachine = {}
WeldingMachine.__index = WeldingMachine
-- Constructor for the welding machine
function WeldingMachine.new(temperature, speed, pressure)
local self = setmetatable({}, WeldingMachine)
self.temperature = temperature or 200 -- Default temperature 200°C
self.speed = speed or 50 -- Default speed 50 mm/s
self.pressure = pressure or 7 -- Default pressure 7 bar
self.welding_active = false
return self
end
-- Start the welding process
function WeldingMachine:startWelding()
self.welding_active = true
print("Starting welding...")
-- Simulate the welding process with some delay
wait(1)
self:performWeld()
end
-- Perform the welding action
function WeldingMachine:performWeld()
print(string.format("Performing weld at %.1f°C, speed: %.1f mm/s, pressure: %.1f bar",
self.temperature, self.speed, self.pressure))
-- Simulate a welding process with a delay
wait(3)
print("Welding complete.")
self:checkQuality()
end
-- Check the quality of the weld
function WeldingMachine:checkQuality()
print("Checking weld quality...")
wait(1)
local quality = (self.temperature > 150 and self.pressure > 5) and "Good" or "Poor"
print("Weld quality: " .. quality)
self:stopWelding()
end
-- Stop the welding process
function WeldingMachine:stopWelding()
self.welding_active = false
print("Welding stopped.")
end
-- Wait function to simulate time passing (mimicking delays)
function wait(seconds)
local start = os.clock()
while os.clock() - start < seconds do end
end
-- Example of using the WeldingMachine class
local weldingMachine = WeldingMachine.new(200, 50, 7)
-- Start welding
weldingMachine:startWelding()
is thett it
million yt vids on it
function perform_weld() is def perform_weld():
Alr
but the general idea is to have a class that represents some object or state and then you have methods to manipulate that object and thats object oriented programming
welding machine framework leaked lvl 999
Temperature is not a thing in roblox
Can you use that in some sort of table?
Or are you able to apply a different variable name for each object
Or does it have to be self
It's not as hard as it sounds, It's pretty much a lot of functions in a singular module script
you don't even need to watch a tutorial or some shit like that
It's insanely easy to learn
you can do something like
local Inventory = {}
Inventory.__index = Inventory
function Inventory.new(player: Player)
local self = setmetatable({}, Inventory)
self.Capacity = 100
self.Data = {}
end
function Inventory:AddItem(...)
end
return Inventory
``` now this can be used for a player to store his inventory and the inventory itself has its own method and properties like Capacity or AddItem (im on mobile so ts is just an example)
What does the __index mean
U need scripting to make things alive
Cough cough, every game on roblox, except showcases
You set the index for the metatable
It's not necessary
Idek why mfs use it
Showcases which don't even earn $ 😂
In fact you need scripting to add monetisation in any game
it is necessary
when you create a new instance of the object, the __index metamethod looks for the function implementation inside the class
@keen bloom
so you dont have to define functions inside the object, rather in the class
???
how is this necessary
if you dont havr the __index metamethod set on the table itself, calling functions on instances of thst class wont work
its not necessary blud
😭
For fetching data on indexing instead of directly storing it
It's necessary in some cases
So for example if i have a rarity in a table and set properties of it like color, text, size etc thats oop?
i will test it later
no thats just data in a table
Oh
local Weld = Instance.new("Weld",hit.Parent.HumanoidRootPart)
Weld.Part0 = hit.Parent.HumanoidRootPart
Weld.Name = "Grabbed"
Weld.C1 = CFrame.new(0,0,-5) * CFrame.fromEulerAnglesXYZ(0, math.rad(180), 0)
Weld.Part1 = Player.Character.HumanoidRootPart
game.Debris:AddItem(Weld,10)
how can i make it so the player "controls" the other player(its random rn on who is controlling the weld)
Oop is useful when it comes to maintaining state, eg light switch with on and off state
what is this bro
Aha
But i got a question
Eggxactly
Mhm?
How you can tap? Go sleep
?
Tap like chicken
????
You good?
Then why do u have conor as ur pfp 😂
Simple, y noy
Fair
A question
Can someone here make me a script that u have to be in a group with a certain id and if you don’t you get kicked with a message saying: request to join the group to get acces to the experience
That's not a question ⁉️
That's a hiring message sir
Ask chatgpt
That's my homie, he does those for free
Theoretical question. How hard whould it be to code a ball mergige system? You have to balls you pushe them together than another bigger ball spawns, etc.
not hard at all; the difficult part imo would be showing that in a visually appealing way
anyone know why this says “error type”? the syntax is right and there is no errors but it doesnt want to autofill when i use a module for services. the first image is the module. it still does the same even if i replace the ReplicatedStorage = game:FindService or game:GetService with ReplicatedStorage = game:GetService(“ReplicatedStorage”). whenever i dont use the services module tho, it autofills. second image is with module, third image is without.
currently working on an advanced hitbox (yes i know a basic box would work but im bored) it works perfectly for both r6 and r15, any ideas for what i should add/remove from it?
If it works perfectly...
?
my goal it to make is as stupid as possible since im just messing around
im just asking for challenges rn basically
anyone?
send a picture of the output whenever youre getting the error rq
oh read it wrong mb
however the 2nd image says “error type” which does not make sense as the module is there
and all i did was require it
but when i dont use the services module it doesnt say error type
if u want a challenge, look into making plugins; hella challenge bc the docs are quite literally against you (non-existent)
otherwise I can't see hitboxes providing the kind of challenge ur looking for
they updated the docs though
for plugins specifically
just use raycasts if u want precision 😭
paying 5k for a scripter js get the work dont fast
bro has made NOTHING 😭
if the part is positioned and sized the same as a limb, then its the same hitbox
ontop of the fact that the code there wasn't written by you
💔
DM ME RN IF U CAN SCRIPT PAYING HUGE
why are u checking limb.Name ~= "HumanoidRootPart"
Don’t want it to add a part to the root, only the limbs
ok
I only accept $math.huge
module script vs. bindable event
which one is better?
most of the time, module script
hmm, i'm guessing module script is safer cause you put it in replicatedStorage ( exploiters can't access replicatedStorage,right?)
they can
everything except serverscriptservice and serverstorage
Wdym by 'safer', are you looking into this bc of security concerns?
no, performance and script readibility
thanks
I've found module scripts and signals (signal library) work quite well for readability
i guess i'll worry about putting safety precautions when I get good enough to write script that's worth putting percautions for
