#code-discussion
1 messages · Page 272 of 1
Hm
Say you have a number I guess, and please anyone correct me if i'm wrong, that you want to save for a few seconds and discard it
a userID for example
uh huh
you store the userID in some sort of table to be used in a function one time
oh ok so cache is like storing things in tables?
lowkey don't know how to describe that
i'll say tables are the means of storing that data to be used temporarily, and the cache is where it goes
what does this talk about , is it usefull
im a beginner though so i'd also read or learn more about it via articles
bro 🪦
thats how cpu memory works 😭
and like memory down to a super-fine detail
ooo maybe it might help
i have that bookmarked too lmao
replica 💔
yes
we left replica in 2020
its not good?
alr
thats fine
hi guys
I'm trying to make an ODM gear for my portfolio and I just can't seem to get the physics right
whats ODM
the machine in AOT which was used to kill titans
Here's the video
Definitely getting that feet drift 😎
dm me
guys hiw can i make it so these messages don't appear?
anyone got advice for scripting in general, like
something thats helpful to get to know early
What stage u at
yo
what do u know
make a custom chat
really basic stuff, started like a week ago,like my biggest code is a randomizer for items from different rarity pools, don't know the direction yet in which i should be heading
u should start by getting the fundamentals
its like a language basically , learn words and you can make sentences
Ty
how are games able to see if you liked it or not
the most helpful thing early on for roblox is knowing how to read and use their docs. https://create.roblox.com/docs
One message removed from a suspended account.
just send delta changes
you cited ProfileService when there's just another module by the same creator made exactly for server → client table replication named Replica
and others such as RemoteTable
One message removed from a suspended account.
One message removed from a suspended account.
np
- we have generalized iteration, you no longer need to manually write
pairsoripairsin a for-loop - prefer
QueryDescendantsrather thanGetDescendants - write reusable systems and your own modules
- read the docs for knowledge, search in the DevForum to find solutions from people who already experienced the same issues as you, find open-sources, or make your own posts
cache is putting data in places where it's easy and quick to access
like stack memory
develop your own habits, but don't be afraid to adopt others'
does anyone know how I would make aniamtions for something like a basketball dribble. I tried using a motor6d but its giving me issues and tweening it doesnt look right
please don't make some goofy shit like DataService
Is this script ai made ?
this doesn't look human-sane to me, variable names are too long and cringe
70% positive this is ai
Thanks for helping
does anyone know how I would make aniamtions for something like a basketball dribble. I tried using a motor6d but its giving me issues and tweening it doesnt look right
https://medal.tv/games/roblox-studio/clips/mday9xoNTNi5u-bNk?invite=cr-MSxtVm8sNjczNjE4MTE&v=8
why is this not working 🙏
self.Character.Humanoid.WalkSpeed = 12
self.Character.Humanoid.JumpHeight = 0
Events.SetState:Fire("Add",self.Character,"Action",.4)
local CharacterConfig = CSInfo.GetInfo(self.EquipedCharacter)
CooldownManager:AddCooldown(self.Character,"M1",self.Character:GetAttribute("Combo") == 3 and 1.7 or CharacterConfig.M1Cooldown)
local AnimationFolder = Rs.Assets.Animations[self.EquipedCharacter].M1s
local Track: AnimationTrack = AnimationHandler:playAnimation(self.Character,AnimationFolder[self.Character:GetAttribute("Combo")])
self.Trove:Add(Track:GetMarkerReachedSignal("hitreg"):Once(function()
if StateManager.RetrieveState(self.Character,"Stunned") then
Events.SetState:Fire("Remove",self.Character,"Action")
AnimationHandler:stopAnimation(self.Character,Track)
return
end
local ServerArgs = {
Module = "Combat",
Action = "Hit",
Character = self.Character,
EquipedCharacter = self.EquipedCharacter,
Combo = self.Character:GetAttribute("Combo")
}
Events.Server:Fire(ServerArgs)
if self.Character:GetAttribute("Combo") == 3 then
SetCombo(self.Character,1)
else
SetCombo(self.Character,self.Character:GetAttribute("Combo")+1)
end
end))
task.wait(Track.Length)
self.Character.Humanoid.WalkSpeed = 16
self.Character.Humanoid.JumpHeight = 7.2
Watch Untitled by CHERR1 and millions of other Roblox Studio videos on Medal. #robloxstudio
dawg send the entire thing
I dont even see closing brackets
but at least it needs to be using modules and trove which is good
I mean maybe, but some people like to code it all to keep it in rojo / github instead of doing it and saving it in repstorage
oh mb i forgot to send the main part
print(tick()- self.LastM1)
if tick() - self.LastM1 >= 1.5 then
SetCombo(self.Character,1)
end
self.LastM1 = tick()
print(self.Character:GetAttribute("Combo"))
print(tick()- self.LastM1)
this is where i handle the combo reset
local function SetCombo(Character,Amount)
Events.SetCombo:Fire(Character,Amount)
end
Events.SetCombo.OnServerEvent:Connect(function(player,Character,Amount)
Character:SetAttribute("Combo",Amount)
if Amount == 1 then
print("Reset Combo")
end
end)
no bro am dumb
i am never doing that again
idk why i tried to be different this time
I make my variables long
i always used variable
No I mean I use attributes HEAVY because theyre innately replicated server to client but I was wondering if theres a reason
it's always replicatedstorage for me
attributes are about 18x faster to access iirc, along with some other stuff
bro i couldnt use attributes in server anyway
i had to send combo as an data part
to access it without any missallignments
😭
I didn't know that but thats sick, my entire current project uses only attributes, even JSON encoded/decoded ones for tables
they're pretty much just beefed up value instances (like intvalue) but they're a bit harder to track since you need to know their exact name
Yeah unless you set them ALL in one place on start up with nil or empty values I never ever set attribute unless its at startup, but this requires careful system planning and knowing what ur gonna be doing, only times I do is on mobs for example if I need to mark it dead for a prox prompt to show up or something
Attributes made me not quit dev, I dont like remote events for communication with UI, I only accept them for server to client or clitent to server under specific situations..
do not fear remotes
I dont use remotes for UI, I refuse, I use them for other things
for ui isnt signals best approach
there is no such thing as best approach
signals are kind of like bindables
ye
they can only go server to server or client to client
but UI needs server info alot
signals can be messy but ig similar to them observables can be helpful
using a networking library / compiler can make working with remotes a lot nicer
Every single project I start I just copy past my bootstrapper initiation for server and client module scripts with a registry, they all work off dependencies so I can easily just self._ them
yo so can someone help 😭
I want to but I cant get the whole picture with what youve send, can you send the entire function to me in dms or something
ok we can dm
it would rlly help if you told us what your problem is instead of just "it isn't working"
it isn't working bro
i wish more people would dm me for help with the end result of payment
mods, seize him
it aint a crime to get paid
as of now it is
getting paid minimum wage is like robbing banks
they call me al capone
just you
am i writing 90% of scripts in a modulescript soon tho?
I meant as in you should write your own modules too rather than only using other people's. at some point you always need to make your own modules due to the unique framework each game has
however your question isn't wrong, yes you will, perhaps 80% at least
alright! ty
Hi guys
Can i ask
Oh nvm real man dont ask if they can ask
To start a game and hire scripter what should u do ?
Just post in #scripter-hiring ?
Or u guys use a specific place
that's the specific place
can you skip the learning feature on game ads
i really need someone to help me abt this, how should i start learning roblox lua scripting?, any tips as to how to begin? i wish to continue until im good with combat mechs and etc
Why not add constant velocity to the characters hook position
Is that a roblox instance?
Also I want to make it so that the player can rotate too
No u can use linear velocity to add constant velocity and once its close enough u can decelerate
I made something like a grapple hook system like that it came out deceny
oh okay
I tried to do that, but the problem is that the player falls down rather than going straight
Are u adding the velocity to the characters at a constant pace?
Still cant send vids
I did try linearvelocity but it was pretty much useless.
Hmm
can you send it by uploading it on yt or something
that will help alot
are you able to do procedural generation with pre-made islands that have terrain?
id watch through beginner scripting videos like by thedevking or brawldev to learn about the basics
but also try out stuff that they talk about yourself
and after that just experiment trying to make little things with whta u know and if u dont know ask around or check devfourm or lua reference and if all else fails ask chatgpt but dont rely on it to write you code, save ai as a last resort
if i wanna make a coin rotate just for visuals, do i run that on the server?
no right?
For everyone to see yeah
do it on the client
Yea i actovated my neurons and found out that this question was dumb
Dw we all dumb sometimes
It doesn't even matter if you're the best scripter ever, you're gonna ask stupid questions and forget easy stuff
infact i made hella robux with just scripting
but yea thats right
For example my friend forgot yesterday how to make some leaderstats and he's been coding for around 4 years
i was just 0% locked in
ok that i remembered
my first time on studio since 2 months, school been hard
i remember misspelling leaderstats
and i couldnt figure it out
if after 2 months you remember how to code then you hella good dw bout forgetting shi
lol same
Hey mans, someaone worked with battleground or pvp games?
The animations are doing on client , and visual effects are repllied to all clients?
I really want to see the structure and how its organized to i learn better
yeah pretty much
Hmm i understand, so have a module that gonna say
"Hey, reply this vfx on that location pleas :>" or..?
i need some help with dev products
for some reason it works fine in studio but doesn’t work in team test - is this normal?
render on all clients, use server for more important things
@sly dome ok this is funny
i forgot how to duplicate things in a script
nvm its clone
oh my days
imagine learning how to script in 2026
been scripting since 2023
made millions of robux too
Instance:Clone()
im just washed
me too
and we were just talking about this typa stuff
how many
4m selling homemade modules
oh well thats nice
from small to a big clean module
i have some more but i self deved games
i only have 1 published game but its more like a old game so its not that greate
i m making a build battle right now,
i closed all my games since i heavily lost all kind of motivation and had irl issues
im just now getting back in
finals in 2 months tho
i used to have 2 games
2 anime slop games
sadly i cant devex about half of my robux cus roblox doesnt like me
so im kinda stuck with over 20 mil
i remember when i used to be younger i dreamed of being rich from cloths lmao
i think my most selling cloth had 300
sales
i never understood how the hell people made a lot with cloths
i also tried ugc but i just didnt like it so i had like 7 ugcs which made me 200k total
yea thanks
is that the whole game?
u just build and rate it?
Its just a little gameplay, there is 10+ maps and 500+ themes
A lobby and so
maps?
I mean backgrounds themes
so the building environment changes according to ex. theme?
Yea
that's cool. add player plates
i presume this is like a rating game, hypixel or like that one dress up game?
Yes
add plates then, when build is review player can customize their player plate, which is just their general info stuff next to the rating ui
add particle emitter blocks with a set limit for each build to negate performance worries
Everyone build on the same map on client, so they dont see eachother, once the time is done, there blocks position and color get packed inside a table and sent to server to be render and so people can rate there build
Bro my game plan is already done but thanks
whats the ccu and release date?
There is no realese date idk bro
I m busy with school
o, thought its already released
one thing though
add hotkeys
dragging a mouse cursor over to ui is pretty low level
efficiency during a time constrained build is very important
will excel the builds in ur game
There is already, wach again the video
Chill bro, i m alone making that game
like the 1,2,3?
im talking specific color
zzzzzzzz busy
?
How i m suppose to keybind 30 colors?
I dont understand what your saying
The dreaded datastore queue!!!
do i still need to use ipars and pairs or not
i found conflicting information online
Hey, you don't need to use ipairs or pairs anymore. Luau can automatically tell whether you're using an array/dictionary now. You can just do
for index, value in yourTableName do and the iterator will work as usual.
no boss
for i, v in myTable do
print("cuh")
end
i was asking about this earlier but got some mixed answers, ive got this script to get ability vfx modules + preload animations for the abilities upon switching movesets. the modules clear and change when moveset is changed but how do i like get rid of the loaded animations as someone had said there is a limit to how many animations can be loaded onto a players animator
table.clear anims dont work because they are instances so what can i do to like unload the animations
or does it even matter someone had said they unload themselves if not referenced but i didnt get entirely what that meant like what counts as it not being referenced
can someone help me learn coding ik the basics
alr ty
then ive been making good code for the past year
lol
😔
when u play animation u have to pass the class Animation into as the arg
soo
can someone help me learn coding ik the basics
I can't help you learn to code, but if you're seeking to escape tutorial hell, here's what I did (and still do!):
- Learned the most critical ROBLOX API from YT (I used tutorials from BrawlDev) and the ROBLOX API Documentation.
- Code 1 tiny project per day, always ensuring the project you do contains something you're uncomfortable with/don't understand yet.
- Track your progress daily, noting down how your trajectory toward expertise is, and adjusting if you're off-track.
- When you get stuck, ask AI such as ChatGPT, Claude, and Gemini for help with debugging - they aren't perfect, but they provide fast, digestible explanations that are perfect for beginners.
- Grab tutorial/open-source systems/scripts, and study them when you start reaching an intermediate level. You'll notice programming patterns that you can apply in your own code.
Overall, it comes down to repeatedly doing things you don't know how to do so you guarantee daily growth. Expect to feel stupid, confused, or hopeless at times, as struggle is a part of growth.
Also, asking developers in servers like this one is important, as people with more experience are amazing troves of knowledge.
ok
roblox scripter 10+ yrs of experience dm or ping me to get started on a comission
could i ask you gays to help me when my ai code get santa error
I think calling :Destroy() on the AnimationTracks should work
also load animations using the respective Animator not the Humanoid
I’m planning on making simple mobs for my game maybe like 3-4 different ones. I should do OOP for that sort of thing right? It shouldn’t be hard either right? How would you guys go about that. I would have them spawning from a model every X seconds.
if it were me i'd use a entitymanager that uses statemachines for each entity and created a ID for a entity uses the statemachine for that entity and utilizes it
oh yea mb
how can i call destroy on all of them tho
loop?
it doesnt let me loop through for some reason but maybe because i didnt have it loaded onto the animators themselves
what do you mean it doesn't let you loop through
what are u looping through?
the table i have it setting to
just run a for-loop on the anims table before clearing it
Is this tuff
what is that?
oh I see your error lol
you initially create anims as a table and later make it a reference to an AnimationTrack itself
hence on clean up it's no longer a table
and you can't perform a for-loop
do u see what i wanna do tho like i want all the animationtracks in a table
and then i just clear it but is that not possible]
just use table.insert
Hey looking for a scripter that would be intrested in making a game. Looking for a scripter that would be actually intrested in the project and someone that is active and engade in the ide. I have an idea so DM if intrested.
you're resetting the anims variable every time to a new AnimationTrack
instead of storing them in the table
ohhhh yea shi
you should still do table.clear on the anims table after the for-loop though
i forgot how to set it properly to a table bruh i just added this and its working now
no errors so must be fine
yea and i added .clear
thanks
also tho if theyre all loaded in this script (the script is just that what i sent), how do i reference the animation track here in a modulescript elsewhere for a specific ability to actually play the animation
should i change the script to be a modulescript and return the animations table would dat work
your purpose with this is only preloading the animations, right? if so it isn't a big issue to just load again the animation in the module skills
however, ideally, you shouldn't even be doing this. every skill in a game is divided in 2-3 steps (at least): initialization, activation, and deactivation (for skills that do have a way to deactivate). during the initialization of a skill is when you should load the required AnimationTrack. doesn't really matter destroying the AnimationTrack after the player changes to a different moveset
most importantly I don't think the limit on the Animator is for simply loaded tracks, but active (playing) tracks instead. I'm not too sure but regardless you aren't hitting 256 loaded AnimationTracks unless you cause a bug. I have over 60 skills in my game that as the owner I have access to all (therefore all of them initialize for my character), some loading 2-3 AnimationTracks, alongside items and others that load more animations into the Animator. even with access to all items, skills & tools at the same time I never got a warning about this limit
wait yea
i got a solution
the only reason i was doing this was because the animations would appear delayed but i think i know what i can do
most serious channel
nvm
how do u do it then for yourself
i can obv load the animation when the ability is called but the first use always has the animation delayed and messed up then so do u not preload the animations or if u do then how
that's why I said there's a difference between initialization and activation
the moment you require the moveset module is when the AnimationTracks should be loaded for each skill
then you're able to use the functions you have in the module to activate the skills
let me give you an example
if i require the modulescript on a local script can i get the player in the modulescript from localplayer
local myActions = {}
myActions.Fireball = function(character: Model)
local animTrack = -- ...
return {
Activate = function()
-- fires
end,
}
end
this is an example of a global actions module
what?
yea i have it somewhat like this but im just not sure how u load the tracks onto the player *in *that module when its required
you shouldn't require it in the client
rate my script 🙏
local function HelloWorld(message)
message("HelloWorld")
end
HelloWorld(print)
hmmmmm
you'll have to set it up similarly to how I did. an example of how to trigger the Fireball actions using that template:
local actionsModule = require(path.to.myActions)
local fireballAction = actionsModule.Fireball(character)
-- upon fire skill event is fired
fireballAction.Activate()
this way the AnimationTrack for the Fireball action was loaded when the action was set up, and it's only effectively played when Activate() is called
or if you have a single module for each moveset, you can do it similar to this:
return function(character: Model)
local punchTrack = -- ...
return {
Punch = function()
-- do punch
end
}
end```
and then require it this way:
local movesetModule = require(path.to.module)(character)
how many ccu does 10 ad credits/ day get u
no 
What’s the best way to learn scripting step by step? Cuz I’ve been stuck watching tutorial after tutorial, I’ve read the Roblox docs but it’s difficult to understand. Like I get the basics, like making part instances and functions. But the skill curve is too steep to understand much else. And if I try using my current knowledge to make any game mechanic, I can’t. And simple mechanics like collecting coins and adding it to a leaderboard can take 100+ lines and multiple types of scripts. Is it worth following tutorials, or is it better to buy a book or take a course?
Hello everyone, which way is more optimized and better to make animations?
while true do
script.Parent.Rotation += 1
wait(0.1)
end
or
game:GetService("RunService").RenderStepped:Connect(function(dt)
script.Parent.Rotation += 1 * dt
end)
or any other way?
Use the content provider service.
This allows you to preload anything including animations so you don’t have a delay
Put that mindset away. Think of something that you want to create. And just start doing it. Start with the absolute base and work from there. When you have an idea. Sketch out what you need to do, and maybe make a flowchart of all the things you might need to program. Than just get started. If you run into things you don’t understand. Ask AI to explain the concept to you, don’t let it generate code unless you need to check for syntax etc
It spawns me in the part
can someone help me with send tutorials for scripting pls
it'z not bad but heres my suggestions! stop using waitforchild on the server, for the resize function everything will already be there, swap from values & tweens to a single spring on the client instead of the server, and put ur tweeninfo higher in the script so it's a constant instead of being newly created every time
`loop
teleport player to part in workspace
wait 10 seconds
spawn copper roof tiles tool in replicatedstorage to player
wait 255 seconds
give money to player
loopend`
/e robux
yo hello yall, what thing can i learn that is asked a lot? im a intermediate scripter
Thx so much!!
IT'S CLIENT
funny bug happens in my parkour game when i grab a ledge and then spam ledge jump
Yo how’d you all originally learn to script? Which websites, tools, etc did you use? Looking for advice as a beginner.
youtube tutorials, reading roblox documentation, reading other people's code, asking questions
Which do you recommend the most for starting out? Videos or documentation?
im not sure if this helps at all but it from what I see it checks the green hitbox a frame before teleporting the player into the floor
other than external sources, what helped me a lot was to make small systems that get more complicated overtime
practice is the only way to get better
if u never apply what u read or watch, ur never learning anything
only memorizing
both
green box is purely visual right now, so that's not it
i have some ideas on what it might be though

no
learn Luau first 👍
then roblox-ts once u get good
how do I do bitwise comparison in rblx?
using roblox-ts would be if you are more comfortable with writing ts
or is it not possible
luau has a bit32 library in its standard library
ohhh
ty
typescript my beloved
is it worth making data compressor (or whatever its called)?
I wanted to create connections for buttons and store all the connections with their assigned buttons to a table so I can manage it later on, I know how to use tables and stuff I just haven't had time to figure it out cause I want to create a module for it so I can use it for projects in the future
any fixes??
Did Roblox Studio recently updated .lua to .luau chat?
yo do yall got any tips for me like i know what each things do like remote events remote functions how server and client works but i don’t know how to pull all that together to make a working script

what are you trying to do ?
luau files have always been luau im pretty sure
making a encoder I think it's called? so larger data structures are less storage wise
it really depends on what you need it for
for player data most of the time you do not need to compress data
I plan on having a rollback system for player recovery and stuff and I would need to save their data right?
so then I can roll it back
For real? I downloaded several of my script to import to VS Code earlier in February they all returned to .lua instead of .luau
Anyway, I'm just curious. Not that it would broke anything
both work luau is the filetype for luau scripts tho
would just stick to em by convention
(doesnt rlly matter)
Yeah at the end of the day they're both lua
It's always been luau
im lowk confused
are classes (like itemclasses) allowed to be in replicated storage or strictly only server sided?
I use ProfileStore though, does this work for that?
ProfileStore is just a wrapper on top of the default DataStoreService
you should be fine
alr
yo ho wmuch % do scripters get for cash grab games, like the market expectation
excellent debug gizmos
Im a sucker for visual debugging 
they get $ instead of % if theyre smart
% and $ if theyre really smart
hes a freind
i needa know
how much i should offer
games got preety good game loop, rlly similar to tsunami, but nothing to do with tsunami
just ask ur friend
task.delay(IMPACT_DELAY, function()
local humanoid = character:FindFirstChild("Humanoid")
if not humanoid then return end
humanoid.PlatformStand = true
humanoid.AutoRotate = false
task.wait()
local direction = (targetHRP.Position - hrp.Position).Unit
direction = Vector3.new(direction.X, 0, direction.Z).Unit
targetHRP.AssemblyLinearVelocity = (direction * KNOCKBACK_SPEED) + Vector3.new(0, UPWARD_SPEED, 0)
local tripAxis = direction:Cross(Vector3.new(0, 1, 0))
targetHRP.AssemblyAngularVelocity = tripAxis * 6
-- Recovery
task.delay(RAGDOLL_TIME, function()
if targetHum and targetHRP then
-- Kill all velocity BEFORE disabling ragdoll
targetHRP.AssemblyLinearVelocity = Vector3.zero
targetHRP.AssemblyAngularVelocity = Vector3.zero
task.wait() -- one frame to let physics settle
if not humanoid then return end
humanoid.PlatformStand = false
humanoid.AutoRotate = true
targetHum:ChangeState(Enum.HumanoidStateType.GettingUp)
targetChar:SetAttribute("IsStunned", nil)
if player then
pcall(function() targetHRP:SetNetworkOwner(player) end)
end
end
end)
end)
end
I am trying to create a knockback mechanism where the npc slaps the player and player falls on his back.
the initial part works fine where the player gets slapped and is knockbacked to the ground, but when the player tries getting up, he keeps spinning.
i tried other methods, such as linear velocity but in those methods the player is flung and enters infinite spinning and flies in the air.
so i am using this method now.
please help me create a good and stable knockback effect from a npc slap.
there is no normal
wyd if #Table returns -1?
why the nested task.delay in the task.delay
wha
the norm is to gaslight him into believing he will get a huge payout and then ghost him
i couldnt paste the full code, but the first one is so that the impulse is applied after the slap animation is completed, and the next task.delay is for recovery after the player tries to get back up
you could've just used a task.wait for the second one
dont need a new thread as theres no code after it
ok i can try that
its called common sense
but during the recovery phase, when the character gets up, they go into infinite spinning, when
if not humanoid then return end
humanoid.PlatformStand = false
humanoid.AutoRotate = true
if player then
pcall(function() targetHRP:SetNetworkOwner(player) end)
end
i cant figure out how to make them fall when knockbacked and properly stand. they either go spinning when i use linearvelocity or bodyvelocity.
but when i use applyimpulse it works fine although when they try to get up thats when they go spinning like crazy.
local function performAttack(zombie, targetChar)
local hum = zombie:FindFirstChild("Humanoid")
local hrp = zombie:FindFirstChild("HumanoidRootPart")
local animator = hum:WaitForChild("Animator")
local animObj = zombie:FindFirstChild("SlapAnim")
if not animObj then return end
local track = animator:LoadAnimation(animObj)
if targetChar:GetAttribute("IsStunned") then return end
targetChar:SetAttribute("IsStunned", true)
track:Play()
task.spawn(function()
task.wait(IMPACT_DELAY)
if not targetChar or not targetChar.Parent then return end
local targetHum = targetChar:FindFirstChild("Humanoid")
local targetHRP = targetChar:FindFirstChild("HumanoidRootPart")
if not targetHum or not targetHRP then return end
local sound = hrp:FindFirstChild("AttackSound")
if sound then sound:Play() end
targetHum:TakeDamage(DAMAGE)
local player = Players:GetPlayerFromCharacter(targetChar)
if player then targetHRP:SetNetworkOwner(nil) end
enableRagdoll(targetChar)
task.wait()
local direction = (targetHRP.Position - hrp.Position).Unit
direction = Vector3.new(direction.X, 0, direction.Z).Unit
targetHRP.AssemblyLinearVelocity = direction * KNOCKBACK_SPEED
targetHRP.AssemblyAngularVelocity = Vector3.zero
task.wait(RAGDOLL_TIME)
if targetHum and targetHRP then
targetHRP.AssemblyLinearVelocity = Vector3.zero
targetHRP.AssemblyAngularVelocity = Vector3.zero
task.wait()
disableRagdoll(targetChar)
targetHum:ChangeState(Enum.HumanoidStateType.GettingUp)
targetChar:SetAttribute("IsStunned", nil)
if player then
pcall(function() targetHRP:SetNetworkOwner(player) end)
end
end
end)
end
hmm
this is disable ragdoll function:
local function disableRagdoll(character)
local humanoid = character:FindFirstChild("Humanoid")
if not humanoid then return end
humanoid.PlatformStand = false
humanoid.AutoRotate = true
end
im not an expert for this but ill try to help
could it be related to platform stand
i use this to trip them
-- Tip them backward so they fall over
local tripAxis = direction:Cross(Vector3.new(0, 1, 0))
targetHRP.AssemblyAngularVelocity = tripAxis * 6
without this the character doesnt fall over
Hiii
what i need to do if my starter custom characted cant move
no part is anchored\
no welds
any yall heard of lemonade.gg ai
Lowkey anyone wanna team up and try create a new original game (no ai slop, brainrot etc) Im a scripter, we can split profit equally. (I cant vc tho). We will come up with an idea together. Hoping to get 2-3 people. I have a group we can put the game on, currently has 80 members
Yes
Second time i tried using it it wouldn’t connect
im using it rn
its kinda amazing
i know nothing about scripting and its making me systems that work
i was going to team up but just because of AI use i DO NOT want to join your team
can anyone heelp
Coul
But only if we have full endocrine simulation for players
I created my character with my animations,custom rig, I created my Animate by Claude Ai script instead of the one that is always placed in the player
i can jump
but cant walk
jump animation can play
This guy talk like me
why are there so many ai skidders coming to hiddendevs for help with their ai slop
IDK
Well what would u use ai for
idc is it ai or not
I find it crazy that people can prompt ai to maek them stuff but then cant figure out how to make it work ;-; with the ai tool
i just need to make cashgrab game
i dont know, i dont use ai
Then wtf do u mean unwould join but cuz of the no ai
no
@small prawn You said no ai slop
i dont want to fix AI slop every day
Me: STAB STAB STAB because I'd be stabbing you with, well, my nife
Hes said “because u use ai i wont join”
No he said becuase you said no ai he will join
what the hell
Yea
ANY ai use = i WILL NOT join
You said that @civic garnet Why did you say that
stop Putting words in my Mouth
Im not using ai bro
I said no ai slop
And I laugh at you beacuse its hilarious
do you give $ or fully give %
No money
I tried lemonade ai
For free because it's awesome
Ages ago
No money = ABSOLUTELY no join
help
But only if we can do full endocrine simulation for players @small prawn And model their blood pressure and interals
i can send the script
@compact spoke join my team for 1 billion/hour
300 lines
No if you used AI to generate it use AI to fix it
Bro 🙏
lmao what the fuck 😭
I'm not going to spend time fixing shit you dont even realy care about
What
fixing their shit?
meaning you are going to be SPOONFEEDING them?!
Litterally im doing this for fun 🙏
I am convince you cannot read
What even is endocrine
Like hormones
Bro im just getting a team of like 3-4 and we will work on a game and split profit equally i dont get what u dont understand lol
i tried to set hipheight to 0 , 0.2, 12
I dont think that hes like present for the conversation
I think he is liek tabbing back in to skim the chat and then react
i have no idea what you said but you go bro, i will compete against you and make more money ahgahahaha
And how would ur “endocrine simulator” work
Wel we would have to make sure each player has internal organ first
bro help me fr
Listen close becuase this will then tie into the surgery system @small prawn
No
If you used AI to genreate it use AI to fix it
No
i used
Once each player has internals we also must give them blood and veins
And make sure that the heart realistically simulate each of its chambers
i dont think AI has a gender man
To give accurate blood pressure reading
stop assuming AI gender
If ur using chatgpt click 3 dots and click “think”
Yeah ima pass
this is the reaon why im not joining the team
After we do that we can start to model brain function and use parts of the brain to control different aspects of the character controller
Well hold on @small prawn Its about to get good
@compact spoke i will happily create this and OPEN SOURCE it
So
I don't care
It's not a compeition
Sometimes we are all just having fun you know
who said that this game was specifically a competition
open source = contributors = FREE LABOR
What
It not a competition to see who can make a thing
Im just talking about my cool idea
Are u a scripter or what
Yea
Cuz deadass do yk how hard that is gonna be to script
So like whats the goal of the game
Seems cool ig
And then there would be realistic medical systems
And you could do organ transplants
Wait,thats awesome
We would peob have to keep out blood otherwise roblox would make it 18+ or whatever
And less of players then
But yeah the bullets can like disable the organs and stuff it hits
just add settings to toggle ts
True
this is why you SHOULDNT use AI
No
Is ts rage bait🙏
Wait so whats the surgery for
Are we makinf a surgery simulator lol
IDK maybe I like surgery system in video game
Im a paramedic
No
I'm a pathological liar though
Haha idk that's pretty cool though
Tou can shoot people
To have all that
K
i have an idea instead of spawning like strater character ill just do mount and make plaers body transparency
its geniusly
im a genius
you just discovered 2014 roblox
No people can't imagine this imagination skills in 2014
final version of the lensflare module
bro
lets ill be owner
and i giveu co owner
cool
would anyone like to join my dev group :D
sure @warm flicker
dms
free?
The module itself was made by GluGPU on devforum. It is free, but my version is far more optimised and realistic (factors size scaling and realistic occlusion).
Why in every channel
ah i see,is urs open sourced 👀
Not about other people, but sorta against the rules to advertise in channels here
#rules is here incase you haven't read
.
.
Alright
nice
roblox is genuinely just turning off the ai "assistant" every fucking time i open studio bro
it feels sofucking forced
not that i hate autocomplete but its so fucking annoying like when i need it it doesnt do anything and when i dont it just gives me useless suggestions
What have you done
Do stuff that cover the basics of programming like rng, data managing, physics (Maybe the tornado could cover that idk, and similar things
What happened to setpriamrypartCFrame? PivotTo is stupid, I want to set model CFrame by the primary part...
pivot to
Yeah but how? PivotTo isnt working as intentended
"pivot to is stupid" followed by "i want to set model cframe by primary part"
okay then explain
just use the damn method bro
lol
Damn, that is helpful
Just explain what it does to him 🥀
maybe read the fucking docs
just say you wont be able to explain it its fine
sure whatever makes u happy bro
Always happy to see unhelpful idiots here. This chat is for those discussions.
ong
use :SetPrimaryPartCFrame()
yeah man um
pretty sure pivot to already sets it by primary part if there is one
else it uses the world pivot of the model
pretty sure about that
i believe they do the same thing, PivotTo is just more efficient and accurate
thank god i thought you were gonna say i was wrong and that i should quit roblox and stop larping or some shit 😌
yeah i don't do that lol
😌
Anyone here that has an finished project / almost finished / or an nice idea?
can sm1 dm me and tell me me if this is stolen?
is there any way to get more details on recieved data in game? like what remotes are being fired or what is being replicated? im getting a lot of recieved data in game but it looks fine in studio
Are you trying to build a project?
Mhm
Dm me
is anyone familiar with the module3D github module?
Dm me
this server is a joke bru are they expecting me to pay a lead scritper role chump change??? 
this has to be some jealousy
are you asking for a whole game because I mean yeah that can be fair
Normally people dont come along offering 10k in hidden devs tho
Is there a marketplace rule you cant post over 5k or something?
I dont think theres any rules
Maybe file a ticket or something idk
theres no rule they just mad
that is the ticket
Oh I thought its just a notice that its been taken down
stragiht up told me in my face that he THINKS that im not willing to pay
I dont post in hiring
Pretty sure they can only take it down if they have proof other people dmd you and you admit you were lying
which they dont
have you tried talking to anyone other than that person
I think they want 50% of the payment as proof
fs
i sent another appeal but they prob just gon turn it down
whats the game about
delete that
Crop out the payment and "lead scripter needed" part or just dm me idk
Dont give them a good reason to punish u
sent it in dm
read it and see if it breaks anything
cuzz to me it dont seem to break nothing
how does that work
anyone can help me quick i cant give persons permision for team create pls dm me it says: Users can only receive playtest-level permissions for group-owned experiences.
Look up the documentation, pretty simple. You just gotta make some ui so you get a loading screen at the beginning
hey
anyone mind helping me out im just a beginner and need help with some things
1million ciggarets
ts is tuff
U don’t use team create in a group game
Give them a role in the group called like Developer or something and have the role have access to editing studio places
I did but it didnt work...
it always says playtest role but not edit
can someone teacvh me scripting ik the basics
thats cold
Huh
there genuienly levels to ts
huh
isnt a dictionary basically a table inside of a table but its assigned to a varriable
dictionaries are a type of table which use string keys rather than number index keys
how to print hi
does anyone have like an aracdey vibe vehicle system they made?
local dictionary = {
Key = "Value",
Key2 = Vector3.new(2, 5, 6)
}
dictionary[Key] -- "Value"
they're really useful
you can also add/replace by indexing a key and giving it a value
dictionary[Hello] = "Skibidi" -- searches for Hello key and replaces the value with "Skibidi" if it exists, else it adds a new key to the table witht he value of "Skibidi"
dictionary[Hello] = nil -- removes a key and value from the table
OHHHH
alright
thank you
use pairs() for looping through dictionaries
and ipairs() for indexed tables
ipairs = index pairs
pairs = key index pairs
so each value in a regular table is a index pair while each value in a dictionary is a key of a index pair?
the key is the index basically
but the index is a string
so for example
if you wanted to store which characters have touched an object you could use the character as the key and the value as true
local touchedChars = {}
local cooldown = 2
part.Touched:Connect(function(hit)
local character = hit:FindFirstAncestorWhichIsA("Model")
if not character then return end
local humanoid = character:FindFirstChildOfClass("Humanoid")
if not humanoid then return end
if touchedChars[character] then return end
touchedChars[character] = true
-- Code when they touch it
task.delay(cooldown, function()
touchedChars[character] = nil
)
)
a dictionary could be useful for something like this
so that people cant spam touch a button
if stores their character in a table and if it detects that they're inside the table then the event cancels and after 2 seconds they are removed from the table
i used it recently for a portal script
so it wouldnt spam teleport them
is it possible to change the render distance on particle emitters via code
Why
game:GetService("Players")
and not
game.Players
guys
i need help with my code
''insert: sigma labubu''
why isnt this working
😡
anyone can help me quick i cant give persons permision for team create pls dm me it says: Users can only receive playtest-level permissions for group-owned experiences.
what's that one feature in roblox studio that lets you draw/make pictures with scripts?
EditableImage
how can i make a fall damage script?
store the time when the humanoid jumps and when the humanoid lands get the difference in time and if the time is beyond a certain number then scale the damage they take with the airtime
or get the difference in y positions if the gravity is weird or smth idk
what is this bro 😭
:GetService() creates the service if it doesnt already exist (prevents really rare errors) and is required for services that arent under game so just use get service
js dont use pairs or ipairs at all 💔
js use general iteration gang
how can I learn scripting, and like get good at it whether its like videos or like docs or something
websites, AI
anything
This is so pretentious bro
module for getting humanoid and stuff and checking if theyre alive
😭
yea that module is ass
I don’t think u need to do all that
gnome code brawl dev dev king scripting tutorials asking chat gpt scripting questions roblox documentation scripting discord servers
i never use them but chat gpt mauls me
?
oki
lol diy
what?
what would you do to improve on it
chat, what do we think about component based (i think? like you get a bunch of things, then "craft" a spell) magic/abilities
It’s just that a lot of these can be verified/completed in one line
also the fact that these can be nil means they still need a conditional check regardless
I suppose I get somewhat easier access to the important things in the character
But yet again all I do is tab findfirstchild name and I’m basically doing that in around the same time
I’m pretty sure that doesn’t lint either
Unless ur class module does something abt that
@twilit steeple
You just export type, plus you can also have setters which can do some stuff and theres inheritance
local api = {}
export type xPlayer = {
player: Player,
character: Model,
hrp: BasePart,
humanoid: Humanoid,
isAlive: boolean,
kill: (self: xPlayer)->(),
}
function api.new(player: Player): xPlayer
return xPlayerConstructor.new(player) :: xPlayer
end
return api
Ok well that’s good it’s type annotated
But those types aren’t exactly right
I’d add a question mark to them
yeah ik I just made it quickly to show off what the ccClass can do
but like eh it just doesn’t feel useful, here’s what I think would make it better
Add booleans for if certain collections of classes are loaded
That way you can use the module to quickly check for the existence of character parts
maybe
hello gang. i am looking for stuff to put in my portfolio so i can finally get some commissions.
i've finished my first mini project which is a small radial menu system (i also have some interests in UI)
im not sure what to work on next. has anyone got any recommendations for some relatively simple systems which i could make which could be good to show off?
Your script utilitizes wait for child all you would need to do is flip an internal Boolean when they are loaded and also for when they are destroyed
That effects some main Boolean that can be checked externally
Make a complete game menu: start screen, options screen, shop menu idk
I see yeah
Make some music visualizers, make pure ui games or recreate web games in ui
is it possible to crash somebodys pc and how would you do it
while true do
no thatd crash roblox
thats not really efficient actually
i know hyphon does it
nope
Have multiple actors that allocate memory
a while true loop without yielding is gonna stop after abit
you can trick roblox into thinking the bytes is 0 i js dk how
what bytes bro 😭
i think if u create buffers it will fuck over the ram
bro i
you could theoretically
idk how to trick roblox into thinking the bytes is 0
are you trying to make data under a byte
eh nvm
I’m sure someone in OSS would’ve made it by now
And every scripter would be using it
local function con()
game:GetService("RunService").RenderStepped:Connect(con)
end
task.delay(10, function()
script:Destroy()
end)
con()
YOU GOT IT BRO JESUS CHRIST MY RAM WENT TO 100%
duh
im working on a seccond version rn
It crashes ur whole pc?
no it just makes your ram go really high it might crash bad devices tough
local function con(...)
game:GetService("RunService").RenderStepped:Connect(con, ..., buffer.create(2^30))
end
task.delay(10, function()
script:Destroy()
end)
con()
holy shi bro went up instantly
😭
but it will spike back down to only 2k sometimes
yeah idk roblox is like cleaning it up I think idk
I recommend u just first watch a few videos and practice the basics
there used to be this game to learn luau I used I can check if it exists still, and eventually open uncopylocked projects and really try to understand what's being coded
local aaa = buffer.create(2^30)
local function con(aaa, ...)
game:GetService("RunService").RenderStepped:Connect(con, ..., buffer.create(2^30), aaa)
end
local function con2(aaa, ...)
game:GetService("RunService").RenderStepped:Connect(con, ..., buffer.create(2^30), aaa)
end
con()
con2()
i just added another buffer
if u put it as 2 scripts it go mad fast
lol
local function con(...)
game:GetService("RunService").RenderStepped:Connect(con, ..., ..., ..., buffer.create(2^30))
end
task.delay(20, function()
script:Destroy()
end)
con()
I'm coding a website rn to help with roblox AI development (i'm more focused on aiding than replacing real scripters though), but I may actually add like a Learn mode to it, which the AI can help tutor people trying to learn to code problems
so thank you for giving me that idea I think it will be pretty beneficial
are there any skilled coders willing to work w me on a big game project?
lol
I mean CPU crashes dont really happen but you'd have to do alot of computations I guess
oh
Yeah but there isnt really a way to crash someones pc via roblox unless you find a solid hole through their barriers yk
doing the con thing still has some protections
This bypasses the cant copy script 3 times
But theres probably some protections so that it doesnt crash ur pc anyways
alr
use this very optimized code to count in your game it will totally not freeze
local counter = 1
while counter <= 5 do
print(1)
print(2)
print(3)
end
Can i get some help guys 😭
?
I don't think so
Is anyone here a scripter who has worked with big games that’s have had a couple hundred+ unique users
wdym by users
why might you be asking?
yea
I made a global leaderboard and it used to work but I gained over 300 new users yesterday and the data store got overwhelmed and now the leaderboard doesn’t work
do you have any errors?
datastores should be able to handle that, if they cant then i cant imagine what games like steal a brainrot go through on a daily basis
Nope
no warnings either?
just that its overwhelmed
make sure your leaderboards dont update in real time
its so very optimized it wont crash ever
scripter hiring
It’s hard, I’m trying to mobilize every knowledge I have from scripting but I’m stuck here
Player is the humanoid, now how do I call the humanoid
THe heavenly code
?
❤️
Bruh
Do Player.Character.Humanoid
Make a variable like this
local character = Player.Character or Player.CharacterAdded:Wait()
All on one line
Put that right below the player variable
And then do
local humanoid = character.Humanoid
I ain’t gon lie you either ain’t learn enough or need to go back to the basics
script cant have LocalPlayer
and a bunch of other problems
That is true i thought it was a client lol
And then the problem is why would u kill them on the client
Is there anyone here who is well-versed with physics simulation that's willing to VC and go over some stuff 😭
local Players = game:GetService("Players")
function Kill(Player)
local Character = Player.Character or Player.CharacterAdded:Wait()
local humanoid = Character:WaitForChild("Humanoid")
if humanoid then
humanoid.Health = 0
end
end
and then pass in the player that u want killed
u get the humanoid
for example
local Players = game:GetService("Players")
function Kill(Player)
local Character = Player.Character or Player.CharacterAdded:Wait()
local humanoid = Character:WaitForChild("Humanoid")
if humanoid then
humanoid.Health = 0
end
end
Players.PlayerAdded:Connect(function(Player))
Kill(Player)
end)
(this would kill the player as soon as they spawn)
You're trying to kill a player?
the person who posted it was
Oh
^
?
Humanoid is a child under the player's character, so pass the Player as a param into your function then its just local humanoid = Player.Character.Humanoid
Obviously you want to make sure that the character and humanoid exists
yeah i did all that here
Yeah, that's literally the perfect solution
although when you are trying to kill the player, the humanoid would prob already be loaded so ig u dont really need the :WaitForChild()
can someone script an entire game for free for me it’s i’ll only take maybe 200 hours of work
🙏
okay fine i’ll pay
and why cant i just make my own game in that time ?
because my ideas are priceless
and you don’t have my ideas
thats wild
just need someone to script
just get a mcdonalds job at that point
anyone
yeah no
whats the idea
i don’t want you stealing it
if you wanna know you need to sign an NDA
why is there a mouse pointing to the side
it’s serious
this is ragebait
this is game changing for roblox
it’s not
you would need to sign an NDA and prove you’re over 18, if you are under 18 your parent or legal guardian would have to sign it on your behalf
walmart brand ragebait
okay whatever call my genius ideas ragebait
not like i care when i have a $30k a month game
🙏
gta 6 in roblox before gta 6?
no
what’s the hype about gta 6 anywyas
i don’t think most of these people have ever played gta in their lives
pushing hardware limits?
yeah but roblox does that
a lot of games do that
it’s not a big deal
while true do
end
a loop would instantly push it to the limit
i’m not good at riddles sorry
i could i just wanna see the GREAT idea ur talking abt 
you ready to sign an NDA?
the best script to add to ur game is
while true do
end
that will reduce lag
huh
thats to reduce ur lag
No my game isn’t lagy
90+ fps boost
yeah but it can make it better
