Not necessarily, its good to split the code up. When reading a function if you can't remember what the start of the function does before you get to the end its ideally better to split it out. Not abstracting can lead to spaghetti code, bugs, readability/maintainability issues. A function which does more than one thing (I don't mean one line of code) should be abstracted. This is due to technical debt building up which will make life more difficult one year down the road. It may seem easier or unnecessary to make it more complex at the start. But this is for a very good reason, complexity in poorly built applications increases with the amount of features added. Complexity stays the same even if 500 new features are added if the application is properly built. This is the reasoning behind it, and it does have real world impacts. I'm currently working with commercial software for a company which is horribly built this leads to issues like people can't purchase clothes, delivery id is set to 0 for all Ireland purchases, cookies/sessions don't work and are used as truth of source. Loads of issues due to technical debt.
#code-discussion
1 messages · Page 255 of 1
Donald trump ahh message
Big brain ahh message
in client im doing some workspace.Model.Part but it is showing nil, could it be that it doesnt load?
Yes
Well where is the part?
Maybe you could exclude the model from streaming enabled
I think it’s under one of the properties in the model
It's not that far away
Think i'll do that, thanks
Either that or you’re just referencing the part wrong
I'm sure I'm not
If I do like task.spawn(func(). While true do task.wait() —my logic end) does that like spawn a separate thread (that you can’t see) that runs in the background? Like the script would stop right
This would never stop unless the script is destroyed or the loop breaks/errors
So not really in the background since its part of the script
👋 Just a reminder to read our rules and use the marketplace to hire!
-# Hiring or looking for work in our channels classifies as misuse and will result in moderation.
hi guys
im crine
yo how long does it take so that my luau scripter application gets approved?
chat is this good?
I started luau yesterday
-- Services
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
-- Modules
local RoundSystem = require(ServerStorage.Modules.RoundSystem)
-- Variables
-- Functions
wait(5)
RoundSystem.new(Players:GetPlayers(),5,workspace.Game.GameTeleport,workspace.Lobby.LobbyTeleport)
local RoundSystem = {}
RoundSystem.__index = RoundSystem
function RoundSystem.Teleport(player, teleportTo)
local character = player.Character or player.CharacterAdded:Wait()
if character then
local HumanoidRootPart = character:FindFirstChild("HumanoidRootPart")
if HumanoidRootPart then
HumanoidRootPart.CFrame = teleportTo.CFrame
end
end
end
function RoundSystem.new(playerTable, gameDuration, TeleportLocation, LobbyTeleport)
print("Teleporting Players")
for i, player in pairs(playerTable) do
print("Teleporting" .. player.Name)
RoundSystem.Teleport(player, TeleportLocation)
end
print("Teleported Players")
task.wait(gameDuration)
for i, player in pairs(playerTable) do
print("Teleporting Players Back")
RoundSystem.Teleport(player, LobbyTeleport)
end
print("Game Ended")
end
return RoundSystem
guys how do you apply a cframe rotation to an object but against the world axis?
I'm learning modulescripts
unless you've had programming experience before, doing oop on your second day is like drug overdose because you craved sugar
oh yeah then that helps immensely
also, use task.wait() instead of wait()
how long do you think it'll take before I'm good enough to make simple games
what's the difference?
get to know the engines api, that would take like a month
i dont remember the exact details but it has to do with precision. wait runs in 30hz whereas task.wait runs in 60hz, so the latter one yields more accuurately
not necessarily. the internal imeplmentation of wait can cause performance bottleneck
roblox itself said that you should use task.wait
Why start by using modules and classes
Like make basic stuff first
What should I code for my portfolio?
why don’t u just show smth u made
i took a break from scripting and developing as a whole for a while so i either misplaced where I put the stuff I coded or I just dont have any
uhmmm
idk like what
modules seem to be really useful
why not learn them
they are when u get experience
chatgpt
"wait" 😭
this guy explained to me why I should use task.wait already
what are those comments then
some guy I was learning from on youtube said
thats how roblox dev usually
organize their code

whats so harmful about them
nothing just looks silly
notes are actually kinda good sometimes
what do i code for my scripting application
yeah not for a 50 line round system
yeah true
but they're new and might need them so w/e
comments should only be to make unreadable code readable
code should be self-explanatory
real
what are some important stuff I should learn?
@mighty mirage dm
lol
datastores next after modules?
if you have someone looking over ur code comments make it so that they dont have to read every line to know whats going on
No
ur going into stuff that aren’t useful when ur a beginner
examples?
Tweenservice 
I did that already
it was pretty easy
or if you are revisiting a script and want to remember what every function does
oh yeah thats documentation
other services too
like I know all of the stuff like
instance
destroy
debris and a bunch of other stuff
but whats the point?
if i know module script
no thats just comments
I can make them
Oh well no that promise module
I don’t like that module
What’s even the purpose of it 
well nothing really
whats the point of stuff like tweenservice, debris, instance, destroy and a bunch of other prebuilt stuff?
If I know module scripts I can just make them myself no?
uhmmmmm u need to learn basic stuff go and watch a YouTube tutorial
how do i make a billboard gui scale?
yt time
not answering my question 😭
you asked 9 questions in one
ask your dad
what? i mean scale it based on the distance, do i have to script it or is there an option
those were rhetorical questions the only one I needed answers to was the last.
how is it called? ive never found it in 2 years
no not that, i mean like, it is not affected by the player screen
offset..?
no im not explaining properly
wait does that work for billboard ui
yup
bless
wait but this way, the text inside will be chopped
even if i use scale on them
will it?
ok ty
@old basin do yk?
I dont know exactly whats going on
set the billboard to scale
gus how do i learn luau, I want to make some cash grab games because I saw some yt videos and some people make like 40k robux a day and I want to learn how to do that. I have no knowledge at all with coding, and I was told to stay away from tutorials
does anyone know how to go about scripting a curved healthbar? i only know how to do a straight pne
yt vid spam
all stuff made in case you need something quick, you can make them custom
yo zein wsp
if not used then it wont cost you any perfomance technically
so it's fine
also hi
alright thansk
btw what do you recommend I learn ?
Its my second day of coding
luau
uhh
all of basics like loops, for loops, ipair pairs, while loops, functions, module scripts, vector3, CFrame, Vector2, Tweenservice
and a bunch more
do you know the difference between ipairs and pairs
I think one does in order and the other one does randomly and breaks incase of something is missing
idk tho
they both do in order
however if ipairs find a nil value it blocks then
alr done
pairs keeps going
until the table finishes
they do?? I thought one cared about the value or index or something
yeah exactly
you're talking about ipairs, whenever the idex reached has a nil value then it stops the loop
pairs keeps going until the table is actually finished
u can also just skip pairs and ipairs alltogether
yeah you can just say the table
idk how good that is performance wise but easier if ur learning to code
also looks cleaner.
i think pairs and ipairs are just built-in functions that return a modified table
that's just my thought, i have no idea
ya havent looked in it that deeply
so perfomance is faster since you're not using the functions ig?
def not
should I look into datastores next?
what should i know
id say if uve learned enough basics just go make a game and learn that way
uh sure, teaches you some new events
@hollow aurora can you explain to me why it's bad though
i'm genuinely interested now
if there's a way to explain it shortly atleast
else imma just do my researches
honestly before roblox made it so you can skip those functions i always used pairs
and never ran into any problems, i dont think it matters a lot but yeah i dont actually know the exact difference
i just did some researches and seems like it doesnt do anything to your perfomance
so just use whatever you like the most
and if it's useful for the situation ig
wow
i feel so intelligent for once
i didnt say bullshit yall
that case literally wipe pairs and ipairs from brain
not really, ipairs could still be useful idk about pairs though
if ur iterating through an array just skip those functions idk what ipairs would b useful for
for k , v in table do
giving out just the table won't say the order or the keys that it has to follow or get, so pairs does that for you
just use pairs and ipairs for readability and clarification 🤫
so use this just when you notice that it's not important
i mean don't use pairs when it's not useful
or use it
won't change much the perfomance
@hollow aurora
mmmm
aura
what
i think it means that if there's an index like "Key" and not like an usual number then might do some crazy shit
imma go do some testing
i'll tell you if i can actually find a difference
chatgpt said implicit iteration just uses pairs under the hood is that true
WHAT THE POINT OF BINDABLE EVENTS
communicate between scripts in the same boundary like server to server or client to client
ohhh
doesnt make sense
what's the point of saying pairs() then
19:31:42.039 > local a = {"hey","hello","whatsup"} for k , v in a do print(k,v) end - Studio
19:31:42.040 1 hey - Edit
19:31:42.041 2 hello - Edit
19:31:42.041 3 whatsup - Edit```
if its a string key based dictionary i dont think you care about order
my internet died
never chat again
oh
local t = {[1] = "hi",[3] = "hi"}
for i,v in t do
print(v)
end
can you run this for me I'm in toilet rn I wanna check something
just prints hi twice
he does, i'm having a chat with him
now use ipairs on the same t does it produce the same thing
i think it wont?
i mean 2 is missing
so it wont
weird mine always says that it doesnt work
it prints hi once? So it's just pairs
no
we can't just write pairs for no reason
19:40:20.939 > local t = {[1] = "hi",[3] = "hi"}
for i,v in ipairs(t) do
print(v)
end
- Studio
19:40:20.942 hi - Edit```
i'm not talking about ipairs
i'm talking about writing or not writing pairs
ipairs stops when found empty spot
pinke
we know that
we're trying to find a difference between passing a table and passing a table inside pairs
ye just checking if none also behave like ipairs
Im Willing to pay any actually coders
half a kitkat
how much
Come dms
"coders"
dont ever play with use real roblox studio coders
we'll kill you
the hell is use real roblox studio coders
what's the difference between coder and scripter and programmer
one writes code one writes scripts and one writes programs
i mean do you know what's a scripting language
scripter is a lower intel
coder is mid
programmer is top
no I just call them all programming lang
well they have differences
programmer should be for both i think though
no wait
idk anymore i forgot about this one
yall do your researches i'm too lazy
bro gave up
HOW did i manage to make a bug like this
( its an easy fix )
On the player joining my IndexUI is updated
Remotes.UpdateIndex:FireClient(player, indexTable)
This is a part in my Server Manager Module (Part of my addToInventory Function):
if invetoryType == "Brainrots" then
local indexTable = profile.Data.Index
print(indexTable)
if table.find(indexTable, saveTable.Name) then
print("Not Added")
return
else
print("Added to index")
table.insert(indexTable, saveTable.Name)
Remotes.UpdateIndex:FireClient(player, profile.Data.Index)
end
end
This is the Client side of my IndexUI
Remotes.UpdateIndex.OnClientEvent:Connect(function(indexTable)
print("Reached")
SetupUI(indexTable)
end)
When joining, the index is updated and the remotes work fine. The code runs smoothly and prints "Added to Index", but it never prints "Reached" to show that it went through to the client. Instead the game completely crashes and i have to restart studio. Anybody know a fix or the problem??
What the hell is this man
Format yo code
--like this
Anyways
On the player joining my IndexUI is updated
Remotes.UpdateIndex:FireClient(player, indexTable)
--This is a part in my Server Manager Module (Part of my addToInventory Function):
if invetoryType == "Brainrots" then
local indexTable = profile.Data.Index
print(indexTable)
if table.find(indexTable, saveTable.Name) then
print("Not Added")
return
else
print("Added to index")
table.insert(indexTable, saveTable.Name)
Remotes.UpdateIndex:FireClient(player, profile.Data.Index)
end
end
--This is the Client side of my IndexUI
Remotes.UpdateIndex.OnClientEvent:Connect(function(indexTable)
print("Reached")
SetupUI(indexTable)
end)
When joining, the index is updated and the remotes work fine. The code runs smoothly and prints "Added to Index", but it never prints "Reached" to show that it went through to the client. Instead the game completely crashes and i have to restart studio. Anybody know a fix or the problem??
What you got here I believe is a recursive function issue
I believe what you got there is a recursive function issue
(forgot the name of it for a sec)
basically means a function that keeps calling itself which causes the code (or even the client sometimes) to crash and exits with a stack overflow error
i believe what you've got there is some sort of a situation where the server and client play a game of ping pong, where the server fires the client remote event and the client somehow triggers the server-side function that fires the client remote event again, and so on... which could cause the client to crash
Could you also send the setupUI function?
local function SetupUI(indexTable)
ScrollFrameCleanup(ScrollingFrame)
for brainrotName, brainrotData in pairs(BrainrotConfig) do
task.spawn(function()
GenerateEntry(ScrollingFrame, brainrotName, brainrotData, indexTable)
end)
end
AddShopPadding()
end
local function GenerateEntry(container, brainrotName, brainrotData, indexTable)
local config = brainrotData
if not config then warn("No Config") return end
if not indexTable then warn("No index Table") return end
local templateClone: TextButton = indexTemplate:Clone()
templateClone.Name = brainrotName
templateClone.LayoutOrder = config.Order
local viewportFrame: ViewportFrame = templateClone:WaitForChild("ViewportFrame")
local nameLabel = templateClone:WaitForChild("IndexName")
local rarityLabel = templateClone:WaitForChild("Rarity")
local borderStroke = templateClone:WaitForChild("BorderStroke")
local descriptionLabel = templateClone:WaitForChild("Description")
rarityLabel.Text = config.Rarity
local textGradient = rarityLabel:FindFirstChild(config.Rarity)
if textGradient then textGradient.Enabled = true end
local borderGradient = borderStroke:FindFirstChild(config.Rarity)
if borderGradient then borderGradient.Enabled = true end
------- Setting Up Labels and Buttons
local brainrotModelClone = brainrotModels:FindFirstChild(brainrotName):Clone()
if not brainrotModelClone then warn("No brainrot model") return end
if table.find(indexTable, brainrotName) then
--Player has found this brainrot
local textGradient = nameLabel:FindFirstChild(config.Rarity)
if textGradient then textGradient.Enabled = true end
nameLabel.Text = config.DisplayName
--print("Is in Index")
GenerateViewPortFrame(viewportFrame, brainrotModelClone, true)
else
--Player hasn't found this brainrot
nameLabel.Text = "???"
--print("Is not in Index")
GenerateViewPortFrame(viewportFrame, brainrotModelClone, false)
end
templateClone.Parent = container
templateClone.Visible = true
end
Have you done any sort of debugging before reporting this issue?
like removing each function and putting it back after one by one to see which function is responsible for the crash
It doesnt it get to the function, because "Reached' doesn't print. So i know it has something to do with the remote but i dont know what. I also tried using another remote and it still crashes
So the server crashes?
Well my studio. Once it gets to the remote it crashes.
I tried disabling the slient script and it doesn't crash. But it doesn't even print "reached" which is before the whole Ui setup so idk where the problem comes from
alright so it is a remote event issue
how many times does the remote event get called
if you're unsure, try adding a debounce cooldown to see if it still crashes after (just for debugging)
I tried the debounce and it still crashes
And the remote it only called from 2 places on the server. On start and in that function
h
Can u give me something basic to code im out of ideas as a beginner
make a 2D physics engine inside of roblox
mf
cmon this is roblox it does not get more basic than that
man
be fr with me
😭
i have month and half experience cant even comprehend how to do that
how to make games?
i could probably make simple game with my knowledge
very simple though
fighting, survival
Combat systems 🤯
And a bit of horror
but then again you'll have to learn a bunch of concepts before you get there so lets keep it simple
like chain or sum (if u know that game)
horror games have one of those monsters that follow u right?
make an npc that constantly follows you there's your idea
guys someone is trying to buy my portal system
how much should I sell it for
⚠️ THIS GAME IS MADE FOR 2 PLAYERS⚠️
🧠 Beat puzzles with friends (and portals!) 👾🤖🐶😸
🎁 Join the group and like the game to show your support! 🤑
😈 This obby is hard, you have been warned 🤟
🚔 This game is NEW and I am a solo developer; expect bugs. 🔥
🌟Favorite the game and turn on notifications for ...
just send an ss
thats cool
Any coder looking to join an project?
hello
thanks
what the hell does this mena
😔
all i'm seeing is some morse code shi
il buy it off you
how much
you take 1,500 USD
yes the entire game
whats the difference between deep copy and table.clone()
not really
for 1.5k ill make you a better game
deep copy will copy all the nested items clone will only clone the first object the nested items will still have the same memory address
I'l pay someone 500$ to teach me for a year how to blender or scripting
and keep paying
wrong chat
what chat would that be
bro 😭
6k usd and i got u
just get a book on blender/coding will save you money
$6k is wild
its a little bit more than minimum yearly wage
if im actively teaching a guy scripting i atleast expect this mnuch
could easily teach someone how to code like a pro in a week
no one coding like a pro in a week's time bro
yes they are lol
all the concepts are piss easy
you got any games out?
games? i don't spend my time making games
it is, this is why i code real programs not games
oh fr?
no 😆
how much those make you
$10k a year per client
you realise someone starting from scratch with no prior coding knowledge is going to take awfully more time to learn basic concepts than someone who comes from another language right
not at all
teaching is very easy and simple
you should become a teacher bro
witht his confidence you'll have a class of andrew tates in a week
what and have shit pay?
nah not a school teacher
teach coding gang
give birth to prodigies
clearly you know how to
in a week at that
im fine i'd rather stick to my job thanks
shit i mean if you can code like a pro in a week why doesnt everyone do it
am i right
easiest job in the world
because nobody wants to share knowledge 😆
im good, maybe ill write a book some day but not now
name 10 books
would take too long
longer than a week?
got like 40 coding books on my shelf right now
oh so you a studious scholar
no
so you keep em for appearances?
i keep em to learn
so you ARE a scholar
Introduction to C
no
Introduction to Brainfuck
Introduction to Javascript
what's up with that bro
everyone's still learning
There I named three books
whatchu learning about
Cpython internals
What about docs
They're not good enough?
Read high performance python, architecture and design patterns with python, already know a bit of internals just not indepth so i'm reading the CPython internals book
What age u started at?
I've read a couple of the docs on the compiler and how it works, docs are good i just prefer books tbh
aight ty
started reading a c++ book at 10 - 11 then started reading the python crash course book at 12
Damn I'm getting into python and cpp just now cus I'm sick of game development with Roblox and unity and all that
good choice
hi
I thought I might aswell get into real programming since I hate every other creative aspect of game dev
couple people i work with also wanted to do game dev did it at uni saw the job market for game dev then decided to learn c# 😆
@abstract delta since you seem to know a lot could you explain how the hell a language like python and then cpp can be used in 1 same project? Like I've seen repo's with a bajillion languages
game dev kinda limits yourself to one area which is meh for jobs/money. You can build shit software which has features and get a client then keep maintaining it and make $5m a year
microservices, you can also do it via DBs and im pretty sure there's some kind of API which allows you to communicate with another lang can't remember
im fairly sure you can also import c/c++ into python not sure how that works
docs.python.org/3/library/ctypes.html here it is
Thank you I'll look into once I'm out of classes
what is iparis and pairs for
week 2 or 3 in scripting
can someone give me moe ideas of this, i wanna try to make some
ipairs doesnt work on dictionaries
ipairs is for order, and pairs is just undetermined order
I thought Ipairs was to go in order of the table? I barely use it
oh mb
i never used them
but u shudnt use them
and im good
in 2026
What do u use?
^ would be appreciated
I use that and pairs in a mix between the 2 based on the situation
i think in is just better
metatables cant have real usage, why would i do like table + 5
do yk what a metatable is
ok i mean metamethods
Any combat scripter here
metatable is mostly just giving events to a table
u attach a table to another table
and that attached table is the metatable
inside a metatable there are metamethods
those are basically the "events"
the use is that u can give automatic behavior to ur tables
lets say i want to initialize a table whenever i index a new index that doesnt exist i want it to automatically intiialize that index
nah lol
uhhh
without metatable u need to make sure ur table is intialized whenever u try to use it
as opposed to usiing a metatable and its just automatic
and that means less code and remember less stuff which is good
otherwise everytime u make something that doesnt exist already in the table u need to remember
i need to initailize this new index and call this function or smthing and thats annoying
i feel like oop might be more useful than this
oop uses metatable and metamethods
ijjjjjjijjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjW;JEFIQOIFqjfioqJFJqoifjqwRH9UqiodQYFH9Uiqojhfu82yrgfuiOlkjfHQJiakc<nfuicJASKNqDHQuhdqOFHqiuwfuioqWWWfqKJFBUIQjkbwqPOHVRUIPJqdfkgqUIqfgUIQFHIUqfhiuQFIUfiuIUQDIUqfuioUIFIUqfhuiHNDJCDbfuiQDGHUIqhwfuipQHF8Quhfuiohfyu8QHCJIqhiduQGHDIqjdgy8QUDHNUIqgfiyQUHUIOPqeugfbFJIShf9uQWIHqe9fuhnQOHFiuqhfbjskabiQFGIUPqjfnipQUFIUqfgiQFIUqfgiuQFGIqhuiWFYIUHYUqefgQYUqgfQFGIUqgfuiSJIFBcUOAIGFiVCn FIUfQUIGFIUSHFOJQbifuIFHwbsbiquFUIgwduiDiudiQDHiqudhEFIHQiufQUIFHqiufiuQIUFIPUqhfuiQHFUIqfhiuQHFUIquoqhfiouQHFqfQF qCQDCQdCCEqcqCcqceqCEwCDQCWDGWDGSZFSGEWZSDRGeGWsdEAkQNJKQKFNqnfkNFKNqfknQFJKBqknsnfjkQBFKAMsniNFKJbfjBFJKQlbfQ
are you following a tutorial or self-learning
yo what weather system are u using
this is the type of rain i have been trying to find everywhere
ik
no i tried to do this After Allah's will by myself
no system
i tried to add a part with VFX
and added some effects for the thunder effect
etc
and it was necessary to bring religion into this
dang good work on the rain really havent seen anything better
tysm bro
im a religious dude, you got a problem with this? did i hurt you?
just dont comment on everything around
what does this mean
yes i do have problem with it
is there a way to reference variables in a for i loop without typing out the full name
like if you have two variables anim1 and anim2
u do scripting too?
could you somehow refernce i by doing like anim..i or something
yes i do it aswel but i never got any idea on how to approach something like rain, i tried with particles but it was wacky and then i have been using some weather system with extremely bad looking rain, it was completely inconsistent and i never found anything better 😭
its easy
how come all the open source rain stuff looks so incredibly unrealistic
no ground splashes no feedback
ay you know you could try to add some rain drupples on your screen once its start raining yk
yo, how to do that
in real life there is barely ground splashes unless incredibly heavy rain like in the rainforest or on really flat surfaces
im really not too sure i know its possible but maybe gonna be a challange with roblox's limited engine
blud in games u have to go an extra distance to convey realism
learning how to script seems impossible
without obvious ground splashes it would obviously look like emitters im crine
ground splashes is what it makes unrealistic
blud im crine
ragebait atp
like i said there arent any visible ones unless there is extremely heavy rain
imagine going out in light rain and seeing tsunamis of splashes popping up 😭🙏
ts is what u call realistic btw
no
blud
ignore this guy bro, hes top 1 ragebaiter here
😭
he aint tryna hide it
did u see when he was flexing boids every 10 minutes?
anyone willing to volunteer for a dragon ball game?
Dont use them its bad for performance
wrong channel
Is there a way to automatically get the resolution of every image used in a game without manually checking them or relying on external tools?
you can use editable images
if i am going to call buffer.writeu8 like 3000 thousand times is saying local writeU8 = buffer.writeu8 at the start going to benefit me?
This only works if the image was imported into an EditableImage no?
you can import it at runt ime
Is it ok like to fix my code with AI?
although you have to own the image
no
luau optimizes many built in functions
?
so that localizing it has no effect on it
ok thanks for letting me know, there is a bunch of debate about if localizing them optimises it use
blud buffer is not fastcalled
im crine
wrong channel
🥹
yo anyone down to do a quick playtest to see if my game is laggy or not
bc multithreading is stupid because its different on studio
sure
hop in dms bc idk if ur allowed to share links on this server
Anyone wanna test game out my friend made it’s about escaping peter? Dm me for link
anyone here know basic scripting? like really basic
yes
can u come dms rq
whats the point of unreliableremoteevent
when the data you're sending isnt important and doesnt matter if it's lost
what would that data ever be
plus it's a good optimization if you're sending too many remote events
any feedback for ts code i built
how long does it take for me to get approved for luau scripter?
its hard
dude
why the comments
did you use gpt
I made the scripts chatgpt fixed sone bugs
Don't comment unless a comment is needed tbh (self explanatory code shouldn't need comments), also minimze your nesting & personally I like adding section headers
also potentially make your method names more descriptive instead of "Gone" or "Appear" it can be EnableXYZ, OnDisable, etc
Thats a good idea
also instead of abusing wait use task.wait so it's not on the main thread
Ohh
also on your wait statements you have it like "000.1" instead of that you can honestly just to task.wait() it will nearly have the same effect
unless theres a direct reason for it being 0.1
Also for local bad, Workspace#Folder can end up as nil so run a WaitforChild on that variable
with a timeout and then do a nil check just incase
and make sure to keep your code formatted so you can prevent stuff like this
Alr
Also whats nesting again
also since its a server script make sure to key your debounces in a table by UserID so debounce doesn't apply for every player
bro this code terrifies me
shi i forgot these are untested changes btw
Is it good for a beginner?
Like when you have a big code block like this
local function test()
if(xyz) then
if (zyx)
-- stuff like this or also spamming else statements
end
end
end)
IKnstead of deep nesting like this you can do
local function test()
if not(xyz) then
-- do a nill check or whatever and print if you want
return -- Early return
end
if not(zyx) then
return -- same thing pre much, just makes it help for readabilityh
end
end)
Also helper methods are definately good to utilize to minimize nesting
i need help trying to make my overhead gui level go up can sb tell me wsp w this code
mb if code is wrong i just made this on my phone so it prolly is cooked indent wise lol
Its fine
^
Yeah everyone starts somewhere
Thanks
just work on cleanliness and you eventually will learn optimizing stuff and what not overtime
any errors
Just learned for loops lol gon be using now
have you added debug prints to make sure its firing on player join
tbh integer for loops aren't used very often buy for _, v is very usweful
no idk if its even connected properly tbh
add debug prints
where is this located
didnt know where else to put it tbh
Oh
serverscripts
add a print statement on join to make sure it fires
figure out where the loop is breaking
how do i do that
spoon feed maxxing
?
well first of all
that’s why you use vscode
Make a variable for leaderstats if your gonna use waitforchild on it anyways. Next, do the while loop on a different thread, and also end it on player leave so you don't end up with memory leaks
Whats dat
bro😭
its an IDE
MY GIF
O
is this temu bytenet?
🙏
for code cleaning js use spaces?
fix what
i alr got it fixed
why when i type
print("joe who")
roblox types
print("joe mama")
when game.players == 0 do roblox.algorithm = good return end
Is reading the roblox documentation a good way to learn scripting? I don't want to have to deal with all the youtube tutorials and found the documentation and was wonderring if it is a efficient way to learn.
🗣️
Docs are good for helping you learn, however it will be extremely hard to learn just off of them alone
imo
tutorials are good for learning specifics
What's a good way to start?
what he said
lua docs better for learning base lua
roblox docs good for learning luau changes
tutorials good for overall
1 youtube tutorial at a time, after each vid, code something
roblox ads hate me ✌️
Any people in specific like brawldev?
theres a boelaen data type thats why
is this a scratch reference lmao
print("joe mama")
print(200)
end
She said she was local variable but she was really global variable 😞💔✌️
💔
local MyBaseplate = game.workspace.Baseplate
local function ChangeTransparency
MyBaseplate.Transparency = 1
MyBaseplate.Transparency = 0.5
MyBaseplate.Transparency = 0.1
MyBaseplate.Transparency = 0
MyBaseplate.Transparency = 0.5
MyBaseplate.Transparency = 1
end
ChangeTransparency()
holy goat code
am i learning
where’s the () after the function
is a hack
is here on studio
no here on tis
local function print607()
print("6")
print("0")
print("7")
end
print607()
print607()
is this better @thorny trench
yea ts method
I LOVE !STRICT LUAU
Anyone wanna start an dev group?
making a whitelist chat >:]
yeah man stop it
how would i make it so that the legs go up a bit before stepping?
local function UpdateLegs()
for Name, Pos: CFrame in WheelPositions do
local Leg = Model:FindFirstChild(Roots2[Name])
local Origin = (Model.PrimaryPart.CFrame*Pos).Position+Vector3.new(0,10,0)
local Direction = Vector3.new(0,-100,0)
local Params = RaycastParams.new()
Params.FilterType = Enum.RaycastFilterType.Exclude
Params.FilterDescendantsInstances = {Model}
local NewCast = workspace:Raycast(Origin,Direction,Params)
local NewPart = Model.PartsForIK:FindFirstChild(Name):: BasePart
local CheckPart = Model.CheckParts:FindFirstChild(Name):: BasePart
local Pole = Model.Poles:FindFirstChild(Name):: BasePart
local IK = Model.Humanoid:FindFirstChild(Name):: IKControl
if NewCast then
if not Pole then
Pole = CreatePoles(Name)
end
if not NewPart then
NewPart = CreateIkparts(Name)
end
if not CheckPart then
CheckPart = CreateCheckParts(Name)
end
if not IK then
IK = CreateIks(Name,Leg)
end
if NewPart then
if IK then
IK.Target = NewPart
if Pole then
Pole.Position = Origin + Vector3.new(0,9,0)
IK.Pole = Pole
end
end
if CheckPart then
CheckPart.Position = NewCast.Position
local Distance = (NewPart.Position - CheckPart.Position).Magnitude
if Distance > 8 then
NewPart.Position = CheckPart.Position
task.wait(0.1)
end
else
NewPart.Position = NewCast.Position
end
end
end
end
end
an code
ikijiojn
should i orginize ts
Nah
As long as you don’t have a bunch of models as the children of other models, especially if they’re just empty models, you’re good
That kinda shit lowk pisses me off
dayum that looks fun to make. gotta try making one
How can i get skill roles?
we love folders
i need help reducing the range of voice chat rq
send
send what
i dont even hve a audio emitter in here ngl
oh wait im supposed to insert one and change it?
each character should already have a audioemitter
find it on the character and adjust the distance properties if its not there yeah you will need to insert one
in here or in the character script thing
look inside character model
there should be an AudioEmitter and AudioListener already there if voice chat is enabled
there isnt
is ur vc enabled
yes
Can someone help me with my code? I am trying to make a tool based morphing system but I have no clue why the morph is like hovering off the ground. If you wish to help please DM me for more information. I had AI look over it but it didn't fix it. I am willing to pay.
Send
oh alr
the humanoid's hip height on the morph is probably off
guys
what
i js made a good script
its in the player not the character
sadly, Roblox has said this is bannable in any form of communication off chat which is not verify is not allowed you can be warned/etc, also why is there SO many buffers writes??
yeah i know its against TOS and i am moreso doing it as a side thing. Also since its a white list i need every word that is allowed, currently i have around 3400 lines of buffer writes
would it not be easyier to use table dict?
buffers take up more then 80% less memory for strings then tables. Even though its slightly slower i got it to do about 20,000 in 0.08 seconds witch includes suffix and prefix checks
how about make a plugin in studio to convert a script with words into a buffer auto for you so its not as time consuming?
its not, i just wrote a C# script to take a list of words and convert them into buffers
why not use a roblox plugin there easy to make
or just parse it at runtime
i mean that would cause a lag spike
or longer loading
most likley won't
it would be like a few frames at max
which would never be noticed
my potato could never 
idk i guess i wanted an excuse to use C# kinda like how this project is an excuse to use Luau
eh good point
who needs discord bots made?
For how much?
Wrong channel
The only method to learn how to code which works is by picking a project (ideally simple at the start) googling, researching, reading if you get stuck eg "how to add two numbers together luau". If you get half way or think of a new idea switch onto that idea, you'll slowly learn things each project you build.
thank you strange wizard
Not as good as the original
ts finna make me mad ngl
I’m making an incremental game and storing models in a DataStore so players get their mobs back in the same spots when they rejoin. It works in Studio, but the BillboardGui on the mobs doesn’t show up in the live Roblox version, why?.(i Published it)
Im doing ts but im running out of ideas im doing like 2 projects a day and i post them to my yt
Start building bigger projects if you're running out of ideas
have you uploaded any of your projects yet
I wanna see
my channel name is dalfe
alr ty
you absolutely should not store models in a datstore, but rather their ID and amount
(and additional data)
obv i dont store the physical Models
then share your code
imma send u private
is there a way to list all assetids of a group?
@viral herald Thanks for the help. It was a problem in the client script. I was cloning the models twice and i wasnt clearing the vieportframes each time.
She said she was local variable but she was really global variable
How can I check what's affecting my preformance in game? I added a feature and now my FPS have dropped significantly
does anyone know how some games make it so that the particles stay constant even if the graphics are low and is it better to do it like that or should I just leave it
Does anyone here know why hasBadge always returns false even though i should have the badge?
Micro profiler
make sure this is server script and make sure you have the right badge id
what should I be looking for?
why I cant run this test without logging in every time? it was working just now
Big spikes
its in a server script and i also put print statements as you see so i would know if its actually getting the right id and it does
What is it printing
does this also happen to anyone or just me
Awarded badge: 1406716139279247
but its printing that even if i test played before and got the badge
Also it doesn’t award badges in studio
Yea
well thank you for the help
if i didnt know that i wouldve sat here for a bit longer lmao
how can i practice remembering all of these scripting stuff like functions,properties,datatypes etc
Use them
You repeat what you learned
badge checks are delayed and cached so roblox lies to you for a while after awarding it
yo guys im a ui designer i wanna start scripting my uis what are good packages i should learn
;-; get a tutor or watch youtube videos
ya i will but what are good packages i heard some ppl use react or smth but i want some suggestions of best packages i js wanna script my ui for twitter post nth else
@median tree yo wsp friend mind letting me know
react only works if youre scripting with VSCode
there should be some good and usefull ones i should learn right
yes you start from a local script
roblox to type script one
right
mm ok
anybody use rojo what are your thoughts
its okay
It is
u blocked me nvm
creating ui via code sounds dumb
how does bloxburg save its data, there are like thousands of objects for each plot + stats and properties
saves values
yea but there are like thousands of objects with properties
it just saves the edited property
ye abut u can save only 4mb per player
why do people genuinely do this
no idea
they could also be using external data stores
AWS
oh yeah
It makes sense in any other context when u dont already have a UI engine
But web devs cannot comprehend this and refuse to learn
i refuse to learn
So they deadass convinced roblox devs to make a dom in roblox
yo how can i get the game language settings? the one you pick in-game like the image below
rn im using this thing tho it gives the user's settings language
local language = player.LocaleId
insane
i can tutor you some shit for free my man 🙏
very cheap
but you can just search brawldev or thedevking
they've got goated tutorials
and a playlist so you know what to watch
it wasnt bout scripting, i asked for advice bout ui
im a decent scripter already id say
about how bloxburg saves that much data
they probably use an external data saving
ya
but datastoreservice aint cheap too technically
how does this work
it's a bit hard to explain and since i dont really have personal experience in this context i dont wanna risk to say stupid stuff
its just http service
yes but they have to connect to something they created
what is the price based on? the amount of requests?
not sure but i bet its based on the size
or not what they created
not necessarily ig
with http service
oh
you dont need to pay for it
you need to pay for external servers
had no idea this was a thing but I guess it makes sense
this makes sense
imagine they stop paying though
holy chaos
So many yoru PFP wow
atleast you didnt say asa 🙏
I'm literally making a chainsaw man game, trust me I have done my hw
Hi there guys, I'm working on a roblox API which allows you to filter games based on CCU, visits, creation date, likes and dislikes. So far I've made the game filtration system, but I am looking for smth else to filter. Any ideas on what I should add?
combat system like heroes battleground ?
with all the scripts like combat, movement, settings, characters choice, shop, etc
I PAY HIM 30K robux for this am i overpaying?
Might be a bit heavy but would be cool to start collecting users who play the games and check if they've purchased any gamepasses then you can filter by revenue/purchases/all time player count
Forgot to mention, by roblox API I meant an web API which is related to roblox.
Yes, this should still be possible just heavy on amount of requests
It's not about the heavy amount of request, but rather the amount of resource it would take to store all that data.
Also, tracking allat is gonna be heavy on the server too.
Yep, only other thing I could think of, you've pretty much got the rest
Thanks for the suggestion bro
no
appreciate it
ur paying him too little
well the roblox proxy and api is shit ❤️
im trying to play a random sound out of 3 sounds in sound service once a button pressed, how do i do the random for that? im a new scripter
roblox proxy can't even handle 100 requests
I've added limitations for that
math.random(#thefolder) should work
or smth
bless well big games is not made for to use the proxy
like u will have to make ur own
It's an external web API
is ts sum kim kardasian shii
okay bro, you are NOT kim kardasian
how would u know that
because YES
No problem
math.random
soundsFolder[math.random(#soundsFolder)]:Play()
How do I post a hiring
1 robux
can anyone actually help me w my script i cant even pick up an item nor place it
yes dm
Hey is there an affordable scripter down for a donation game task ill pay
dm
any good scripters here?
what u need
ah yea i can only do quick tasks rn
No
crazy how no one talked to u
I’m looking for an experienced Roblox scripter to work on a game currently in development.
I’m looking for an experienced Roblox scripter to work on a game currently in development.
The seller
bold of you to assume
This channel isn’t your billboard
?
he asked what i need so i replied
wrong channel
why not just post it in #scripter-hiring ..?
He did but got deleted
is that a bald eagle mixed with a dodo bird
no its a shoebill
waiting for approval... also i didnt sent it out of nowhere i answered someone question
good timing
yup
4/10 anime
nah thats bad 😭
i personally disagree
i'm aware you're saying it's bad, i'm just acknowledging your opinion
i can see why one might dislike it, it's definitely not for everyone
is datastore easy and people make it seem hard?
use c#
isnt that worse
rust is calling
c# is more clean OOP wise
oh
no
cs is way better yall high
