#code-discussion
1 messages · Page 250 of 1
ToObjectSpace() converts a CFrame relative to the world relative to a specific part.
For example let’s say object A is at 0, 10, 0 and object B is at 0, 20, 0. If we ran: print(objectA.CFrame:ToObjectSpace(objectB.CFrame) it would print 0,10,0 as object A is 10 studs above object B. It’s treating object B’s CFrame as the center of the world.
:ToWorldSpace() does exactly the opposite and returns a CFrame relative to the center of the world (0, 0, 0). So if object C’s CFrame is 0, 10, 0 away from 0, 0, 0, it would return 0, 10, 0.
if anyone is interested in hourly/fulltime TypeScript
when I do this
local part = script.Parent
local TargetPart = workspace.Target
print(part.CFrame:ToWorldSpace(TargetPart.CFrame))
part position is 0,0,0
and TargetPart position is 0,20,0
it print 0,30,0
I was thinking it would just print the default position of TargetPart since the default CFrame is relative to world space
anyone uses claude for roblox ??
It prints 0,30,0 fr?
Yea
Yh idk
I was guessing so
The “part” position is 0,10,0 not 0,0,0
but i still dont understand why it prints 0,30,0 tho because I thought it convert the local CFrame to World CFrame which would be the default CFrame if I put the Target at 0,20,0
let me meditate and rearrange my thinking
Because you're adding and offset of 20 to part
So it returns 30
why is it adding the offset, i thought it converts the object local CFrame to the World CFrame
ohh
is it because its multiplying the part CFrame to the Target CFrame
@rich moat
i understand it now thx for help
Hello everyone
guys
right now im still learning code and the best tool for me recently to use is superbullet ai for coding , it explains everything in its script and is probably the best for me to learn right now and work on my mini projects and understand code but it gets errors very frequently.
whats the best AI self roblox coder or whatever thats free and the most accurate code for building good systems and proper games fully right now
Can you write your own script without AI? you get more out of a AI if you already know scripting to feed it the write methods and practical examples. That being said I've been using Cursor IDE and a plugin on Roblox called Luau Language Server to connect the files from Studio to Cursor
It's free for a little bit
I've been using Gemini and Copilot these days since they're mostly free
can someone tell me if i have 5 guis and i want to make a tween service for all how should i do it, put it in every screen gui or in smth else
Sorry I was in an exam
Oh alright no problem
If you really want to use AI to learn scripting, Gemini
no ai can make full systems for you right now. if you vibecode (try to let ai do everything), theyre all too stupid with the current technology, and youll end up with a broken mess.
They are useful tools, but even the best llms are only tools right now, and cannot replace even the dumbest programmer in the world yet. you must be reviewing/trying to understand.
i say this only to help save you time, as most coders end up learning that vibecoding doesnt work after wasting hours trying
if the ai doesnt get it right on the first 1-3 tries, its best to assume the task is too large or it cannot understand and you must be doing more of the work.
question for yall in terms of difficulty 1-10 how difficult would you rate lua vs python
yo u still doing ts
lua is ez python is for real games like gta and most modern ones
naur
roblox uses lua as for it makes it more easy so roblox has more games
oh wild i was thinking about trying lua since im familiar with python and was wondering how difficult it would be to switch over
and bc its like kid friendly ifykwim
python u would prob have to has a 7 or above in ICT for GCSEs to actually make a game w it
even with tutorials and a trainer it take about the same time as learning it in school
mb for the yap
would be very easy
nah ill take all the info i can get
u just gotta learn how roblox works and ur set
huh alr you got any suggestions on stuff that i should start out with?
any resources or videos would be hella helpful
or personal projects
im not sure on what specific tutorials to watch since i never learnt from that but under pins there should be resources u can check out
u mainly want to figure out the syntax of lua. learning how to utilize services provided. client-server achitecture, etc.
I knew python prior and learnt through exposure.
Used to get my hands on open source games and figure out how they worked
ooo thats a good idea
Then I read up on documentation and imprve.d
https://devforum.roblox.com/t/roblox-scripting-roadmap-learning-resource-list/808430
but this is a good start
Scripting Roadmap The scripting roadmap has three categories, the basics must everyone know to continue with other more difficult categories. Intermediate is someone who maybe does already commissions and is already not really anymore a new programmer. It is also useful to check what you maybe never knew and now found out through the lists ▶...
you know anywhere i can get some open source games?
Open-Sourced Projects Since 2014 I have been developing on the Roblox platform. With such a long time between now and then, there are many outdated and unfinished projects I made over time. You can access many of these, as well as some random demos, using the links below. V2 Repository This is the new GitHub repository created April 22nd, 2023...
Good luck on your journey. Don't be afraid to ask for help.
anyone here use rojo? I'm trying to figure out a way to handle using other instances with my IDE
for example playing an animation in the code editor
Anyone know why teleport service is not allowed?
it needs to be public, AND have third party teleport?
i assume so thats what it says if u want more info look it up in the roblox docs
What if its just a place, how can I even make that public.. Sorry havent touched studio in a few years
Okay thank you
wdym
for animations just make the instance in code its 1 property
problem is this is going to be on the larger side of things and thats not really scalable
i wouldnt mind doing it otherwise
actually i just realized there is a rojo property
it absolutely is scalable if you have a table of ids and a snippet that just goes through them and makes instances out of it on init
Yeah cuz of backdoor protection
i think ur talking about studio..
no
anyways this is what i meant
for a begginer like me whats the best way to learn lua?
oh i just realized what u said but the problem is i would like intellisense
some tutorials on youtube first but after that go to roblox documentation
what is roblox documentation
look it up
kk
best method to get into lua scripting?
doing it
doing it
best method to LEARNING lua
anyone give me challenges to do im not pro im new
doing it
Learn the basics like modules,remote events then practice for like 1 year
ask ai bro
1 year? tbh with lua you can start doing advanced systems in 6 months
depends on your definition of "advanced", past experience with programming and time you put into learning
yeah but he will be 2x better in a year than 6 months
way more than 2x but yeah
it's hard to give a set time period since there are so many factors
anyone know how to make discord - Roblox ban bot
I type !ban (userid) (reason)
On disocrd and it bans them ingame
can someone help me. I wanna test scripting on ui maps and building and other stuff. but cannot make any of them and also do not really want to make any of them
for effects, they should always be done on client and replicated for everyone?
or is it viable to do effects on server
Client
Dont do it on server
I recommend using tags and cloning the effect asset into workspace and letting clients run the effect via client code
guys how do i drag a text label in a surface gui of a part
Idk anything about coding so idk what that is
can someone help me. I wanna test scripting on ui maps and building and other stuff. but cannot make any of them and also do not really want to make any of them
Has anyone made a custom chat system yet
as in?
one that bypasses age groups
for RP communities that have diverse age groups
we know its against tos but this update ruined our game
probably not that difficult to make but incredibly against tos
guys, when i use the neon material, my surface gui text labels wont show due to the high brightness of the neon material, how can i change it to less brightness
im taking ap csp for school rn. Will that class help me learn lua?
Is that like comp sci?
where can i find a damn voice actor
Fiverr
thank uu
Roblox Template -For 15KRBX - https://www.roblox.com/games/74258899134270/Explode-Brainrots - Little to no bugs.
who here can script vfx meshes
can someone help me. I wanna test scripting on ui maps and building and other stuff. but cannot make any of them and also do not really want to make any of them
comp sci principaL
we do python
according to ai
The AP Computer Science Principles (CSP) course is designed to be equivalent to a first-semester introductory college computing course for non-CS majors. It covers a wide range of topics, including:
Computational Solution Design: Designing and evaluating computational solutions for a purpose.
Algorithms and Program Development: Developing and implementing algorithms.
Abstraction in Program Development: Developing programs that incorporate abstractions.
Code Analysis: Analyzing code to understand its structure and functionality.
Data and Computing Systems: Exploring how computing innovations and systems, including the internet, work and their potential impacts.
The course emphasizes creativity and collaboration, aiming to develop a diverse and inclusive classroom environment. It prepares students for the AP Computer Science Principles exam and is structured around five big ideas: computational solution design, algorithms and program development, abstraction in program development, code analysis, and the impact of computing.
3
For more detailed information, including the course framework, exam description, and resources to help students succeed, you can refer to the College Board's official AP Computer Science Principles Course and Exam Description.
1
How do i make this a texture instead of colormapcontent
we do python
but lua is easier then python right?
so i (no experience in cs) can learn lua faster after python?
Eh I'd say about the same
guys help
One isn't harder, but they are completely different
my prompt isnt showing
local press = script.Parent
local pressE = game.ReplicatedStorage.press
local promp = press.ProximityPrompt
promp.Triggered:Connect(function()
pressE:Fire()
end)
promp:Destroy()
i got no error from the output
and maxtrigger distance is 15
how do i learn lua? rn i rely on gemini to write code
i started learning dev stuff 3-4 days ago
Stack overflow is a good place to learn
is it a site?
and does it cost money?
And for Roblox best to read the documentation
Yeah
No
so how much will learning python and basic cs help me in lua?
It will help you think more logically which makes it easier to learn a new programming language
knowing 1 programming language makes every other one easier
they have very similar fundementals
python is easy-ish
just quite different from the others
bro what
idk its his first eyar teaching
could someone help me how to insert
a bunch of script into a new place
for an obby
ask gemini
bro
Gemini is actually pretty good ngl, it taught me how to compile PHP binaries from source code and make my own extension
oh ok
whats the best ai for teaching lua? or like writing code
im debating between gpt pro and gemini 3
also when learning lua should i wathc those long ass yt videos
avoid specifics tutorials and watch/read the fundementals ones
alr
tend to be called beginners and advanced series
wait am i alloweed to paste code here?
obviously
o shoot too long
lemme make to a doc brb
o shoot i cant send link since im not high level yet
can i dm one of u the code
nvm ill break down the text
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local Debris = game:GetService("Debris")
local player = Players.LocalPlayer
local mouse = player:GetMouse()
local tool = script.Parent
-- ================= CONFIGURATION =================
local PROJECTILE_NAME = "KingProjectile" -- Must match ReplicatedStorage name
local HIT_VFX_NAME = "HitVFX"
-- Stats
local MAX_RANGE = 80
local DURATION = 5.0 -- Stays active for 5 seconds
local SPIN_SPEED = 15 -- <== SLOW SPEED (You can see the blade details)
local HITBOX_SIZE = 12 -- <== GIANT HITBOX (Matches your bigger model)
local isCasting = false
function activateAbility()
-- 1. SAFETY CHECK
if tool.Parent ~= player.Character then return end
if isCasting then return end
local character = player.Character
if not character then return end
local rootPart = character:WaitForChild("HumanoidRootPart")
isCasting = true
local startPos = rootPart.Position
-- 2. SPAWN VISUAL
local original = game.ReplicatedStorage:FindFirstChild(PROJECTILE_NAME)
if not original then
warn("Missing " .. PROJECTILE_NAME)
isCasting = false
return
end
local projectile = original:Clone()
projectile.Name = "King_Active"
projectile.CFrame = CFrame.new(startPos, mouse.Hit.Position)
projectile.Parent = workspace
projectile.CanCollide = false
projectile.Anchored = true
if projectile:FindFirstChild("Trail") then projectile.Trail.Enabled = true end
local startTime = os.clock()
local hitList = {}
-- Hitbox Params (Ignore character and sword itself)
local overlapParams = OverlapParams.new()
overlapParams.FilterDescendantsInstances = {character, projectile}
overlapParams.FilterType = Enum.RaycastFilterType.Exclude
local conn
conn = RunService.Heartbeat:Connect(function()
local now = os.clock()
local elapsed = now - startTime
-- 3. END CONDITION
if elapsed >= DURATION then
conn:Disconnect()
projectile:Destroy()
task.wait(0.5) -- Short cooldown
isCasting = false
return
end
-- 4. DAMAGE RESET (The Grinder)
-- Resets hitList every ~0.3 seconds so it keeps hitting enemies
if math.floor(elapsed * 3.3) > math.floor((elapsed - 0.016) * 3.3) then
hitList = {}
end
local currentHandPos = rootPart.Position
-- 5. CHASE MOUSE LOGIC (Drone Hover)
local mousePos = mouse.Hit.Position
mousePos = Vector3.new(mousePos.X, currentHandPos.Y, mousePos.Z)
-- Range Limit
local vecToMouse = mousePos - rootPart.Position
if vecToMouse.Magnitude > MAX_RANGE then
mousePos = rootPart.Position + (vecToMouse.Unit * MAX_RANGE)
end
-- SMOOTH MOVEMENT (Lerp)
local currentPos = projectile.Position
local newPos = currentPos:Lerp(mousePos, 0.15)
-- MOVEMENT + SLOW ROTATION
projectile.CFrame = CFrame.new(newPos)
* CFrame.Angles(0, elapsed * SPIN_SPEED, 0)
* CFrame.Angles(math.pi/2, 0, 0)
* CFrame.Angles(0, math.pi/2, 0)
-- 6. HIT DETECTION (Giant Radius)
local parts = workspace:GetPartBoundsInRadius(projectile.Position, HITBOX_SIZE, overlapParams)
for _, hitPart in ipairs(parts) do
local hitChar = hitPart.Parent
local hitHum = hitChar:FindFirstChild("Humanoid")
if hitHum and hitChar ~= character and not hitList[hitChar] then
hitList[hitChar] = true
hitHum:TakeDamage(5) -- 5 Damage per tick (since it hits many times)
local vfxOriginal = game.ReplicatedStorage:FindFirstChild(HIT_VFX_NAME)
if vfxOriginal then
local vfx = vfxOriginal:Clone()
vfx.CFrame = projectile.CFrame
vfx.Parent = workspace
for _, c in ipairs(vfx:GetDescendants()) do
if c:IsA("ParticleEmitter") then c:Emit(30) end
end
Debris:AddItem(vfx, 2.0)
end
end
end
end)
end
tool.Activated:Connect(activateAbility)
how long would it take me to learn how to make code like that?
I mean like
Im not going to comment
Let the professional certified ppl answer it
But in my opinion
this is ai generated right
If you really want to learn it, not long considering the amount of knowledge you have on dimensions and all that good stuff. That's when I got into it
yes
It's best you rely on official documentation and manuals for the Lua 5.1/Luau language. A study was done on ChatGPT's involvement in aiding novice programmers. It showed a statistically significant reduction in convention violations, as well as cyclomatic and cognitive code complexity. However, the heavy-lifting nature of ChatGPT's assistance poses a threat to the development of personal engineering skills
AI can be helpful in moderation
alr
i won’t use it
I use ai for basic things I forget because I use so many different languages, such as array functions
I find it most helpful with identifying native functions or libraries for certain applications, as well as the development of intermediate algorithms
I haven't tried that, I usually go on Wikipedia and learn how an algorithm works in pseudo code
"What should I use here" questions tend to work well
I think it is kinda ironic when someone uses AI to write them a code, then the code not work as intended, thus the person goes and ask someone for help lol
ai 
fr

Selling A Template
https://www.roblox.com/games/74258899134270/Explode-Brainrots - Little To No BUGs
i know lol
i freaking said it’s ai
and asked how long it would take me to code like that
who can recreate pet sim 99 breakables system
Honestly? Probably less than a week, not to write the exact code, but to learn. To write the code it'd probably only be max 20 ish minutes.
is the code very basic??
Yeah. It essentially is just creating a part and adding a vfx to it and when the projectile hits it creates another vfx and the receiver takes dmg if it does hit or not
never because you are not ai?
I mean I wouldn’t say that
raycasting isn’t a beginner subject
Yall suck here, none can do prints
depends on where he’s at
Prints is too advanced
Print[jelo yorld]
HelloWorld(”print”)
I think most raycasting video tutorials are 20-25 minutes long. It's not like its using metatables or oop. It's also using the raycast in the basic form that you would learn from a video tutorial. Granted going in on just raycast, and not learning the previous 10 videos yeah it'd be confusing.
Skidding a tutorial and actually learning a concept and how to apply it are two very different things
Anyone can make a simple game in a weekend by just copying tutorials
Not skidding a tutorial, just simply watching a tutorial fully then attempting to put it to use without referencing the video is the best way to learn
I agree
Well ideally you wouldn’t use any tutorials
Ive found it way more effective to just look at documentation and code samples anyway
Pov: u spend hours coding and yet you could of made a no effort game and make this
If you've been coding for a while the documentation would be more useful, but the way roblox uses the syntax in the documentation it is not beginner friendly, which is why vid tutorials are needed for newer programmers
Yeah it sucks, but I’d rather have a game with a few hundred/thousand players who enjoy in-depth gameplay and detailed mechanics rather than slop like this whose only audience is kids
Do you have any examples of roblox’s example code not being beginner friendly?
nah you always use docs over yt videos mostly because u dont learn from a yt video like u do for docs you will be in a endless cycle of "learning".
making stuff above ur skill level
like inventroy systems for an example
Exactly this
you start with small things like moving a part, etc
then you go to small projects
like obbys
you dont want to do this btw
i think i had to clarify that
😭 🙏
That’s the problem with tutorials though, it makes it easy for people to get in way over their head without realizing
yea thats what im saying
Am i missing something, im waiting for the humanoid root part before doing anything and its STILL erroring
it alot harder self teaching urself annyways
i mean the error tells u
theres no humanoid root part under that
WaitForChild with no timeout won’t give you an error…?
or ur clarifying it wrongly
if the game cant find it then it errors. if it can then it doesent
im doing WaitFor Child, then the thread runs and says it doesnt exist
Not in the case of WaitForChild, it’ll yield until it times out or finds the part
What’s the children of your rig?
you dont assign hrp to a variable
where else do you reference it and how
it yields the game until after that wait
but its referenced in a tween thats created after
can you show the code from your waitforchild to the next reference of hrp
yes
dot operator errors if it doesnt exist
Thank you! Your goated!
sorry if this is basic comon sense but what do scripts do for roblox? like i know it makes it run a game but what if I want to become a vfx artist? when would i use scripts?
scripting is vital to pretty much everything other than building
vfx has to be triggered by a script
building can still require scripting for things like opening doors
what if vfx has multiple parts to it?
and if its like a ability with vfx how does that work?
you have to spawn and position the vfx for it to work
I cant explain in detail if you dont know anything about scripting
so if a aura is meant to follow a character do u script it to follow the body rig?
something like that
what does teleport acquired players means ?? how did they teleport to my game
doesnt make sense
Do you have anti kick?
no i dont
the game is just chairs, a screen with a video
idk I also have a lot of those in my game
prob from clicking the ad billboards in games or sum
like the sponsored experiences in other experiences
oh alr i see, thx
yw
theres a game called game finder, they prob got from there
the game barely "released" 2 days ago
also how do u have that much visits, can u send ur games name so i can see how is it
wow, did u work alone
did u get robux?
nah im waiting 7 days for algortihm
whats the issue?
idle animation
helpful
- loading the animations every time you want to play them is unnecessary and bad practice, just store the track once and access them when you need to
- you start playing the idle when the tool is equipped, but never stop playing it (which you can't do if you load a new track every time you check it)
- youre playing your idle animation if your character is moving, not if it's not
- debounce is only ever set to false when the tool is reequipped
- youre running a new infinite loop every time your tool is equipped but never breaking out of them
- your idle animation is being reloaded and the new load is being played every 0.1 seconds when the condition to play it is true
Thanks 😭
🙏
when yall are stuck at an hard error on your code do yall try to fix/make it work until you eventually fall asleep or it does work, or you just go to sleep and finish it later?
just add print statements and u can widdle it down to where its not working
i need a bit of assistance if possible, we have mr noob here, and im recreating the void/sentry, ive got the erase part down so if a player clicks on any NPC or building, its completely erased. but how would i go about making a silhouette appear after x gets erased (like in the image)
editable image
i need to learn about allat
ye cud help make dyanmic shadow
and it cud look good as well
wont be too bad i dont think as long as u dont let the plalyer spam make shadows
well the void in i think one of the movies he just sorta erases people cus like why not, and that effect is what im after, if theres gonna be any performance issues maybe i could look into like gradually turning the shadow transparent and then deleting it after
well performance would probably be creating the shadow mostly
cuz for rendering the graphics it can use the gpu
which would be fast i guess
but doing the calculations to make the shadow is on cpu
i see so perhaps like
if i make like a setting that if you've got a potato pc, it wont really bother with the shadows at all (or it'll just be a big square in the size of an object) but if you've got some beast of a pc, i could do sum like that
ye
i seeee i seeee i'll have more of a look into this thank you very much
also having 1 light source will be easier
more light source itll cause more problems
so maybe just the sun
anyone who uses claude in roblox ?
what is claude
claude is coding LLM
writing code buddy
it's the best LLM to write code in this era
Yo guys is starting ugc in 2026 a good idea if im good at editing and i use social media to promote it
rage bait
no, im serious i dont like claude
which is good other llm ?
yeah ai is good only for where it''s trained the most
but yeah for roblox engine claude sucks tho but in unity / unreal it's really good
at common problems
for RE i use a self trained model based on codellama 34b
works surprisingly well for most cumbersome tasks
i see that's wierd first time seeing someone recommending llama
well, its a good open-source model
hell no, but if trained for a nieche task, yes it will be better at that task
not anymore, i used to a few years ago
what do you mean like did you train an AI model for a niche task ?
yes
u can retrain / adjust a model
bloodlines has really bad omptimization
Someone took "put everything on the server" literally
aint nothing wrong with safety bro..
trvth
does anyone understand cframe ????¿¿¿¿¿ im trying to move a model to a certain place but the lookAt thingie dont work 💔
Me
omg.........
uhhh i dunno how to tell you...........
do u know how the R01 and all those R things with numbers work???????????????
Better write to me in a private message
ANY scripter dm me pls 
why?
dm to know 
i do
do you use claude MCP to connect with studio ??
yeah i use mcp server but via the antigravity IDE
cuz i got the google pro plan and they give you good usage rates for claude 4.5 opus
anyone got recommendations on where i should go to start learning lua
start with c++
then lua will become ez
devking
i tried tuts they were really bad for me
what is c++?
bruh putting a wilted when ive never touched scripting </3
C++ isn’t used for Roblox games
no shit sherlock
programming language
i thought roblox uses lua no?
Why would you recommend starting with it
he tryna sound smart
yes i was 🤓
Roblox studio
i am on roblox studio , altho im currently using chatgpt to learn variables n stuff
and would like to know if theres any better crediable docs or forums i could go to
Ai learner lol
where it can explained on a more depth elvel
learning variables as such
i wont be using it after i learn the needed stuff
.
Yes there is
could you send me it please
I don’t have one. Yk how to google right
Wait since you use ai why don’t you just ask it, wouldn’t it give a quicker answer
because ai can be wrong
i think your pressed over the ai thing a lil too much
No idc about it
I used ai to learn too
well before i go do you have any thing you should let me know before i go
Nah
alright one last thing if theres an error as such what is the best way to fix it?
By changing the code
and for finding it?
prints
Look in output
o
and script analysis
thank you aswell
What’s script analysis
bro's mad over matrix multiplication
it shows u warnings and syntax errors before u run the game
its on script tab at the top
So funny man
is it useful?
it is yeah
alr thank you
ofc, you will know what's wrong with ur script
u welcome
thanks for yall helping
you right thats me jst being dumb
anyway thats me going to try stuff out now , ill be back if i need help or what not
How much do ya'll think it would be to add mobile support to an OTS gun system that has like 60% of the framework for mobile but no gui, or connections?
10€
Idk money that’s just what I’d think it cost
@wicked stone 😭
i have a system that spawns a bunch of npcs that move around and return to their starting point before being destroyed. however, the first ever call to :Destroy() seems to cause a massive lag spike, and then it never happens again. why is this, and how can i stop it?
The first call to :Destroy() on a complex object causes the engine to urgently load these systems and caches, which is what causes the spike.
is there any way to stop/mitigate it or is it inevitable?
Hmmm
No
I think
The only way to get around this in gameplay is Object Pooling.
Well, I used this.
Ask the coders too, that's my point of view.
more*
alright, thank you
Also
Also, if the NPCs are simple, you can set AnimationController for them instead of Humanoid.
does this happen in game or only in studio
both
what do you mean?
can u show the code where u call destroy on them
By the way, yes. can u show the code?
Maybe code is wrong
the humanoid just consumes a lot, so removing the humanoid would definitely be better.
function Brainrot:Walk()
local hum: Humanoid = self.Model:FindFirstChildOfClass("Humanoid")
local hrp: BasePart = self.Model:FindFirstChild("HumanoidRootPart")
self.Model.PrimaryPart:SetNetworkOwner(nil)
task.spawn(function()
for _, wp in ipairs(waypoints) do
hum:MoveTo(wp.Position)
hum.MoveToFinished:Wait()
end
game.ReplicatedStorage.gameVals.BrainrotsLeft.Value -= 1
self:Destroy(true)
end)
end
function Brainrot:Destroy(destroyModel)
if destroyModel == nil then
destroyModel = true
end
local idx = table.find(Brainrot.Brainrots, self)
if idx then
table.remove(Brainrot.Brainrots, idx)
end
self.Holder = nil
if destroyModel then
self.Model:Destroy()
end
end
But maybe the mistake is just in your code.
hmm
moveToFinished:wait() without a timeout. If the NPC gets stuck in a shadow, it will never be removed and memory will leak
no idea honestly
try removing the table find and table remove parts and trying again
if still happens then we test model
.
how would i add a timeout?
number inside :Wait()
it did not work
still lag spike?
yeah
do u have scripts inside ur model
just one, on a nametag
try removing that and trying
oh and the animate script it comes with
try mine script
ahh okay it's the scripts
yeah for some reason scripts getting destroyed causes lag spikes in studio
though i didnt know it happens in game as well
it only happens on the first destroy ever called, then never again
dunno if that's normal
not sure how i would fix this lol
well since they only walk around
you dont need a full animate script no?
just play walking
u welcome
This is what happens to me too i think it's normal
Bro it acctually pmo. U think ur finally not too bad at scripting and then u see shit like registery's and frameworks. Like I more or less just know my way around module scripts 😠
Or is that just me 
registry’s are just as they sound, a way to register stuff and get it from one spot, I use this with decorators to add additional logic
Yeah, I suppose I just don't understand the unpacking data part and array's fully. It's just extracting the data and placing it into arrays right, which can then further be used by any script?
unpacking data? Are you referring to table.unpack or soemthing else
I suspect so, let me check
Nah just the unpack function, which unpacks an array local NPC, NPCByRarity, NPCOrdered = unpack(require(script.NPC))
yea, it just turns that array into a tuple
I see, I think I need to have a more in-depth look at data structures to get my head around things like this.
and fully understand oop
you mostly don’t need OOP for Roblox but it’s good to learn, OOP is “fake” in terms of Roblox/luau iat it uses metatables with the index meta method to simulate it
there’s no class keyword like other languages
Ahh, I see. I suspect thats why I only really see it being used in data saving
and you don’t have to instantiate it with the new keyword (though common practice is to make your initializer for the object use the new keyword)
Out of interest, how did you learn more of these advanced elements of scripting? I may be wrong but I believe youtube only takes you so far. I suppose I could have a good look at Roblox documentation
Can’t really tell you, learning is subjective and I have a literal addiction to learning it so I look at multiple sources. I think what helped me most is reading open sourced software on Roblox as they’re usually structured the best they can be
an example is document store
Ahh, yeah I need to do that. As often I'll see all these scary module scripts in game templates etc and hide from them instead of confronting them and actually learning what they do.
I have a resource on types which may help, almost all of these open sourced modules use types to assist the user on how it should be formatted https://discord.com/channels/211228845771063296/1449097282967568484
one thing I which luau had was using where for T for types
Like where: T keyof<typeof(schema)>
Wow, thanks! I'll have a good look at this
Thank you so much, for helping me.
thank you for that btw
i just started learning how to script a few days ago and shit like this is so helpful ty goat
yeah of course, I still have a lot to add just haven’t felt like adding to it lol
will probably add some stuff in an hour or so
Am I stupid bro? I'm trying to change the player's hair color and material but due to special meshes, materials dont apply to them. I tried to instead replace it using a meshpart but got this error when trying to put the specialmesh's meshid onto the meshpart. "The current thread cannot write 'MeshId' (lacking capability NotAccessible)"
The fact that so many programming tutorials across different languages teach the user how to print hello world, as the very first thing
Is utterly moronic
Looking for a scripter to fix a script for me I’ll pay
How much would you pay?
Ionk depends on how much u need
It’s very simple tbh but Ionk what’s causing it
Dm me
what
They don't know what a function or a string is yet. A beginner needs to learn each concept first, such that they understand how to combine them into a program that does what they're trying to do
Guys what is the estimated price for scripting a clicker game and its ui kind of pet simulator with shops and stuff as a template
You can introduce a simple thing that allows them to see that their code works though
And that in itself motivates them to continue
If you just create a variable and continue from there and not introduce outputting until you've encountered functions, they will never know what their code does up until they learn functions
That teaches function syntax, introduces strings, and gives something valuable to testing
? Anyone
the point of a hello world is to get an environment on your computer in which code of that language can run
outputting text is easily done and easily verified even if you're clueless
can i help whit coding?
who has a hood game map i will buy map right now
Professional Roblox Game Developer Offering Custom Game Solutions
https://medal.tv/games/roblox-studio/clips/lXuh3mMr21n-CbAcc?invite=cr-MSxJRDEsMjg3MzAwNzE2 why is this happening????
Watch Untitled by xoen_fox and millions of other Roblox Studio videos on Medal. #robloxstudio
send ur code
file > beta features > disable "Adaptive Animations"
for some reason it breaks torso animation in r6
hey where can I find a good documentation of roblox API?
@tribal meadow
ik but i got a dream to work on a game i really like thats in progress and idek how to do 1 thing they got
tysm gng
i cant even make a simple walk animation and import
np
animations are a biyach for everyone who just starts
if someone wants a template for a brainrot game, which is really easy to configure, dm me
I got like hella money
guys, is it possible to make a living with only scripting comissions? like 500$ per month would be good for me
is this a good way of handling my inputs and functions?
are there any ways to fetch a list of games by their genre in roblox api?
Do web developers get commissions here
i’d say that’s probably fine yeah lol
i think so yes
for 500$ a month i’d say definitely yes i think
I should just lowk cold dm random studios
there are some good input modules out there
i mean i never used input modules before but why not do it manually with input service
seems like unnecessary bloat 🤷♂️
you can
up to you
I wonder how profitable it would be to make portfolio websites for people that AREN'T carrd based
Could charge like £100 + 3/mo for hosting
portfolio websites arent rlly that needed these days
and if u need one, u can always use a template
Does anyone know a grid inventiry library that's actually used in a popular game rather than just a showcase video?
yes
Player.Backpack
sorry that wasn’t funny
indeed
guys help my startercharacter keeps sliding
It depends on how you wanna live gng
And if you get bounneses
With 500 dollors you can't pay rent
It takes like 200 minimum
And you got eat food like maybe
100 dollors
So you got have fun with 100 dollors per month that your real income or maybe 200
i would just change the index look up but if thats how you want to handle it then you can
Good websites still need to be handwritten
I'm talking genuinely good ones
tbh if u making 500 a month just dont pay rent
get a gym membership
or use public library
and live in a tent
or join military
at least they give u food money and shelter
Metatables in luau are so fun to use. They remind me of Godot’s (gdscript) inheritance workflow, only slightly more difficult.
try putting a metatable in metatable
I actually did something similar to that, which wasn't too confusing. Not really a metatable inside of another one though.
local Dash = {}
Dash.__index = Dash
setmetatable(Dash, BaseAbility) -- Creates a subclass of the base ability
Dash.Config = require(script.Parent.Config)
function Dash.new(player)
local self = BaseAbility.new(player) -- Creates "self" and sets up self.Player, which is awesome. Reminds me of gdscript
return setmetatable(self, Dash)
end
how long does it take to finish the Advanced Brawl dev Scripting tutorials
ah the humble reworked menu GUI of Roblox studio is just breaking my pc
I wish I could upload an image
make a twitter account and promote ur work in there
after going throught RoDevs and BrawlDevs beginner scriptint lessons what should i do next?
Just make stuff
do me
whats best way to learn how to script im trying to start today rn
Is there a open source Roblox luau Compiler anywhere?
Does something like that exist?
Choose simple projects and try to solve them if you have some idea of how to do it by reading the documentation. If you're completely new to scripting, I would recommend reading the documentation and watching many tutorials before starting small projects.
ok
guys im a developer and i use my nokia phone is this code good
Partially true
Good webs still need good typo (coding)
Isnt ECS and OOP literally the same shit? Why do people always say ECS is "anti-oop"? that makes no sense
On surface oop and ecs are entirely different concepts, until they arent
Explain to me why theyre not the same cncept
is there an easy way to just change the gui of the back pack to make it look a little bit better just uis guys
just make the game man
no one give a shit about the concepts
only way is to fully disable it + add your own but you can clone the existing one from coregui to get started
ty
thoughts?
fire
thank you bro
🔥
anyone know how i can test scripting on things like ui, maps, building, and other systems without making it myself?
Any scripter dm me 
make a voxel survival game
huhh
THX
whats that
why are you making a Dash ability OOP'
epic im gray now
ecs is not oop
Explain why
well i never studied ecs but oop uses classes
Why cant you use classes in ecs
and from my understnading ecs u build entities by describing their functionality
So youre not aware of ecs and oop in depth right
Eventually youll realize theyre the same thing
and ecs is to allow u to have better performance for a large amount of entities
Why do you get better performance though?
Very nice, keep ti up 👍
thank you bro, you too!
idk lemme ask chat
chat is short for chatgpt btw
Thank you 🙏
Just because
Claude better 🤷
ok well one way it says is that ecs uses table to store everything making the data contiguous in memory whereas oop uses variables for each value in a class so all the data is not contiguous which is slower for cpu
Ever heard of an snippet?
Why cant you make a class out of arrays?
thats not the point
I figured out Why
And why are arrays faster than dictionaries/variables
🫶🏻
if i have a bunch of position values its faster for the cpu to loop through them if they are all in an array compared to having an array of enemy classes and then getting the position variable inside the enemy class
because its contiguous
arrays are contiguous in memory
contagious?
when cpu brings data from memory into cache it brings all the other variables around it
Have you ever heard of SIMD?
single imput multiple D
Single instruction multiple data
Its also one of the reasons to why people TEND to think ecs is faster than oop, but you can still have SIMD with oop
?
ecs is literaly faster than oop
tho both ecs and oop
suck ass
oop is the worst paradigm to ever exist
Why
Theyre at t he core t he same thing, youll eventually figure out why but its a good idea to try to figure out why they are
xd????
Ik OOP can be bad for performance and all but I find it useful
My brother explained it to me when i was learning ECS
then your brother fed u some skid stuff
OOP isnt bad for performance, premature optimization is the root of all evils, as long as you dont overuse it and do it as runtime behavior youre good
Yeah skid who wrote a vm in assembly and is coding games for a sega saturn which is said to be the hardest console to make games in
IT IS
bad for performance
Explain
Well yeah but it can still make code 10x slower than it needs it to be
Not 10x, unless youre over using it
Not what i said
omg so skilled omg
And its not about being the same speed
ok so why u bring up simd
he wanted to sound smart
Why do people at HD get all pissed when you try to have a genuine talk about ECS bro what
cuz youre saying dumb shit
I was teaching the other guy one of the reasons to why ecs is faster than oop
ok so u say ecs is faster
??? what you called him a skid i js wanted to prove you wrong tf
Yeah it is but do you know why
On roblox atleast
What is ecs, never heard of that term 💔
entity component system
Why are people on hidden devs so weird and aggressive last time i brought up multiple dispatch and taled about it people were also rude as fuck for no reason
get used to it
Its just being aggressive for no reason
Most people here are just egotistical so yeah
They think they know everything when they don't know anything
I showed some guy the support for multiple dispatch i made for roblox and he said "i can just use i statements and tables and bala bla bla" Like lets bring others down for no reason
Fr lol
Yes bro i wanted to have a chat on why i think oop and ecs are th e same on the core and these dudes just started saying im a sid and lying and my brother is a skid
thats y u dont argue with people on the internet
I mean I just try to script and make portfolio and maybe some money
statement of the year award
That's the reality of this server
that will happen on every server
not just this one
thats also y i got banned from reddit
Na im out to ro devs bro atleast they not bums there
they are bums there
for arguing with internet people
And ur proud of it
Well I did say this server, didn't mean only this server
ye
Youre proud of being aggressive for no reason
Sure bud
Why couldnt you instead try to have an actual conv with me and try to figure out what i meant instead of js being aggressive
how am i being agressive
i wonder bro
???
No bro you called him a skid i just wanted to prove u wrong
Welp guys do you have any recommendations on how to either make good portfolio to get hired or if I already got portfolio how to get hired (I just want to get a job)
i didnt bring him here i just said he taught me that
and i told you he taught your wrong
then you called him a skid for no reason and when i proved u wrong u started being sartistical
i said that he fed you some skid stuff
And i told you why i believe he isnt wrong
not that he is a skid
Anything but saying ur wrong
Wait this is ragebait 😂
It's 1 in the morning isn't it too late for this
Bye bye
Bro, you arent getting called a skid because im mean youre getting called a skid because you just declared that up is actually down type shit
saying OOP and ECS are the same on the core is fundamentally wrong on every single level of computer science
they are diametrically opposed philosophies/'paradigms'
a
idk about that one chief (meant to reply to ur next comment)
i can see where the guy is coming from
they aren't the same but they aren't opposites
??????????????
the navy rotc dudes asked me what i did over the break so i had to sound productive and say "Over the break i spent most of it learning the high level programming language LUAA"
What is a luaa
lmao
how do u make it where u click proxyprompt and ur group pops up and u can join from there?
damn thats pretty cool
thanks
u have to make it where when u click proximity prompt ur group pops up and u can join from there
how do you do the music bypass without copyright
u make it bypass without copyrighting
should i reload the animations everytime? the tools are able to be picked up and dropped on death
i honestly cant decided
you should load all the tool anims when you equip
even when the tool is going to be picked up and dropped countless times?
I am looking for a talented scripter with knowledge of battleground games
who is able to create/import characters
fix bugs and tweak things easily!
Requirements:
Can adapt well to diffrent frameworks
Good at fixing bugs
can script moves/attacks
MINIMUM Weekly progresss
not required but can create some very basic animations!
Payment
Robux: R$70,000 ($266.00)
USD: $250.00
Payment Type
Upon completion
can i watch the brawldev tutorials out of order ?
im going to try and make a game and then if i need help with something im just goign to watch the tutorial on it
by different players?
help yourself out dude
i just dont know if it gets confusing if i jump a head in the different topics
in the beginner tutorials, it will get confusing
advanced tutorials will likely correlate to each other a bit less, but it's better to watch them in order since there's still a good chance he'll use things he taught in previous videos
alright thanks for the advice. im on the tween services right now but im kinda getting bored so im going to try making the game.
client or server?
Hi guys
Do any of y’all know how to make weather events 🥺
yeah
easy to do, hard to explain
unless the person you're explaining it to knows what they're doing
client
Tool.Equipped:Connect(function()
EquipAnimation = Animator:LoadAnimation(script.Equip
End)```
selling a brainrot game template, its really easy to configure and has all the systems. if interested dm me
not
you can just load them once
then play when necessary
Teach me 🥺
how much scripting knowledge do you already have
is it still wroth to learn how to code in luau if theres ai
short answer yes
ai won't solve everything
wanan try my game amde with ai
send link
coding is way more than just writing stuff. your creativity, problem solving, organization, perseverance, critical thinking, math skills (if it involves any), and anything else that i can not think of right now all benefit from it
because ai is useless if you dont know how to code. Its a prediction machine not a replacement
what does this mean and how do I fix it
Can anyone tell me why the AI is not working
CUZ IT SUCKS
U gotta use ur braincells not ai
the script is referencing game.Enabled for some reason which doesn't exist
"shh... @ 22 Jan 2026 21:31" is just the name of the place I think this naming is given for auto saves or team create or something like that
how u guys like learn code what do i try learning first help
i learned by watching youtube videos first, then just making things, using documentation, and using dev forums
which did u learn
ohhh roblox i thought u meant programming
i learned C# + Unity first
that was like 4 or 5 years before i started roblox scripting
which was about 4 years ago
i learned both the same way though
Check DMs my scripting
with that mindset u could just stop doing everything u like
why not use preloadasync on initialization of the game?
if u do it on equip, it would have no anims for a second
should i learn lualu
lualu
do you want to make roblox games?
if you want to make games outside of roblox, it depends on the engine
Godot = GDScript + C# (optional)
Unity = C#
Unreal Engine = UE Blueprint + C++
i js want robux LOL
then yes learn luau lol
u got any good yt videos
ty
dont do this
yo
C and C++ are midladder languages
whats a midladder
mid tier
I just learned how to change a part color am i ready to do commissions chat ?! 🗣️
its okay if c or c++ is too hard for you
maybe try c# or java
is java cool
im tryna get into software engineering but i know like jackshit
its convenient and used by a lot of companies
not very good for games or anything though
im gonna try learning lua first then java
cool have fun
read my roles
I know C++, I write C++
its just not a good language
If I could practically use another language I would
C++ is a shitter language
If you actually used C++ you'd know what im talking ab
but ur just a larper
oh no, i hate c++
its powerful though, so cope all you want
its S tier
i also hate java, but use it a lot
wdym its powerful
would put java in A tier
C++ is objectively bad in lots of ways
Theres the theoretical side and theres the practical side
same could be said about any language
No
yes, just depends on the angle/perspective lol
it has no good build process
oh god
It has no standard dependency resolution
stick too roblox i guess
Other languages dont have this issue
Somehow C#, Rust, Go, Zig, Java, Python, and most any other modern language figured it out
none of those are really even comparable to c++
other than rust
like i said, stick to roblox
and why not?
Also Go and Zig are very comparable to C++
awful ragebait
projection
no skill roles so it checks out
too lazy to get them back
these worthless larpers just running they mouth
also skill roles in this server are meaningless lol
someone writing c++ for 1 day could get the c++ role
relax there mr ego
nah
thats probably where most of ur messages are
doubt it
how many years have you been programming for?
10
just a wee lil pup in the game then
failbait
ive been doing this since 06-07 lol
And you're still terrible 🥀
its okay, youll get there
just gotta let go of that ego first
prevents you from actually learning anything
you cant ragebait me btw
you're a midladder ragebaiter
love you
I made a cinematic camera module
who wants it
it makes managing cameras in your game a lot easier, to the point where u can do everything you could need regarding camera work in 1 line
it has dynamic cam, camera types and its very clean imo
also has useful tweens in/out to black screen
could probably make a forum post for your module if you think the design is good enough
im sure others have released similar modules already, so id check them out as well
well it's a pretty simple design, but I'd love to share the stuff I make so I can get better


