#code-discussion
1 messages · Page 121 of 1
does anyone know how to make the default inventory system not look dumb and not blocky
add this to the one i already got?
that is the same thing
just clone a template UI slot you made for each item in your backpack
when i remove the v:Clone().P and replace it ti shows even more errors
ok
here an fixed example
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
-- iterate through your template values
for _, v in ipairs(script.PlayerValues:GetChildren()) do
-- clone and parent to the player
local clone = v:Clone()
clone.Parent = player
end
end)
.P doesnt exist in luau
yn 💔
whats the concept?
print("hi")
return "Awesome"
end```
I dont really understand what is return for ?
local result = hi()
print(result) --will put "Awesome" in the output
awesome like aawesome
i have multiple moving parts and i wanna check when the parts are in range of a POI but im not sure how to do that without lagging out the server, could anyone give me some advice?
making conversation systems is so weird, handling events, when you get a certain dialogue and when you don't is just a headache
it literally wont lag the server unless you go to thousands
it just wont
loop through all parts and check the distance
is this rage bait
can we ban chatgpt code
what is the difference between = and ==
...
= is used to set, == is used to compare
okk ty !
someone knows if there is a roblox method to do this? putting the relative position of the main model childs from the main model for the humanoidrootpart
no tengo muy claro que quieres hacer pero. Debounces[Humanoid] = true, se te olvido el =, luego arriba cuando le asignas valor a Humanoid en los FindFirstrChild escribiste mal el String de Humanoid y has puesto Hitbox:Destory en vez de destroy
Te lo agradezco
this code runs through all the descendants of an altered object and restores the properties of the same descendant in a set original object, is there a more effecient way of doing this? like maybe running for loops in parallel through both objects but i dont know how to do that so please enlighten me <3
local Altered_object = workspace.Object
local Original_object = workspace.Object_Copy
for i1,v1 in ipairs(Altered_object:GetDescendants()) do
print(v1)
for i2, v2 in ipairs(Original_object:GetDescendants()) do
if i2==i1 then
--sets altered object to original object's properties
print(v2)
break end
end
end
How do I scale a GUI for mobile and pc because AnchorPoint just anchors the location, but it's still massive on a phone?
Don't use offset. Use size.
so Size will also change according to the screen size right?
Size scales it based on the device's screen.
Aw geez, thanks error maker.
I'll go ahead and fix this super ambiguous error
ok thanks
Offset will change it based on what you set it as and will always remain that size.
Remember, Size only goes from 0-1, 1 being covering 100% of the screen.
Noted
offset is by pixel which also means that things will look different depending on the screen resolution which is important to note cus on pc some people play on windowed and some people prefer fullscreen
the output and result
Need some help. Got a loading screen that stops the game from running until all the objects in "Workspace" are loaded. It uses the "GetDescendants" function. The same script also fixes the camera to a certain position once everything is loaded. However, the loading process for some reason doesn't load individual parts and selectively loads others. What did I do wrong?
You seem to have misunderstood what PreloadAsync does
PreloadAsync yields and prioritizes asset contents
So for example the contents of an animation, image or a mesh
It does not guarantee that the GetDescendants call done before it will actually return a table with everything
use game:IsLoaded and game.Loaded before attempting to preload content since it makes sure all initial instances exist
but you shouldn't do this at all
I got this through following the dev forum.
but that was already at the top just before it fetches the descendants
I found the issue.
Turns out the area for the camera was out of range based on where the player spawns
moving it closer fixed it
I found that sometimes things in workspace don't load if they're far away from the camera
Found that out the hard way 🥀
fuck sake now i need UIs
and i really cba 
this code in my module script gives me an error saying "private_funcs" is an unknown global
local private_funcs = {
TweenToTarget = function(instance:Instance, target:Instance, tweenInfo:TweenInfo)
--does something
end,
TweenDescendants = function(instance,target,tweenInfo)
private_funcs.TweenToTarget(instance,target,tweenInfo)
for i,v in pairs(instance:GetChildren()) do
private_funcs.TweenToTarget(instance,target,tweenInfo)
private_funcs.TweenDescendants(v,target[v.Name],tweenInfo)
end
end
}
You're trying to call the function inside of the same function
It needs to be called seperately
atleast that's what i know
declare private funcs before initializing it
for example
local private_funcs
private_funcs = {}
no it doesnt i tested it it works!
i realized this right as you were about to tell me lol ty for the help regardless! <3
whats a libary in scripting and where do you find it
Roblox says its a "Group of functions that you can use to manipulate built-in data types"
Basically a library have things that are already made and you can use them
Roblox OSS community, dev forums, github
thanks bruh
Also you can find all libraries in documentation
a library is just a open-source piece of code that does something
aint git hub for web development
github is for all sorts of programming/scripting/coding whatnot
it's a repository for all types of code (open source or not)
but I'd say unless you NEED a library don't use one
don't increase your codebase's complexity until necessary
local StarterGui = game:GetService("StarterGui")
local UserInputService = game:GetService("UserInputService")
if UserInputService.TouchEnabled and not UserInputService.KeyboardEnabled then
pcall(function()
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Mobile, false)
end)
end
Why isn't the jump button going away?
For example: Library math contains math things so u dont have to make it from 0
Or sometimes the library can access thing you cant, like the os library, for example you cant manually access the clients local time, but using os library you can access to it
TSS ass
This ass lock in
why
does anyone know how i could make attachments for an fps system?
a bit unspecific
ohhh alr thank you for informing me
Add a parabola to the 6th line that states “if gui then gui = gui”
let me try that.
hey everyone im just starting out in learning luau / roblox scripting. Ive previously programmed in C# and Java (up to CS3 at uni) and im wondering if anyone has any advice / resources for learning the language, tysm
if you know a bit of python then this is easy.
and also do a bit of research on studio additions
if you learn best by videos, i recommend brawldev on youtube, if you learn best by reading, you can use the roblox documentations
luau is somewhat different from lua
What do you guys think about squid game season 3?
so learn from luau related resources
guys please go to #code-help to stay on topic
GI HUN IS A BUM!!
unsatisfying ending, tons of major plot points left unresolved just to milk the franchise for another spinoff
CGI baby could solo the games
WHY? 😡
4 years later
WHY? 😨
Yeahhh I think that was like since season 1
shouldve shot him right there
season 2 was like a little planned but then they changed it to drag on
i actually liked s2
S2 was the funniest shit ever
the outside games part was really well done
WHY DID YOU LET ME LIVE!!!!
all of the night club and mafia thing
I dont think the S3 ending was terrible I just wish it was a proper conclusion to the franchise
i dont like how they milked it for another spinoff
S3 CGI was on point
rebelion was goated too
i mean like it's better than using an actual baby
I loved shiny baby with linear movement and dead face dog
using a baby for squid game would be pretty unethical
What is wrong with dragging logic
Worthy sacrifice for my entertainment
btw squid games ending this way actually disproves their point, humans are greedy and evil so they decide to continue the squid game series for more money
instead of giving it a proper conclusion
real
but, I think the ending with gihun dying wasnt bad
i do not know
if he didn't sacrifice himself for his baby, he'd end up like the frontman
Why are you adding start pos
Could've been season 4 smh
What is the best way to learn scripting ?😭 🙏
i think its terrible and going against s1 and s2
Is that the issue?
his goal was to STOP the squid games entirely
Brain
he stopped it in Korea
Brain is the best way to learn scripting?
Yes
could always rebuild or have more sites
That's what the spinoff is for
Bro am serious 😭
The software called brain
You an ai designer so that makes sense
Just set the frames position to the mouse’s position with an offset of your liking. I’m confused on why you did all those extra steps
ty
You’re welcome


i asked in interface and they genuinely got mad at me
How can you change the rigtype properly?
print("toggle rig type been set to...", Other)
local humanoid = GetPlayerData(Player, "Humanoid")
if humanoid then
local SetPerimeter = Enum.HumanoidRigType[Other]
print(SetPerimeter)
humanoid.RigType = SetPerimeter
end
What happens: Player dies when I select the rigtype to swap to, swapping to the same rigtype does nothing
I want to learn coding lua any recommendations or help?
oo
guys a scripter does not need UI to be fully scaled and positioned to script it right?
idk##
anyone goot with combat system logic?
no but it is always useful
alr ty man
its just a light? so I guess its good? I mean you dont show us the scripts so we cant judge it really by any other means than you gaining a tool and holding it out a few times
ohh
i used 4 scripts, wanted to have icons but didn't work
im just learning
let me show
the best in everything got there because they worked harder than everyone else. What you're doing is only spread your ignorance and annoying people who come here to learn and stay in a professional environment.
Your existence here is beyond useless
I get better help here than in code help apparently all they do is insult you. Can someone tell me were I went wrong? (Yes, API access is enabled)
Just be active later. Now is the time that people of different timezones that are both in HD and RSC are active
And since RSC members are all crackheads you know theyll bring crackhead energy here
almost 9pm for me, and I don't fancy doing this at 3am
I believe that it's possible for data to be nil but I'm not sure. Can you print data to see that all the values are there?
Show us the lines of your script. One of the data["STUFF"] is nil
It can be nil if nothing was setasync to it?
I think so
Read it wrong mb
not sure but wouldnt PlayerData:GetAsync() possibly return nil?
There is no data["SelectedChar"] whenever you are gettingasync you must always do something like
Level.Value = data[Level] or 1
Incase it is nil.
If you already had data saved, remember that it's case-sensitive (e.g. getting 'SelectedChar' would be nil if 'selectedChar' had the saved value)
yeah
U suck skid
ragebait
You can write your topic however you want, but you need to answer these questions: What do you want to achieve? Keep it simple and clear! Fix My projectiles so they can have a trajectory What is the issue? Include screenshots / videos if possible! So i have a projectile system in which when the client fires an event the server launches a...
someone help me out
i beg
Are the parts massless?
yup
also am sure that the issue comes from the mesh parts cuz if i remove them it works properly
but idk what exactly
already checked the welds
they're all properly welded to the Main part
well thats what i think too but i dont see anything wrong with them
It works well with welds, so I think you should delete the current ones then try welding the meshes to the main part
i have a problem some times module scripts functions work normal but dont print debug lines
thats wat i did
Did you do all mesh at once? This usually works for me
I made an artillery system but it just... I just try to align the projectile (its similar to a cylinder) and it automatically follows the trajectory
Then I realized that the projectile itself affects how roblox manages its physics
I used a cylinder and all good, but when using a cube then all broke
I think you cant do nothing about it
I came here also to ask if there is impossible to change the mass of an object
Because there is two options: Massless or with mass
But if I want to have less mass but still having mass?
Or have more?
I found in documentation a thing called "Density" that you can modify and it affects the mass, that you can modify by adding a "PhysicalProperties" object
Oh and this is the result, I changed the projectile but idk what happens with curve so, I have to modify that
isn't the curve based on the mass of the object and the force applied?
wait nvm didnt read enough
yo anyone got any tips on how to learn scripting? or any methods that helped yous become good and professional at scripting???
I think the easiest way would be to add a system to aim upwardsa
learn python i think its a good starting language
why would i need to leanr python if roblox uses lua?
just so you know how programming languages work
oh
they might be different languages but the all do the same shit, just written differently
well, not all
but trust them
cause i skipped python
but i dont really see the impact of it being helpfyl after switching too lua
its just different formats:v
well then go to learning lua
and this is how i set custom avatrs selected from a data store 🥀
i am and thats why i asked this question
.
Read up on articles on the dev forum
ok thank you
learn a lower level language instead if you want to learn how programming works
but its not that necessary for roblox
u should learn some computer architecture tho
and how code runs and then just learn algorithms
well i already learned like simple scripting code in lua already so idrk if i should learn all of them but if its neccasary then i might
all of what
mistype mb
i type fast so
ill prolly just stick to lua since im only focused on rblx and not the progamming itself
How exactly would one go about making a barricade destruction function for an AI
Not looking for code really
Just a way to lay it’s functionality out
path find to target (ignoring barricades), check for barricades in path (or raycast in front of the npc while it's moving), once reached, destroy the barricade, then continue path to target
Taking about once reached
Would’ve asked for additional if that’s was the goal
I mean the functionality
Should I just destroy one then have it repeat until each one is destroyed then return true or what?
I’m using an ECS do keep in mind
what do yall think of this?
what's an ecs?
Look at matter on GitHub
thx
im getting something about networking
module scripts scripts on the dummy and starter gui
Oh ok
anyway. idk how that would effect the logic of your code. it seems to be more data related (from what i saw)
but yeah, when you reach a barricade, and there's multiple parts you want to destroy one by one, you would loop
If you’re not bothered to do research don’t bother to suggest
did you NOT just post this earlier
its different now look at the full vid
insane backshots
Script Build ui I have talent, I am open to all kinds of job offers
This looks like stolen content to me
It all belongs to me, I have done a lot of work globally.
Asset can be controlled, no problem, I did it all myself, the person can clearly see this in the job offer.
No? Don’t think so
why doesnt this work then? i tried asking chatgpt and it said that it only works on r15 rigs. (no errors)
Character is an instance that has a humanoid btw
same thing lol
Not really
Have you tried to print a?
yes (HumanoidDescription)
Then somethings wrong with your application then
hm
for some reason its printing empty for HatAccesory (even though i do have some)
for some reason everything is 0 😭
I can make any kind of system.
yo, this channel is dropping a series on how to dominate faang competition in a three part series, like and subscribe to learn how to get a job https://www.youtube.com/shorts/qYIs4fJMiTw
Make sure it’s on server
I think that function only works on the server when I’ve used it
the problem was the humanoiddescription is empty
i dont feel like setting it myself so ima just die write a function to auto update it
Anyone know how to stop my UIs from resetting on death? Disabling "ResetOnSpawn" does fuck all now apparently
You can try to save it on death and load it back
guys how i change the color of a caracter on a text gui? with scripting
But I bet there is a better way but rn idk
TextBox.TextColor3 = Color3.new(R, G, B)
no have each caracter have different color
fucking hell uh
You can use a gradient
yeah that
Is it a text box?
I was abt to suggest the harder way 🥀
lol
Make many different textboxes 🥀🥀🥀🥀
Use RichText
no not that, basically the same way you can coloiur text on mc signs you can do on scripts
it's just a fucking headache
😮 how does it work I’ve never used it
what i mean is this
https://medal.tv/games/roblox-studio/clips/kCrY6QJOSCIK4V30f?invite=cr-MSxUY0osMzEzMDUwOTA5
Watch Untitled - Copy by GirlfriendGaming_OFFICIAL and millions of other Roblox Studio videos on Medal. Tags: Roblox Studio
when you die the menu pops back up
"ResetOnDeath" is disabled
Basically you can use this as a string
Hi, <font color="rgb(255, 0, 0)">this is red</font>
And then only the "this is red" part is red and the rest of the text is the textcolor3 color
Like u want to move the camera back?
so idk what to do without deleting the UI from StarterGUI
Oh yeah nvm I’ve used it I just never knew its name
Wait I don’t really undstand
No this, it goes away when the screen fades to black, disables, but enables when you reset
U want to hide the menu?
And roblox is no good with explaining its new features
You need to enable it when they respawn not reset then, right ?
like the fuck is a layer collector
Man idk
ResetOnSpawn is just a property of ScreenGuis I think
And ScreenGui probably just inherits from LayerCollector
Whatever that is
🥶
Yeah it's disabled so it shouldn't reset
no
Like .Enabled = true
Ah maybe I'm dumb but I think Folders reset on spawn always
Try moving the gui out of the folder
lemme try
why get children why now getdesencetnd
what
@naive meadow thats your username!
you using the new IAS?
did you read its forum post?
not really nah
Hi Creators! We’re thrilled to bring you our new abstract Input Action System (IAS)! This new approach to input provides you with several new instances you can use to connect to input actions and arrange bindings across platforms at edit time. Those, combined with contexts, allows you to easily configure and edit an input system in your game ...
what is that new input
its alot better than cas/uis for stuff like that
oh i get it
i never heard of it
it only 45 days old
oh i guess thats why
yeah
tbh i didnt know abt it until like a week ago lol
its kinda confusing tho
you only use uis to change to first person
how did y’all learn coding like how did you start out
oh ok
alvin blox like 9 years ago or sm
oo
Yes
dm's brodiee we finna get the bag
chatgpt like 6 months ago 
i started 3 years ago but relly now getting the hang of it i used the devking tut
we?
oh alr
you
this was it
we all start somewhere
thanks
Dude his tutorials were the best I learned from him too
no problem 👍
Yes WE Check the dm's this not a average conversation nor situation.
i know a bit rn
i have some holes somehwer ebut thats why documentation is so good
yea frr
im good g
the roblox doucoumetions
im already making money lmaoooo
thas what they all say
jus ego
make u feel tha way
if u tell me u ain strugging tryna get bread in 2025 you a dam fuckin lie
i still got ways to improve though 🤷
i dev ex 1m 2m everytime i check u show my dev ex rn
damn 🙏
wait is that like the flash video in your bio you know that one good vs bad flash
Bru I got 1.9m visits then game fell off to 0 active 😭😭😭
Do yo research on JamariTheshinobi on youtube or South Central roblox we do this shit frfr 🤣
maybe i have a job 
Bro what does job stand for
right....
just over broke
im employed😨
you can't rich off no job
@charred jacinth The Flash ⚡ Zoom - Monster is that video in your bio
a job is there for u to get the higher bag and better income
yuh
a JOB is supposed to start u off.
But you don't jus settle with a job and think its all figured out no.
yo i watched that as a kid
i go to work 
with my cousien
my mother gets paid 70 a hour and still look for more ways for better income
So miss me wid ts
i dont have to support a full family 
70 a hour
u lookin in hidden devs for scripters thats all i gotta see
neither does she we grown
she dont gotta support us no more all that money for her
and she still tryna get more stop looking for excuses
@clever bane w mom man
That's a start.
im not tho lol
just saying i have a job doesnt mean im not looking for ways to get a better job lol
what u mean
well I dont code i the brains of operation I done work with coders through numerous projects.
I hire coders and we split revenue get the money
Right now coders is the gate way to what I am attempting to get back
I jus got outta jail so that's why I am here rn
But i done ran up more money then a trap house off roblox
Coders is the gate way of how to do that so yall are like rare pokemons
thing is coders have the skill but not the brain power to blow.
So thas why majority of coders working under people with the GREAT IDEA
Right now if you're a coder you have the ability to be set for life jus don't know what to do with it.
😭
now instead of a single display buffer i have 6 separate displays witch should make adding multithreading easer
Can somebody help me out with this? I've been trying to make this little system where when I join the game a system message would say that I joined, but I can't get it to work.
make it faster 🙏
make it a gui not chat so its easier to build molecular structure
thats what multi threading is for 🙏 and also the speed was for show
thats really tuff 
Thanks for giving me the idea for my Minimap Camera, I'm enlightened
unless you use an updated version of canvas draw its a bit slow for a mini map
Is this yours? incredible
There will be a certain part of the camera on my character, I will reflect it with the Minimap, it will be like your perspective.
so an isometric perspective camera
yeah this is the latest version currently v4.3
looks awesome!!
Yes, you got it.
Hey, could somebody take a look at my code and check why it's not working? I'm trying to make it so that when I join the game, it's going to say in the chat that I did.
My apologies, would you like me to send it to you in your dms?
You’re free to send it here
Okay
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local OWNER_USERID = 1953673584
local remote = ReplicatedStorage:WaitForChild("OwnerJoinSystemMessage")
local function onPlayerAdded(player)
if player.UserId == OWNER_USERID then
remote:FireAllClients("The owner has joined the game.")
end
end
Players.PlayerAdded:Connect(onPlayerAdded)
for _, player in Players:GetPlayers() do
onPlayerAdded(player)
end```
local remote = ReplicatedStorage:WaitForChild("OwnerJoinSystemMessage")
remote.OnClientEvent:Connect(function(message)
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", {
Text = message,
Color = Color3.fromRGB(255, 0, 0),
Font = Enum.Font.SourceSansBold,
FontSize = Enum.FontSize.Size24
})
end)```
ServerScriptService
StarterPlayerScripts
okay so. making a change on one script broke a completely unrelated script that has no interaction with it what so ever. The fuck is going on with Roblox?
Made it so one script changed audio volume, and now my other one no longer kills the player? 😭
like, why the fuck is this line just skipped and the rest go on no issue?
Roblox killing is really weird, I once had a server script that changed ur health to -9e9 and changed ur state to Dead and on heartbeat and it STILL didn’t kill me and just made my health lower than 0
I didn’t have the time and you gave me a vague thing to research instead of just telling me what ecs stands for which I can then research
someone rate my website , its meant for helping beginners: https://linkolla.com/scriptforge
A comprehensive script library to browse and access code snippets and automation scripts across various languages.
Matter specifically is the use case here
ECS = Entity Component system
A box that holds other boxes that hold information
Think of it like that
I wouldn’t say ECS is vauge
If you just type ecs in you’ll get videos about it
Usually if you’re given the acronym it should be easy to find the word
can i have some help with my mana casting system?
im not sure where to put the manacost in the modules of the spells
where should i put it? the start probably right
GetService workspace is evil
😭 i havent a clue what im doing to be honest
Look at what the variable is named
I don't get it
Yo can some help me make a script where it auto gives you a plot
make a function that gives a plot to a player then just call that function for the player when they join
And how would I do that ik like how to detect when the player joins but the other stuff idk
player.character doesnt work cause thats the exact same variable as the old one
please help fr
Help, for some reason I tried blocking the ;gear command and it’s just making the gear command for NonAdmin. Please help’
I did get a phrase of the acronym. I wasn’t sure if it was the phase though. It’s whatever though. I never dealt with it, obviously, so I wouldn’t be able to help you with that. Good luck though
should i use unreliable remote events for sending mouse movement to the server
or should i use regular events
What is better? Attribute or creating value instances
Attributes
learning scripting rn
Depends on whether you want the info to be reliably sent or not. And that depends on what you’re using the info for
kk
fixed
anyone tryna make a game together'
i feel like staring at this editor theme would make me go crazy within 2 hours
real
Anyone know any good scripting beginner channels
yo guys can yall tell me something that beginner devs should know how to make?
Ngl
Just try to make something simple
Like s simulator
And research how to properly do things slong the way
wdym by this tho
Look at roblox docs/forums
I can 100% guarantee that any issue you face has been solved already
since the "experience" i have is just a yt playlist im sure lol
https://pastebin.com/BGYhNRDL
Guys will i pass the scripter role application this time?
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
tbh i opened it and saw all this complicated stuff wayy outta my reach
What u wanna do
Is
Find your specific problem and just type it into google
Like
raycast not getting player hit
issue, google, implement, repeat
oh okay
repeat for a decade and become an absolute god
;-;
real
@raven steeple Nice plugin, might have to use it at some point #1390292095591387178 message
thank you
can't compliment you too much since I'm gonna submit something later 😭
fair play 🙏
what are some common roblox frameworks? i know about rojo and fusion but are there any other i should learn?
Rojo is not a framework
I dont know if fusion can be considered one either
stuff like rojo and fusion
Theres like a bunch but almost all of them are commonly agreed to be shit
You can get like slight flavors of fusion
why even use them in the first place then
And then theres flamework which I have no idea what it does but I hear praise about it
Nevermore
Utility
Isnt nevermore a collection of bloat anyway
So if i want to add ragdolls to my game all i gotta do is npm i @quenty/ragdoll
useful to me
Is the ragdoll any good
If i spend hours working on code i want it to be usable anywhere
Look up who Quenty is 😭
I use one skidded from dev forum and its meh, I had to refactor it
I know who Quenty is
Rojo is seperate
I mean Seans Ragdoll Module is probably battle tested too and its kinda shit
And if u dont learn anything else i still recommend rojo
Conaidering its like the first result on any search engine
test it out for urself
In my opinion its good
Theres also Rx logic
I wish Roblox just released their anim constraints already
So stuff like observables with piping
Thats kinda cool though I guess
I dont really like rojo though so unless theres a plugin to auto import its not so convinient for me
lol i spent weeks trying to fix a stupid physics emulation cframe drift and the actual fix was just using Orthonormalize()
do yall do game.ReplicatedStorage or game:GetService("ReplicatedStorage")
arent they the same thing
use waitforchild 👍👍👍👍👍👍👍👍
ts game sucks
Can anyone help with my game i want save system
Do getservice it’s cleaner or more future-proof
local part = script.Parent
Is the capitalization necessary ?
yes. always (except in cases where you're naming something like a variable or parameter). lua is cap sensitive
ok tysm
you're welcome
guys when making a combat sys, for the blocking? how would i check if the aggressor is punching from the front, back or sides
part.Touched:Connect(function(hit)
print("Hi")
print("Touched by:", hit.Name)
end)
Is this code right ?
raycasts
test it
yeah but i dont think that would be too optimized
since i'd have to cast multiple rays
when a person gets punched and is blocking
raycasting a few rays for a few seconds wont kill your performance
if multiple people punch that person?
since like around 8 rays would be fired everytime a person gets punched and is blocking
pretty sure there is a different way
i imagine the raycasts would be calculated on the client. and the client can have a raycast every frame and performance wouldn't be an issue. even if it was on the server it would be fine
8 rays is nothing
i mean should i raycast it on the client or server
feel like server since if i do it on the client
there could be issues
cause the client character and server could be desynced
people could also exploit it. but i would opt for client since it's a better experience. you would make checks on the server though to make sure things are fine
stuff like the distance between the two players
How are you getting what side of the player is hit from raycast?
firing multiple rays in multiple directions with a set range
and if a ray hits a character well thats the side hes punching from
or calculate the angle between a single ray from aggressor to the hrp's LookVector of the aggresse
actually, it would be better if the raycast originated from the aggresse and pointed to the aggressor
yo guys i have a problem
when i tried to change Text Message Color's from textChatMessageProperties, it also changes the textColor in Bubble.
I've searched up on forum but people say its most likely roblox's fault
what am i supposed to do
nvm found a solution
guys why when I send camera to client it says that it didn't receive it any explanation
10:30:26.056 CameraPos found: CameraPos - Server - AuctionJoinHandler:35
10:30:26.121 CameraPos received on client: nil - Client - LocalScript:8
10:30:26.121 Invalid CameraPos received: nil - Client - LocalScript:18
for Button : TextButton? , Frame : Frame? & {ExitButton : TextButton?} in ButtonMapping do
Syntax Error: (35,36) Mixing union and intersection types is not allowed; consider wrapping in parentheses.

This chat is more tame and someone will probably answer eventually
I cba but gl
nevermind i found my problem.
thanks though
R local scripts not working right now? It’s bugged in my game
Might just be u
I’ve had zero scripts work when coding on alt accounts for some reason maybe you have the same problem
the ban appeal sent by dyno after you banned me from rsc isnt loading at all can you get your mod team to fix it or sum
?
what
basically
you banned me like 2 weeks ago
i tried appealing but the form isnt loading at all
but every other part of the dyno website loads
it has been fixed, ill send you the invite to the appeals server in dms
thanks
no problem
who needs someone to hire
everyone regrets 😭
Oh maybe that’s why
yes
anyone here has created a line game before can i ask some question
wdym line game
c'
I'm a brand new dev, I'm curious, how did you all learn to code?
other developers, and scripting programs.
speech bubble
Are their any programs you recommend, because I've just been watching rodevs playlist to learn basics
visual studio
code
Getting hacked in 2025💔
thats real
I'm 4 months in and my learning strat was brawldev but recently I jumped into a project with sm people to make squid game roblox game, so you should learn concepts from youtube/docs and then start a project to implement them
Okay thank you
how do i do to see if theyre is something in a dictionary like :
local dictionary = {
Patern = {
TheWait = 15,
Odd = 3,
Multiplier = 2,
Obtainement = true,
Apply = function(part)
part.Transparency = .9
end,
},
Oxidized = {
TheWait = 15,
Odd = 3,
Multiplier = 2,
Obtainement = true,
Apply = function(part)
end,
},
}
when i do if dictionary[thing.Name]
it will return false
and its the exact name
For a grid-based inventory system, how would you separate the logic?
Would you implement all the business logic, especially the data-related parts, on the server side, or would you rather delegate everything to the client?
In the latter case, how would you make the system resistant to spoofing or cheating?
If you've ever implemented such a system, I'd be really interested in seeing the details of your implementation.
Anyone know how to make custom prox prompts?
Everything important on the servrr
Server
Billboard gui
Yea but how?
Intuitively, I would structure things using a pseudo-MVC model.
I’d have a client-side controller that also manages the inventory view. It would capture player actions, and each action would then be validated by the server.
The main question I’m asking myself is how to handle redundant computations, such as checking whether an item can be moved to a specific slot in the inventory.
Who should be responsible for this logic?
I’m leaning toward introducing an intermediate module, positioned between the client controller and the server, that would handle these kinds of checks.
any1 know the max amount of scripts you can use with script-sync?
i swear there was a max of like 60 smth
Wait what's script sync?
beta feature
sync scripts to a file, you can edit that file in a third party IDE such as Cursor/VScode
all changes sync between
Gui button
Is it better than Rojo?
Sure you can do that
It has its ups and downs
One bad thing is you cant make scripts in the 3rd party ide, you have to sync from roblox studio
I don't like using Rojo because you can hardly import your modules. What about this one?
Isn't that what wally is for?
Tell me
Wally is just a packet manager, I don't think it will help me import my modules on any IDE
alr
How am I supposed to gain experience if everyone that's hiring is asking for experience and a portofolio
Ask someone for a partnership or make something that mainly requires scripting
Where can I find people that are lf partnerships
Roblox Studio Community or u can ask here if u want
Is there any way to join a specific Roblox server using just the serverId? Like through a URL or API?
? what do you mean?
do you want to print out all the properties of the table?
Rain.Position = Vector3.new(0, 15, 0)
What does Vector3 mean ?
is your part anchored?
also mobile coding is tuff
No I totally forgot 😭
Ye
how would i go about adding dynamic octree calculations to my game?
what should i know to start accepting commisions? i dont want to do a bad jobb
what is the difference with Vector2 or 1
or just dont use AI at all
not really it still hallucinates a LOT
and im talking about better AIs
not roblox's shitty ones
ternary operators in luau
thats just an example
out of many
what
umm so the thing is I haven't coded for a long, long time (about 10 months?) and I'm wondering whether there is a way I can recover or I should just start learning from the basics?
do you have an example? the term "ternary operator" is usually understood (as the and short circuit syntax) and question marks are part of type checking, or what did you see?
💀
where is this this doesnt look like the ai assistant in studio
sigh
Luau only has 1 ternary operator, if condition then iftrue else iffalse
and-or is buggy and not official

bruh
i generally agree roblox' current attempts at chat ai are pretty ass compared to chatgpt
chatgpt isnt much better
chatgpt is significantly better
i assume you dont have chatgpt plus
you can still use 4o for free
for general use it is definitely a help and for coding an "entire thing" it is 50/50 hit or miss but when it hits it often works flawlessly from the start
llms are not supposed to replace documentation for stuff like that you are supposed to talk to them like humans
you dont ask a coworker how to sum two numbers in luau you google it
you ask a coworker how they would implement xy addition to your current system and chatgpt is good at giving you pointers for that
sometimes it is capable of writing the entire thing for you
it is even worse at debugging or modifying code
nah it will answer such basic stuffs correctly. It will only start to mess up when you dive into something complex
trust me i used to be a chatgpt warrior
okay i dont trust you because i used chatgpt since release and know it was just a gimmick back then but is legitimately useful today
SO DID I
IT HAS ALWAYS BEEN ASS
at least now it can do VERY basic stuff correctly
i think your prompts or the bias in the way you talk is just throwing it off
haha your pfps are cats and dogs, ofc you would be fighting
i do this test all the time like give me one thing you think chatgpt cant make
i bet i can do it in three prompts or less
delete this
nah
delete yourself
did u expect it not to 💔
Absolutely
It hallucinates services all the time
i want to start learning script and i pretty much know all of the basic, i rlly want to find a person who could teach me code to finally make my own game
i would suggest chatgpt to teach bit
people say its bad
idk why but it teached me basics so well
Cause it’s got a lot of examples you can look at
If you know the basics then you can look at the Roblox documentation
Or there’s the new learn to make a game thing they’re doing
idk im learning more with questioning
yeah everyone learns their own way, totaly normal
What do you think about Roblox's PathFinding?
Personally, I feel like the waypoints are sometimes placed a bit strangely. And I'm not really convinced by the level of customization it offers.
But I’m not sure if that alone is enough to justify a third-party custom implementation.
I remember reading this topic back then, but I’m not sure how relevant it still is today.
Knowing how fast Roblox moves, I’d say it probably still is though xD:
https://devforum.roblox.com/t/custom-pathfinding-system/231741/57
make a hypervisor
is rojo still the most used tool that connects studio and VSCode?
I think so. But try this first: https://devforum.roblox.com/t/early-preview-studio-script-sync/3257548
We just enabled a [/quote] Today, we’re sharing a very early preview of the new file syncing approach for Scripts we announced at RDC. Our goal is to provide built-in support in Studio for working on your code as files, allowing you to use your favorite IDE and plugins in any Roblox project. We want to share our progress as we go As some of...
who wants a car racing system
guys the use of FindFirstChild() is if you want a partt o be in a variable you cant use the variable normally cuz its not in workspace right?
yes
dont use script sync
what.
im kind of new to scripting
ok but whata u said make no sense
why?
yo anyone know how i would make my characters left arm move the direction my mouse is pointing?
its a script syncing system instead of a game syncing system like rojo. it's also very primitive and lacks most essential features rojo has which boosts development speed greatly
mainyl also attributed to the goal of the script sync project being different
alright. thanks!
who want a car racing system
anyone know how I make something like this? A type able sign in you’re inventory
Surface GUI with text box
Yo chads, is there a downside in terms of game performance or optimizations when using collection service?
No it's actually better for organising a large number of objects
quite the opposite
Alright, thanks buddy!
No problem!
if anyone is making a squid game sort of game and needs a builder contact me in private
hi help I have a build mode system but saving my data with max 4 items take 1 minute, imagine players w detailed plots n they just leave what should I do?
a
idk what to code fr
A wife

what that suppose to mean
chat how do u handle if a player leaves but the player is the function and how to change the person stepping up to do the function and put thie rname in the fuunction
which chad knows how to make a custom mount and movement system
I might have played legacy a little bit
💔
should i use serialization to save data
yes if it needs to be serialized
yeah? i meant u have to serialize some types like Vector3 or instances like parts
what?
You have to use datastores anyway
guys my pig is just like stuck in this area:
im new to pathfinding so im just tryna make a model i have go around my farm
I’ve added a HumanoidRootPart in the middle of the pig and a Humanoid inside the model so it could move.
but i had to put a part in the pig and rotate it 180 degrees because the pig moved the backwards
I welded everything to the humanoidrootpart
u dont need pathfinding blug
it aint cul
well i wanna have an option for it to roam around its land, and also an option for it to follow its owner
do you suggest something else
make a cord randomizer along the land and use humanoid:MoveTo()
this guy is right
does anyone wanna work with me
on what
dms
no
yo chat how do i fucking force character to walk forward
by deleting side movem ent
and backwards
why
lmao just joking
😭
do u want it just to walk forward whatever it does
yes walk forward but you can like control it go left and right
just like a train ability from item asylum
yea
i think i know how to do it but i dont wanna give u missinformation
someone else answer this guy
someone please vro 🙏
@sour vine is typing...
local landzpos = land.Position.Z
local landxsize = land.Size.X
local landZsize = land.Size.Z
local hum = pig:FindFirstChild("Humanoid")
local randomx = math.random(landxpos - landxsize/2, landxpos + landxsize/1)
local randomz = math.random(landzpos - landzsize/2, landzpos + landzsize/1)
while true do
humanoid:MoveTo(randomx, *yourY*, randomz):Wait()
wait(2)
end```
i just wrote this fukah code rn gimi some credit
Would making it follow the player like that make it stutter or get stuck on objects
guys remember that you gotta check all user provided values for being invalid utf-8, nan, or infinity before saving them
yo
No it would just go to random positions
is roblox's pathfinding still not so good?
Im saying using the moveto function would get it stuck on stuff wouldn't it
I'd think the same thing but I'm pretty sure it resets after a while
local hrpPig = pig:FindFirstChild("HumanoidRootPart")
loal hrpPlayer = player.Character:FindFirstChild("HumanoidRootPart")
while true do
if (hrpPig.Position - hrpPlayer.Position).Magnitude > 5 then
humanoid:MoveTo(hrpPlayer.Position)
wait(0.1)
end
end```
Do you want to see an example of some code of an AI I'm working on?
There are some parts that could inspire you
I'm sorry wrong person
@viscid veldt
huh
If you are interested I'm willing to show you some of my codebase as an opportunity to learn
well i know how to script, i just have trouble with making character move forward
Just heads up but "huh" sounds kinda rude
u will have to make it CanCollide = false u dont have another option
I can't seem to be able to post the rest so here is a screenshot...
Like I told you a glimpse on how I make my AI move
What does this function do
nice
Which one?
The on in the ss
Better ss
It makes the entity move between two specific points using the Roblox's PF
No I'm just giving it for learning purpose
Since they were struggling to get their NPC to move, I offered to share an example codebase to help them out
its designed to make you watch the entity moving while ur pc is slowly crashing
Ohhh
Reminder:
Also, this is specifically designed for a single entity. For multiple entities, it could become resource-intensive you'd need to batch the behaviors
why put _ before the function name
Private
huh
Private function
Help, for some reason I tried blocking the ;gear command and it’s just making the gear command for NonAdmin. Please help’
It's a common naming convention in lua
any examples of when you would and wouldn't do that?\
It tells the scripter that the function is private and shouldn't be used or something
Tbh I should’ve made it a local function with self as a parameter I just did it out of habit.
Drop the sarcasm, and try to be more productive by pointing out what could actually be beneficial. I don’t think it’s resource-intensive, especially with only one entity. I ran performance tests using script diagnostics. The advantage is that the entity is highly resilient to issues that might occur, like ragdolls
i dont think u should use complex code for that
How is it complex?
The reason why it might be, is because I simply cover different scenarios
Which I consider a good practice. I make sure to safeguard against potential edge-case scenarios and handle them with proper countermeasures. It adds some lines of code, but it doesn’t make things particularly complicated
🙂👍
yum
The hatch
🥚 🪺
💔
any scripters looking to work on a small project to enhance their skills and for percent? dm me
anyone here know how to make a door open smoothly?
guys how to do an advanced gun system
i know how tweens work creating new parts
and the other basics
guys
tweening
well what do you mean make the door move smoothly?
do you just want the door to open when you run into it
or press a button and the door opens
if you want the door to open when you run into it then use springs and hinges
if you want the door to open when you press a button/key like e then use tweening or lerping
Any scripter here who can script a Wall Hop Obby game?
Tweens are best
Or you can use forces
If I have a database, should I store IDs like strings? I mean maybe there is some thing like in c++ that u cant store really big numbers
if it's a model then add a part where you want the door to rotate at, make it invisible and set it as the primary part of the model, weld every part of the door to it, make sure only the primary part is anchored, and then tween the primary part using the cframe property
cframe.FromEulerAngles(math.rad(90) , 0, 0) or sm like that
Does anyone want to join my dev team for coding?
No
Nobody does this for free
And if you're paying use ur eyes and use the right channels