#code-discussion
1 messages · Page 283 of 1
💀
u never know
sometimes websites mess it up i went to sainsbury's the other day and it said X.XX£
on the self checkout
Your not allowed to hire here you do realize that right?
oh well
Rlly? I've never seen £ written on the wrong side
only $
ngl idrc hiddendevs server inv got took 😭 so idc
Oh well
it's localisation probably, software not written to move the monetary unit based on country the software is deployed in
scripter
Sainsbury's can't be disappointing gbp like that
builder
i need
why was i getting automodded if none of those words are automodded
it's founded in England tho?
software might be shared/bought from elsewhere
They should've done better and hired someone from hidden Devs and it would be working
give it a small kick
and exponentially increase the force
until the alarms go off
am i trippin or is that RGB text rendering insanely harsh
blame windows
do you use mac
mac has really good font rendering
windows and linux
never gonna use a ios on a x86 cpu
chassgpt?
Read the reasoning
im having network ownership issues when trying to make a system of dragging a ragdolled r6 dummy, can some1 help
is there any good free courses
local RunService = game:GetService("RunService")
-- // Tool Components //
local tool = script.Parent
local handle = tool:WaitForChild("Handle")
local savedC1 = tool:WaitForChild("GripValue")
-- Neutralize default tool grip rotation instantly
tool.Grip = CFrame.new()
-- // State Variables //
local currentMotor = nil
local gripDestroyLoop = nil
-- // Helper Functions //
local function cleanUpOldGrips(arm)
for _, child in ipairs(arm:GetChildren()) do
if child.Name == "RightGrip" or child.Name == "KatanaMotor" or child.Name == "RightKatanaMotor" or child.Name == "LeftKatanaMotor" then
child:Destroy()
end
end
end
-- // Tool Events //
tool.Equipped:Connect(function()
local character = tool.Parent
local rightArm = character:FindFirstChild("Right Arm") or character:FindFirstChild("RightHand")
-- Early exit if the arm doesn't exist yet
if not rightArm then return end
-- 1. Instantly clean up old motors from rapid swapping
cleanUpOldGrips(rightArm)
-- 2. Setup fresh motor
currentMotor = Instance.new("Motor6D")
currentMotor.Name = "KatanaMotor"
currentMotor.Part0 = rightArm
currentMotor.Part1 = handle
currentMotor.C0 = CFrame.new()
if savedC1 and savedC1:IsA("CFrameValue") then
currentMotor.C1 = savedC1.Value
end
currentMotor.Parent = rightArm
-- 3. RunService loop to permanently kill Roblox's default grips
gripDestroyLoop = RunService.Heartbeat:Connect(function()
local defaultGrip = rightArm:FindFirstChild("RightGrip")
if defaultGrip then
defaultGrip:Destroy()
end
end)
end)
tool.Unequipped:Connect(function()
-- Stop the RunService loop
if gripDestroyLoop then
gripDestroyLoop:Disconnect()
gripDestroyLoop = nil
end
-- Delete our custom motor
if currentMotor then
currentMotor:Destroy()
currentMotor = nil
end
end)
guys i need help
when i put this in a tool and use the tool the sword is fine, but the second tool the sword rotates 90 degrees to the left
You have to set c0
Only thing your doing is creating a new cframe
can anyone help idk why i keep getting flunged with my ball on click and my attachment does not delete
that wasnt it , it was a unequip animation bugging for some reason
do you really need the MenuClosed and MenuOpened functions here?
dont use StarterGui
God honest question, do y'all think table.clear deletes the table or clears all values from the table and the table still exists.
pretty sure it just clears all the values and keeps the reference to the table
Someone in the devs forums posted a forum
so i was optimizing my combat system and i noticed something weird. i was using table.clear() to clean up data after a player dies, assuming it would free up the memory. turns out it doesn’t actually do what most people think. table.clear() removes all the keys and values inside the table — but the table itself still exists in memory. if yo...
Glad automod didn't kill me
well obviously, the whole point of table.clear is to allow u to reuse the table without reallocating a new one
thats what i said lol
So can someone explain to me why my grid system likes multiples of 4 but not multiples of 8
It works great on multiples of 4 but not 8........
Aren't multiples of 8 also multiples of 4?
yes, but if 8 can go into it it doesn't work so well
hmm u talking about the grid's size?
mind u put the link to the thread here?
Anyways it's weird
My grid base system works great, but it only works great on multiples of 4, but not so much on multiples of 8 (even if 4 can go into it). My steps (or the grid size) is 4x4 studs. On multiples of 4 it goes in the corners of it (What I want) but multiples of 8 it like to go to the center of it (Not the corner of it) To show what I mean: Mul...
Read it?
yeah seems like positioning issue
i've thought a better way to do that
what is that way
game = true
fun = true
players = a lot
exploiters = nill
speed level sys
if ur grids are separated, i use mouse hit to detect which grid to put the block on, and then i will just set block.CFrame = grid.CFrame + Vector3.new(0, BlockYSize/2,0)
First what happens is a module makes the grids virtually (2d, x,y) and yeah
Every object placed is stored within that model
You can multiply cframe by a vector?
i like my grid system, it's fun
you can, it will translate the CFrame with respect to the Vector3
oh it should be using + operator
Yeah
Thoughts on my first loading screen?
Looks like some solid work man, good job

how do i show off my work in the portfolio if im a scripter when its not frontend (do i like show the data store code or something??)
Isnt there output 🤔
well yeah ig
Well thats enough to check if it works or either collab with someone who does frontend
i also do frontend
am i playing a AAA story game?
activate windows then it will be pretty good
dont pay microslop
they push updates to break ur pc
I dont pay lol
Lowk sketch but I found free cmd keys on a Microsoft post and been using it since
damn thats crazy
is there anyway to see the :MoveTo() source code for humanoids? the stud threshold is lowkey pmo
not directly
Also they took down the source code leak id reference so idk
just move manually then
moveto doesnt do anything groundbreaking
you can control tolerance too
what do you suggest i use if im controlling models?
ahh i see
same thing?
just call pivot to
each iteration
yeaa i mean, it doesnt get that smooth effect that :MoveTo does; considering the fact that it's about the same as setting the CFrame of my model
it does?
really?
yoo where is the thing that shows different devices that we can select to see how our UI will look at the screen
you could just do the same
calculate the new cframe and store it somewhere
then lerp the models cframe to the new cframe
put humanoid in ur model
top right corner,gear icon then device emulation
i'll keep that in mind
and no, im not just gonna ignore the advice, im just locked in on doing something else right now.
interesting idea for motivation
i ❤️ decals
make the part wider,the text too squished
Gnomecode tut
help why is his message here
hey was wondering how to make a train
take train, put train
train train
how train move
take train put train say moved
but seriously how do we make the train move
Linear
Any type of velocity
Then attachment
Script that
Then yeah
so something thats wrong with my script is causing my train to flop around like a fish
Send it
i knda deleted it
??
Oh nice job tho
What are my options to create infinite sea body with animated waves? Ideally locally handled waves &server just have infinite sea mesh
mmm just animate a seamless bone rig of waves?
Okay but to optimise, I think mesh should follow player somehow
what's the best hitbox type considering latency and accuracy?
can somebody help me put an animation in my rig please speed
wdym
sure
gghnht why is making round based sustem to jard
i made it but if no one dies and theres more then 1 person left it bigs
bugs*
it only works if theres 1 person alive then it says “user has won” egdrtcetc
it isnt bro
can someone help me with why i cant upload images on creations
upload via decal, the image gets created automatically with it
i mean here in the creations channel
oh
i don't really know myself, but it's probably because we're still new to the server
that's my guess
OOP is part of basics?
Yes
oh
PERFET
dude that was the old gif
SORY I JUST JOINED
Overpriced
not just overpriced its healla fahing overpriced
i wouldnt pay like 10k or 3k robux just for that unoptimized quest system
tbh
can sm1 help me with my dynamic npc animation system
does anyone here do coms fulltime? i ask because i need a little insight on how it works
Sure
realy
Yes
ur username i will collabrate u
I can't go into studio
Hey boss, DMs
and tell me mistakes
Yea sure
Okay
lets start i will stream
How can I make a placement system in a plot that like produces money
by writing code
Can smb help me with a scitpt
is it bad to put player states on string values?
well
it's easier to make exploits
I guess
how do i make states on the server consistent on the client?
remotes
fire them whenever a change happens
remote functions or just remote events?
why would you use functions
for this
checking the server for what state youre in
Building scripts for anyone who needs small systems built(commision work)
server just fires their state whenever it changes
keep a local copy
DMs
Lmao i was just asking this a few weeks ago
So there are to solutions
Dont handle states of players on client
Yo can someone help me, i want to apply for the scripter role. i want to know, can it be like a system that contains 3 scripts? like a module, a server script and a local script
Send request signals to server and server should validate that request and update states
But if you really want to make your game prone to exploits then make a copy of the statestable on client and modify on client
Otherwise use signals
Its really good
Even when doing hitboxes i create hitbox on client, send data to server, and server does numerous validation checks before doing whatever
Same to almost every system that requires client -> Server communication
@covert locust
Now to check What state you're in
Simple just make a copy of the StatesTable that lives in server, on client
BUT
Never modify the states on client
Just use the copy to read only
Like if PlayerIsInState(Player, "Idle")
you can use the copy
But dont do stuff like
StateMachine.TransitionState on client
Send a request via signals, then let server do the rest
ohh Parent means its calling like where its from?
Yes
Folder
^
|
Object
The Folder is the parent of the object
GUYS can someone help w outfit viewer thingy not working
so script.Parent basically means like when the script is from workspace its calling workspace?
So @heavy shadow .Parent =[Insert Parents name]
Yes
oh
More to it though
Children
Descendants
Ancestors(rarely used though)
Parents
Object Oriented Programming
Dont bother with it right now if you dont understand the very basics of roblox studio as an engine or luau
Whats a function
and what are its benefits'
It's a programming paradigm—a strategy to handling data for specific scenarios
and it makes coding efficient
How can I make a placement system in a plot that like produces money
Can anyone recommend a tutorial or smth
Even if the code doesn't need to be reused, functions can aid in the D.R.Y (Don't Repeat Yourself) principle
Correct. How would you turn this into a funtion
task.wait(5)
print("hi")
print("hi")
print("hi")
print("hi")
task.wait(5)
print("hi")
print("hi")
print("hi")
print("hi")
yee
That's too vague
Oh
local function bart() end bart()
Yeah, not repeating a set of code is using a function which is a reusable set/block of code
uh
wait
So basically I am making a game where you can hatch titans out of eggs but I don’t know how I could place it in plots or make it produce money while it’s on the plot
(The titan produces the money once the egg hatches)
Lmao. Brain fart. I meant to say that they can be used to clean up and improve the readability of your program
Haha. No problem
like this?```local function myPrint()
print("hi")
end
myPrint()
myPrint()```
Does using a full stop negate any sort of emotion shown in a text?
For your level, Nice
or wrong
How do i get an outfit viewer thing to work
@hoary cedar
Likely spammer
Cool now tell me
It tends to
I maintain grammar in my messages up until the last sentence
why do i think what i learn can never be used to create a real game
Lol.
ziffix how do i get an outfit viewer thing to work!!1
Lol*
When did you start learning
I have been learning for about a year now
Trust me
it builds up
Vague
i have slow progress because im experimenting
Like idk where to drag the model into.
Cuz im using this random kit
Everything you learn will
Learn from what passes through these channels. The problems and conversations seen and had here pertains to real world code. If anything, you should witness the things you've learned in application
you're not Shakespeare
I'm 22 💀
and you're still not Shakespeare
Do you think I am trying to be?
idk?
22 and useless
LOL
idk man that's rude
yh
How to Apply
If you want to apply for a role in our community, the applications can be found here! It is compulsory to adhere to our Application Guidelines regarding requirements and app rules.
Pending Time
An application for a skill role may take up to 0-72 hours to be read. If pending beyond that time, please create a ticket using /ticket and then selecting the "Application" category in #cmds
Application Tickets
To ensure your ticket is being dealt with maximum efficiency, please link your application in the media section of the ticket. As well as specify which role you are after. Also, if you have any doubts or concerns related to applications, then you may create a ticket.
Application Tickets take 2-3 days and up to 1 week to be resolved.
Still don't know how? Watch this video to find out how!
mb gng
I have already been undertaking that course of action
Who u feeling like..
Hi DMs.
Why are you labeled a spammer?
Hey guys I’m starting a series on YouTube of making a game with a group this is day 1 0/10 people if you would like to join dm me And I will add u to the group chat we will discuss the type of game on there aswell
Why u in my business -_-
Yo im making a dev group rn 2/10 people if you would like to join dm me And I will add u to the group chat we will discuss the type of game on there aswell
uhhh
in other words he want a full game for free
need scripter for horror game have experience and show ur portfoilo when dming payment is in usd/robux at devex rates
go to #scripter-hiring man
costs
wha
yes
did u have to pay to post?
Yo im making a dev group rn 2/10 people if you would like to join dm me And I will add u to the group chat we will discuss the type of game on there aswell
guys, im scripting for over 1 year and i dont know how to start commisions, can someone dm me if you have time?
Can somaone help with my game dm me if possible
why after modyfing animate script(roblox one) 1 player has the new animations and other doesnt
the other probably has the old animation insted
Nope,configured via animate script, one player(fresh server) has the correct value of animation id inside animate script other doesnt
Hey, im looking for someone to help me please dm me
whatd he do lmao
hi guys me and gpt 5.4 codex are doing scripting commisions
beign weird
yo guys
Should player get ragdoll through server side or client side?
Like server side = inserting ballsocketconstraints and etc, and setting networkowner on player, or client side?
make server create constraints,but the client (the player who died) maintains network ownership
i guess
oh, player isnt dead
im rn making battlegrounds for my own project
just wanted to ask what's better
wah
handle the ragdoll client side but have the server verify the state change
alr
thanks
how can i optimize pathfinding
on the serverside?
local
local pathfinding?
use more interval between loops
like navigation?
yeah pathfinding is local
will try
like i meant to reduce number of waypointindexes sorry i used wrong wording
also, you can make generating new pathfinding only when player changes his position or Path.Blocked fires
try to check position changing through RunService.Heartbeat
guys does anyone want to help make a rpg game for fun, if it goes anywhere you'd get paid
hey, please use #scripter-hiring
if you need help setting it up then navigate to #marketplace-info
Can someone please help me, it involves coding I’d really appreciate it. You can add it to your portfolio if you so wish.
holy i made the best bot in the world
Hey
What is a good way to get small commissions because I am not an amazing coder to where I can make a whole game yet
Anyone know this font name?
How much robux did escape tsunami for brainrots make ?
just learnt how metatables work if anyone cares
10 billion
nice bro
metatables arent that important
most stuff isnt that important u just need to know the fundamentals
who needs uvs anyway 
i just like to know how stuff really works and not be clueless about it so i make less mistakes
thats good bro
thats good to know
is it bad that im using uncopylocked games to learn how to script rn?
if it works for you then i dont see a problem with it
Yay
No problem with it at all
I have a ton of open sourced games if you want
Download the modern collection
what does it mostly consist of?
hiddendevs
hello
textures. right now its not perspective so it warps a bit, also ignore the error msg 
its the real igottic again
3d engine inside of roblox is crazy work
not the first or best to do it
...yet
do you think youll open source it??
yeah, though there are open source ones already out
awesome
do you think you would make a lua 3d renderer outside of roblox when your done?
not really
make shaders now
you dont need this for shaders there is already on open source one for roblox
already looks semi laggy unless he optimizes it you tryna explode his pc 💀
penumbra?
yeah
hmm tru that looks good
i will in the future since i am using a slower display so i dont need to give roblox my id. though thats just a playback thing, its not as slow as you think
is it gonna be open source?
damn looks cool but why do the lines look disconnected
you should read chat
yeah, if i get to a point where its better then other open ones
whast the resolution its on tho
just some artifacts form the slower display that doesnt use API's
alright alright and is this a thing where you use meshids and texture ids or are you genuinely drawing vertices and textures for meshes within roblox?
bout 200x200 at most 255x255 but once i use a better display it could do 1080, 720
Are you using editable image api to read pixels from a texture id?
no, i am using an older graphics display for testing since i dont trust roblox with id's
u think u could make ur own version of a viewport frame that can render roblox Terrain
nah canvas draw speeds are already good enough for what i want
especially newer versions
!
i use blender .obj's
and i make a file reader uing [[]]
They really don't store ids
otherwise they wouldn't have added the chat update
I'm not putting my ID in Roblox anyways
they said the same thing for faces. yet the third party did.
how are you able to use a mesh file in studio without uploading it
What third party?
i copy it as text and put it in [[]]
oh fair enough
a company called persona
99.9% chance they currently store all roblox age verified users so take it as you will
they were contracted by the government of their country of origin (no politc) to store it all for surveillance
Guys i have one fair question
Its anti Dex possible?
Because i found a game when u try to use dex u got kicked
LOL
@balmy tree
do i get creator rewards robux daily or when?
Im not new to roblox studio, but i’ve have never been able to code, even tho I watched tutorials, coulds you tell me how did you learn Luau, I mean what tutorials, or any other font. Appreciate it😸
Yea but idk how easy or hard it might be to bypass
Is it a good approach to put fake arguments in events to catch exploiters?
how does that work
how would they know those arguments exist without them being used in real scripts?
But isn’t exploiters can substitute arguments when using :FireServer
they can, but they likely wont use more than what they can see exists
i suppose you could have it so if an argument is passed incorrectly then it will flag them
Create association with daily stuff, and just write tons of code.
Wing it
Say you want a mechanic, idfk, maybe a dash
Look what u need to move the player, theres cframing, tweening, body(linear)velocity, vectorforces and whatnot
Then see which ones best for your use case out of all the options you found, either thru devforum posts or asking here, see which ones have their ups and downs
Then you can fill in the rest, e.g. you need to listen for input, you have UIS, CAS and IAS, again more options
And other stuff like sanity checks
is this a blue script?
start making something
You need left hemisphere for it sorry
I agree, but I believe you need basic stuff like variables, tables, buffers etc, otherwise it may feel to overwhelming
I get that but I read "im not new to roblox studio" in his message and it didnt cross my mind 😭
He said he doesn't get scripting
Imagine not knowing locals and seeing tween service
5 nested is scary but im too lazy to refactor
ask ai to refactor
what is this language by the way
intttttteeeeresting
i finally got rid of the orthographic texture warping 
english
what happens when u clip the camera thru
The camera clipping will split the triangles into smaller triangles that fit within screen boundaries so i will not crash (most of the time)
But it will return a bug sometimes because the light dot product spazes out and makes a value higher/lower then 0-1 witch causes the display to return an exception
It’s an easy fix I just have to clamp the dot product, but I am lazy
understandable,i am lazy too
whos looking for a scripter
Does anyone have a script for autojump that each user has their own amount of times they can jump?
That they’re willing to share ofc
doesnt work 😭
Wym
even with a decently good portfolio
What about #scripter-hirable
Do neither channels give you any luck?
how do you get comms?
U gotta be verified
I personally dont
People either advertise in -hirable, look for work in -hiring or they also have other places to go on stuff like twitter
dude, i am not applying for skill role cuz first of all, idk if it works
Huh
Wdym u don’t know if it works
its quite hard to get it approved
its not, its just 200 lines of code and a good explanation
to get skill role
they said you had to comment every line
the thing ur making has to be in one script only
too many shitty requirements
the hardest part is thinking what to make
in one script
yea,i havent decided one yet
didnt they also say u need OOP
kotlin
i picked it cuz it has clean syntax
but then i realized
if i make it in kotlin in the future i can potentially use it to script in mc by connecting it to mc api's via java
(fyi kotlin compiles to java bytecode so it has full seamless interoperability with java)
added dictionaries and an io library
sadly i cant work on the language today cuz my mom is forcing ne to come with her to my grandmas house
it does, after getting the skill role i started getting dms without even advertising that i was doing comms lol
any fine huzz here
Owh
But idk how to code
Alr ty for help
imma be real with u
the more u write the more youll learn
thts prbably true
I can teach you basics I have some free time
Anyone here a scripter
dms
we're all scripters but judging off of entrance you're probably here to pay someone
so they're telling you to DM them, probably in hopes that you'll pay them
Kind of
No one responding
you don't need an instant response
because percentage lmao
Then how are we supposed to pay for long terms
with upfront
Percentage is best
not for your first hire where you need to build trust, especially as an unknown user
So i should Directly offer them somewhat 2k rbx? That enough
idk bro that's for you to decide
If it ain't you first time hiring people
i doubt 2k will be enough to hire given your project
"come code my whole game for $5" 🥀
2000 rbx is 5 dollars?
2k robux is not even NEAR enough
technically $7 but same thing
yup
Oh k
percentage, aka "i need you to work for free but trust me bro my game will do so good i will be able to pay you"
i feel bad for them
theyll just end up spending effort and time for nothing
That's not what they think
I mean its not necessary, i just wanna know what tutorials yall used, but I appreciate it ty
Just remember that Luau runs on single thread, if somebody says that something runs on paralel, it really means it runs cooperatively
Idk what that mean.. sorry
then easier, if somebody says that something runs in parralel, remember that they are lying
amm let me make it clear you have task A, and task B, in alot of programming languages you can run those both task simontinously, both things are done at same time, though its not case in Luau, there is Parralel Luau, but what it does it makes fake parralel code, and just does tasks like A B A B instead of doing both at same time
cooperatively
you could argue portfolio i suppose
yo can anyone help me, how can you show the player avatar here? like shows the player in the circle
yoo tyy
yall im about to finish brawldevs beginner playlist and idk what to do after it do i move to the advanced playlist or is there smthn else
make stuff
like
just watching tutorials will do literally nothing to help you
you need to apply that knowledge to make stuff
^
yes but idk what to make
im not creative
im not either
- Welcome Console System
Goal:
When a player joins, print a welcome message showing:
Player name
A random welcome phrase
Must use:
printing
variables
data types (string, number)
functions
math + random
events (PlayerAdded)
parameters
- Touch-to-Random-Color Part
Goal:
When a player touches a part, the part:
Changes to a random color
Prints the RGB values
Must use:
events (Touched)
properties (Color, Size)
random
printing
math
variables
if statements
- brick rain
Goal:
A brick that when you touch it bricks on random colors will start falling from the sky
Must use:
FindFirstChild/WaitForChild
if statements
math.random
variables
data types
wait
- Leaderstats Generator
Goal:
When a player joins:
Create leaderstats
Add Coins and Kills
Print their values every 10 seconds
Must use:
playerstats
tables
loops
wait
printing
data types
scoping
- part spawner
Goal: a part that when you touch it will start a countdown where
Every 15 seconds, a random part will fall from the sky
Must use:
random
loops
break / continue
WaitForChild
functions
events
- Damage Zone with Cooldown
Goal:
A zone that:
Damages players over time
Has a cooldown so it doesn’t spam damage
Must use:
Touched events
functions
if statements
math
variables
scoping
operators
- Button Puzzle System
Goal:
Multiple buttons must be pressed in the correct order to open a gate.
Must use:
tables
loops
if statements
break
events
printing
- NPC Random Dialogue
Goal:
When a player touches an NPC:
Print a random dialogue line
Different dialogue if the player has more than 100 coins
Must use:
tables
random
if statements
playerstats
functions
parameters
printing
(optional to make the npc model, bonus points if done so)
- Timer-Based Survival Reward
Goal:
Give players coins every minute they stay alive.
Must use:
loops
math
playerstats
if statements
events (CharacterAdded)
scoping
operators
most of the time when i need ideas i just watch gamedev stuff and try to recreate stuff i like
There you go
chatgpt
ty
oo good idea
literally no human formats text like that without bold or italic
Dude it's in the brawl devs discord server 😭
still ai tho lol
A website to sharpen your Roblox scripting skills with handmade challenges.
heres my hot take: "make small projects" is stupid advice and will drive you away from gamedev
just make the thing u want step by step improving as you go
the exception is if the thing you want is EXTRMEELY complex or hard to do
then make other things u want
i feel it depends on you as a person
i found that making big projects is demotivating when you run into something you struggle a lot with
Yea and I'm pretty sure that that guy just wanna use the things he learnt in those tutorial
this obviously doesnt apply to everyone, but its the advice i give because its what i experienced
How i learned was i faked my experience and did comms but i had to figure out how to make the stuff in the comms else id be reported for scamming
and then i made money 🙂
😭
Dangg 😭😭
forgot to elaborate on something
this doesnt apply to learning the engine or basic stuff
I need to take notes...
oh lmao
hi coders
When scripting question everything
when you make something ask why it even works?, is there better way to make it?, is it expandable?, is it modular?
this advice is true to some extent
but dont overdo it
I ask myself why my code works but I dont know the answer sometimes
a wise person once said "Premature optimization is the root of all evil"
i mean my life is optimitsation of scripts, so i can relate
using buffers instead of tables 🙂
premature optimization is still better than premature abstractions which is something beginners run into way more often
most optimizations should be macro-optimizations, fixing design level flaws
what do you mean by premature abstraction
^
you add names to most classes because names are useful, that doesnt mean you should make a parent class NamedClass
thats the most basic example of premature abstraction that i rmemeber
Do you use ai?
sometimes for repetitive tasks
i mean abstraction is only useful if you abstract complexity that is not needed to use something
most premature abstraction comes from misunderstanding DRY (dont repeat yourself)
DRY only applies to logic, it doesnt apply to anything else
it just means don’t think too much about making everything scalable and modular
Yeaaaa I suffer from premature.... Oh mb.
Find pattern of abstraction that works for you, if your experienced enough you get make stuff modular from start
and even expandable
another tip, almost always prefer composition over inheritense
Here is an example. When you disable the default roblox physics replication it also makes it so death events aren’t replicated and the way you solve it is deleting the health script and then killing the player twice
Then roblox will fire humanoid.Died for you
once you do that
you shouldn’t think too much about making stuff modular
i wont lie i dont get point of destroying character of player on death
this is because roblox humanoid system most of the time actively fights against you
its so dogshit
Its a roblox bug
why cant you cache character, and fire your own events??/
thankfully theyve been making it better
It automatically updates your avatar if you changed it I guess
because this is an open source library and people rely on roblox’s event in their game
so i cannot just use my own custom system
Just make a custom character controller easy
but still points of destroying a character and recreating it instantly is basicly adding complexity, that doesnt even give anything
Avatar reloading
You can already do this
you never have to go through roblox’s character lifecycle you can create ur own custom character systems
You can just not use the humanoid's health really
never used it lol
its really ass
the only reason i still use humanoids is because i like to use move to
please dont
i hate moveto so much
It's issue is that it's trying to do everything possible really, most don't even need a fraction of what it does in the background
ive been starting to use velocity dw
Can you even make procedural animations, that work on roblox humanoid??
nice
yes
roblox api is supposed to be useful in every situatiion
what does animations have to do with humanoid
humanoid:play animatio
the thing is you cant run animation that are not saved in that toolbox
procedural animations are calculated on runtime
Yeah but in the case of humanoid all the stuff it's doing makes it slow
this is wrong on so many levels
humanoids are useful still
^
i dont question myself
also humanoid:loadanimation has been deprecated for a while now
use animator
I already use a custom animation system instead of using roblox’s animation system because theres no way to selectively not replicate certain animations
Anything that's heavily generalized will always be slower really
roblox studio becomes a bad option when ur game is complex
like it quite pisses me off that when you want to test some animtation you have to save it on roblox
turning off evaluatestatemachine helps a lot with performance
You can write your own stuff
after all is said and done roblox studio is still a sandbox
bro fr, if i dont like an animationn i have to upload another one
you know you can overwrite it right
replacing humanoids isn’t easy if you want to replicate the character’s appearance without it
then your toolbox looks like jump_1, jump_2, jump_2.1, jump_47.....
still takes the same time vrotine
It pays off when you are making a complex game
It wont look the same without a humanoid
cant server just hold single position, and client calculates locally?
which is one of the problems
just use meshes for bodyparts
Im talking about clothes, accessories etc
I know but you can fetch all the character details and re structure them yourself
make your own system??
oh you meant roblox ones??
Humanoids causes them to be rendered differently
At a lower quality really
i cant imagine myself allowing roblox skins be used...
If you want the same look as with a humanoid for all ur shit its just impossible
but its fine most of the times
I dont find humanoids to be too un performant roblox replication is the bottleneck
Most people who would replace humanoids probably already have their own character customization in place
Got 100x savings after using my own solution
can you reverb?
They are if you wanna have a few npcs lmao
deepwoken has a shit ton of npcs and they use humanoids and my replication
and is perfectly fine
I am pretty sure it sucks playing on lower end devices
yo were talking to a celebirty
its really just not that bad
in most games when making some moving objects isnt its easier to hold position on server and only replicate it?
yes
It is depending on the case really
name one that needs full replication
deepwoken use chrono?
yes
wow
A TD game with hundreds of npcs?
is 35ads credit enough to make your game into algo?
Team Death match game?
Tower Defense
even more you just hold positions on server
and send updates to client
even better if compacted into buffers and batched
in td games paths are deterministic you dont need to send continuous position updates
Yes that's why I said humanoids would be horrible here
Anyone needs help in code?
sthere are some that have non deterministic paths
preoptimizing is bad
I made a library for thishttps://devforum.roblox.com/t/chrono-drop-in-custom-physics-replication-library/3873294
Chrono Github | Documentation | Releases About Roblox’s default replication has several limitations that make responsive multiplayer gameplay difficult to achieve. By default, physics is replicated at 20hz, and all characters are subject to a large, non configurable interpolation delay thats designed primary for mobile devices on low bandw...
in my previous td enemy system i NEVER sent locations to the client
well make it then and if u get problems then u come with asolution
Td games are really easy to optimize imo
Oh yeah just spend double the time rewriting systems amazing planning
think what u want bro
You design according to your plan
a HUGE exaggeration
??
its unlikely you can plan so well in your mind to avoid problems in the game
yo does anyone have a good ragdoll r15 module
also in terms of speed you only want to make what is necessary
There is no case where you avoid 100% of problems lmao
like if you paint a painting
how do u do that
do you start with simple things and build your way up
What is not necessary about what I said?
Is it not necessary to have the game playable on lower end devices?
or do you start just by painting mona lisa
its all in ur head tho
u didnt actually make it to know for certain
We do know for certain
also what if you change ur design of ur game
i think what he meant to say is premature optimization is bad
and those optimizations didnt actually matter
huge difference
thats what premature optimization is
That applies to everything lmao dumb example
Currently its hard to switch from using R6 to more modern methods without using R15, because Classic Clothing rendering is tied to Humanoids. I’m avoiding using R15, as I find reaching to R15 to be a bit wasteful memory wise as it requires more instances than a regular R6 rig. I am currently using a UV mapped rig so classic clothing will rend...
Yeah but over here we are avoiding a well benchmarked case
It is known that in a tower defense game you avoid using humanoids
How much you optimize your system tho that's up to you
Yes then scrap everything over cause you made shit on top of shit, of course you plan everything out in big blocks and do it bitby bit, checking progress all the time
wait UR the one who made chrono????
u dont need that much planning
yes
This is the most basic of planning
if u just keep things simple
If humanoids are your bottleneck switching to custom humanoids genrally wont improve the perf a ton
theyre not as bad as people say they are
You don't need any humanoid-like system for a TD game it's overkill
why do td games need humanoids
they dont im just saying
they dont
yea u dont
lol areta getting slimed
Depending on your game you can just have the server hold the positions, update the clients at a low frequency at which they interpolate between positions
is blud einstein
for a td game dont send location info to the client at all
Depends
u could just keep it on the server
u guys are so smart
ik
just send the data of the enemy like its type and modifiers and stuff
so client renders nothing
and make the client simulate it
real high iq
thats the optimal way but ive seen some popular games not do that which is kinda crazy
no it automatically replicates son
popular games have ass code
why are u here
for td games you can run deterministic simulations that are based on gstn and then just send an event everytime an action happens
doesnt mean you have to write ass code
to witness ur autism
it just wont be smooth if the player has unstable internet
Yeah I just derived the position from the time the enemy spent alive
Otherwise just usr chrono 😉
but that doesnt matter
money talks
what matters is speed
BLUD, you be happy when you get hundreds of enemies lagging shit out of bandwith
and making ur game fast
u can add it later
you dont even know if ur game will succeed
thats always a bad idea
it doesnt affect the gameplay
make module and reuse it everywhere, Module Scripts exist for reason
it does
you think the client cant render unless you send location info every time
say that to kid with shit wifi
who r u bro
its a td game right?
superiority complex final boss
so all the dmaage is on the server anyways
wait actually no ive seen worse
true, but the other way is still more than optimal enough
I was hired for a game so ass it crashed my studio when I opened it due to having hundreds of thousands of instances clogging the memory
It gets to a point
The other way is mediocre
most games are unplayable with bad wifi
like forge
still does well
ive seen a guy genuinely think tweening on the server is better than tweening on the client and think he is better than all of us because he had 6 years experience
i guess your the one who made that buble collecting game that had 400KB/s sent.....
why is blud talking to himself
6 years of sleeping infront of the documentation
schizo ahh
ARE WE SERIOUSLY ARGUING WHETHER WE SHOULD DO BASIC OPTIMIZATIONS TO OUR GAME
and 600KB reacived
it can be hard to tell sometimes when something is actually simple or basic
more like sleeping in front of his computer with a hello world script open
Skids these days pmo
same
skript kiddy
self reporting is crazy
years of exp means absolutely nothing ive seen so many shitters with multiple yrs of exp
It's crazy really, these people have 0 care for their lower end players
just look at vuuk
do we deserve destructioon?
vuuk a dumb fuck
doesnt matter bro ai replacing us all
ai aint doing shit
its not cus it cant solve my luau quiz
BLUD AI is statistic tool, it cant physically replace programmers and scripters
whats ur luau quiz
isnt that better cause u dont have to go through ur devs throwing a tantrum
and u dont gotta worry bout their sanity
it can
or mental well being
cause ai doesnt have that
maybe you only
IF your shit at your job of course it will replace you LOL
Have you earned anything using AI
no
🥀
i will bro
Bro is just typing to type
how is there a performance difference between n * 4 and 4 * n
Blud that shit tried to prove me that >> << || bit operators are already implemented in Luau....
just typing shit
i mean do u code without ai
oh wait i think i realized it
@west dust lil bro
Theres a pretty big perfomance difference
@wise turtle
same energy as
"ai books are just as good they will replace writers"
"well what ai books have you read that were good"
"oh no i dont read books"
i think i realized it
when you do n * 4, it adds n 4 times, however when you do 4 * n, it adds 4 how many times n is
bro yk ai songs have topped the charts on spotify
ai is shit at luau bro
also writing is different from coding bro
🥀
You still believe those AI centers wont go bankcrupt after 2 years?? Those things work at minus
no
i wouldnt call that pretty big
hot? take: ai is a useful tool and people who dont use it will fall behind
another hot? take: ai is a TOOL and if you use it replace programmers your game or business will fall to shit
considering its a fricking multiplication
its economic and military advantage so the government will always invest in ai development to stay ahead
twk mulk
Ok now I just know you are dumb, computers are only good at understanding it bro they can't generate it
Its big
BTW add --!native on top of script then try it
relative to the performance of those 2, yes
bro i can give claude a picture of a website and it will design 90% of the front end for me without errors
believe what u will bro
without erros, cause you cant spot them bro
why is there even a performance difference wtf
bro wdym
if it errors it will tell me bro
"4 * n uses the ADD opcode while n * 4 uses ADDK where the 4 is a constant, making n * 4 slightly faster."
blud your so naive
Its MUL
Yeah and you are gonna end up having a zillion security vulnerabilities
and roblox game dev isnt necessarily super difficult if ur making slop
there a typo too lazy to fix
and why does 1 multiplication take like 400 us thats so slow considering multiplication has hardware lvl instructions
its front end bro
What if you actually enjoy development and aren't money hungry
because its not 1 multiplication
theres no security vulnerabilities
ok but like why 4 * n
n * 4 is more readable
ok then take ur time 😃
😃😃😃
Blud we all understood you understand no shit about this stuff, so just quit
yeah and it seems n * 4 is "slightly" faster
This guy hasn't even made a penny from dev and is still glazing ai
did you run it on roblox studio?
in the github doc it says its slightly, the creator says its a big difference
its what it says on the github doc
bro . . .
cuz i have school bro
did they use --!native??
Of course you do
@wise turtle how come the doc says its a slight difference but u say its a big
ask @wise turtle
why does luau compile those differently
bigger than what it should be
i have to go to college bro 😢 and its hard for me ok. . . 😢
didnt specify that tho did u
did they use --!native??
i cant just spawn more time bro
no but it uses o2
You aren't making it anywhere bro if you just keep making excuses 🙏
--!optimise 2 does nothing, compared to native
in native there wont be bytecode
what . . .
bro ur literaly a child bro
Wow
yup
the thing is i tried o 2 on millions of itterations and it did 0 difference
"literaly"
okay
guys
Just save us all some time and quit
how to open roblox studio place location
Lmfao
y r u so mean bro