#code-discussion
1 messages · Page 294 of 1
well pivot works, youre probably just doing something wrong
bro aint no way
i just make caine act like caine XD
cuz caine doesnt need to know everything
only its purpose
so i make that
and that its learning
caine?? tf are we talking about
digital circus
ima make it now to suggest to the server to do something
so it lwk does it
its kinda good
icl i make it out so bad and if someone sees it they will scream on how bad i script
but its working
somehow
is it possible to force a physics object to start stepping during a specific substep?
Can anyone help me make a game about gravity changes ??
Like?
Like invert the gravity
Like upside down?
Or just like from normal to 0?
Left right up down
it is, but the results won't be what you want
yo
anyone know the best way i can make it so that players only can fish if theyre in a fishingzone?
do i place a part and name it fishingzone?
use zoneplus module and create a zone
when they try to fish just check through zoneplus if they are in the zone or not
super simple
aight ty
wlc
Disclaimer: Updates are planned to modernize ZonePlus for 2026 - you can listen out for these at our community server - please note inbetween I won’t be monitoring this thread or codebase 💾 Source Code | 📖 Documentation | 🌊 Playground ZonePlus utilises the new Spatial Query API and Whitelists to effectively determine players, p...
and there you go you also got the link
im making like a tycoon game and the ores take 4 different paths so im assuming its because of the 4 physics substeps
tyty
why do you have to step the ores then
what?
what’s a physics substep
is that like a frame
the server maintains a framerate of 60hz, but the physics runs at 240hz for accuracy, so it usually do 4 steps of the physics every frame
if you have dynamic substepping it can do more or less depending on what is happening in the game and the framerate
zoneplus is bloat
hey guys i am new here and i am making a game rn i need help with doing a egg hatching system sadly i cant script would anybody like to help me ? sadly i cant pay bc i am saving my money rn if you can help me dm me tysm ! :DDD
ig so
idk, i use gemini
it's good at explaining code
no chatgpt though right👀
chatpgt is mega doo doo fart
alright bless ill start using gemini
yes claude is the best coding AI model currently (opus 4.6)
yeah we`re using claude now i guess thanks
ohhhhhhh
do they have an event for each server physics step?
what purpose or use case do you have for needing to do that
how do I make every player be a head in my game? like so they walk on the ground as a head
nah i was just curious
i thought the server was locked to 60
wanted to see if you can access the 240
anyone here got drones FPV missle system
yes
can u slide vid in dms
no
ask themhttps://discord.com/channels/211228845771063296/1486226491292520628
don't ping Rolling Head Physics
oops
ty but I alr did it, the character is a head only now
human centipede type shit
How do I use AI to make me code
"claude, remake windows"
in this server most listings are like $100-$300 lol
but a fair pay depends on your skill and experience
huh i thought it would be more than that
if you know what you're doing you SHOULD be getting paid upwards of $500-$700, more depending on the game
assuming youre not taking percentage
i said thats the average listing price, didnt say it was the correct amount lmao
majority of people in #scripter-hiring underpay
yeah people in graphics also underpay

another question
is it possible to make a 2d fighter game on roblox, like fully handdrawn animations etc
yes it is possible
though it'll be a bit more complicated than a 3d game since roblox doesnt natively support 2d
Where code
down there
under there
under where?


Mfw I open vs code
Why are you named after a skin condition
i chose the name before i realised it was a condition
At least it’s a decent looking one
lmao
I didnt find it down there
We seeing ghosts? Who are you talking to
Cant sent msg links, scroll up some lul
yeah like how can scripter even develop full blown game like of $300. Clients want like a month effort for this
Depends on the scope and how good the coder is
Can be up to 100$ for basic brainrot stuff (u can prob get it for less). Can be thousands weekly if its a big game (with % its open end)
A lot are 1k+
Who is making a full brainrot game for 100 usd
Basic brainrot games are super simple and low effort, im pret sure u can even get templates for a similar price
templates are like 10x cheaper than actual games
Usually yeah
so templates shouldnt be how you judge pricing
so even if templates are 100 usd
that doesnt mean you make it for 100
yea makes sense
thought about how much it’d cost to code a 2d fighter game
probably a lot
in roblox?
what kind of stuff do you want
actually can i dm the idea?
ok
It all depends on the specifics
probably over 1k usd but it really depends
I see
Made a emotion base NPC combat system 🙂
elder scrolls oblivion reference?
who have a brainrot systeme pls
how do I make my game give players Admin with HD admin in game if they reach a certain goal?
make it urself
🫃
yo where do you get a template for a game
X
aight thanks ill try
who has a spotify dev account with an app with extended quota
😭 after the announcement 90% of people in the development catogeory is getting muted 😭
lmaoo gatekeeping as a rule sounds funny ash
Well I'd tell you how to get around the rule, but I gotta have something to gatekeep. Pickins are slim right now
watch out bro 😹
whats even gatekeeping
like if ur smart enough how to code and dont say it u get muted 😭
I believe that it is important
Obviously you're not gonna be required to drop the code of your entire project
Just some snippets that may help people
hi i actually wna learn coding , i really like it but idk how to learn it , how can i become better i’ve always wanted to be able to code whatever i want without yt tutorials but i don’t know how to learn and i don’t feel like progressing even if i try 8hours can someone guide me please
Is OOP something like: Animal class - Eats and Sleeps, Mammal and birds inherit with their own functions like birds can fly but mammals have different animals
dont use yt use the engine roblox provides
Just code. And you'll learn, do it with no experience
It's how I learned, but you gotta understand the basics such as functions, variables, value types etc
wym the engine roblox provides
Try creating something
Read docs
am i the only one who finds roblox documentation hella confusing to learn from
i mean u can get basics from yt like struturing and stuff but after that docs is what u need
Its more for a better understanding than learning imo.
i would like but tbh every idea i get r all super hard to do.
guessing if someone asks how to do this u literally can't tell them to figure it out or read docs or something u have to give cose
Then start simple
Yes they lack examples and explanation, other than that they're great
Print stuff, simple if statements etc
dang the devs are extremely being strict wth
that doesent even makes sense
because telling someone to go read docs is actually good for them
What if someone demands a working Raycasting gun script
other wise they dont learn anything
For free
Not what gatekeeping is but that's just basic respect, you don't tell someone to figure it out themselves after they asked for help, you lead them to the sources of info and try to explain it to them
Wrong reply
id rather someone tell me to figure it out
do u give me fish or tell me how to find fish
they wont learn anything tho
same w docs
id rather be taught how to find what i need then rely on other ppl
never said you have to give them the code, I said lead them to the sources (doc links that contain what they asked for) of info and explain to them (teach them)
i get what ur tryna to say blossomical but the fact u can get muted for that and actually banned is extremely strict and dumb
actual id get if someone told you ur bad etc thats js toxicity but yeah that rule is stupid And prolly why this is the first server to do that
you're not obliged to provide someone with this it's just that you have to give a proper answer or no answer
So basically. Be a good person and help them instead of ignoring
theres no point in helping someone if you say "GO look in the docs" they look in docs "I get muted" and i cant expand on trying to explain and help them with there code so they actually can learn
why is helping ppls bannable
you can ignore if you don't know the answer, being a good person is enough
gatekeeping, not choosing ur word correctly u cant just tell someone go look in docs
u will get muted before even helping them
oh i thought helping ppls how to find a doc etc was bannable
"go to the docs" is vague, "there's a page in docs that talks about ... [Link to the docs]" is proper
pretty sure thats what im trying to say it falls under gatekeeping
isnt that still gatekeeping?
the word gatekeeping they used is terrible if thats not what they meant
not really, that's just disrespect
gatekeeping is a terrible word for that rule anyway
really stupid word.. it's accosiated with keeping something from someone not whatever they meant
thats what im tryna to say
because giving someone docs without helping them out at first is gatekeeping
From my understanding, it's keeping resources that people may find useful private, despite not being mainly used in a project
yea
what was the need of that announcement
theres already rules in place
like tf?
The rules don't do anything, have you seen the help channels
but gatekeeping is meant to describe hiding something obscure.. docs are public and very easy useable, enough for even chatgptwto tell u
thats the mods fault for not moderating
not the rule ssytem
system*
people are just gonna tell you "go look at the docs", "you're terrible at coding get better", instead of providing even the tiniest bit of aid (such as leading them to the correct page in docs)
why you guys arguing
because that helps them in the long run
Not really sure what goes on in this server but the mods might not be able to handle the help channels constantly because of the many people that break the rules
besides the 2nd quote u said
It's just a discussion not an argument
thats muteable
well move this discussion somewhere else
No
im trying to make a weeping angel and its not working?? idk i used ai ngl
regardless the #announcements they made is extremely vauge and not correct wording
I don't trust ai for my code
its telling me steps to do and its just not working
it sends different scripts every time and i cant script

like you cant script without ai? Or is your knowledge limited?
like i just cant script AT ALL
ik abt parents and thats it
start from the bottom then
I do think that it was necessary, It makes me happy seeing people get the help they need instead of being drowned out by pictured of slop such as ai generated vintage clocks in dresses
Get a buddy scripter or learn
alright they are fixing some of it in #announcements
kk
much better
watch brawldev and gnome code, set your expectations lower than they are right now (thats a me thing, It takes time to make something simple)
What

and apply the code you learned into things you like to do
I learned by playing my favorite games and seeing if I can make a system from it
imo YouTube dev tutorials help just so much but for the very start
Those evolve into projects
It can be overwhelming
Depends on who you watch
trust me
YouTube is not the only teacher
it's more like a kickstarter
True
and if not, parts of it so I can use pieces to fix my own stuff
Personally I think that learning lua starting with Roblox is not a good decision
who be learning lua not for roblox
I recommend love2d or anything else
To learn the basics of lua, it's better to start outside of Roblox
ok and I never even knew lua existed if it wasn't for roblox
anyone ehre know the best way to uplaode a rig piture ona ui without viewportframes example for index
Roblox put lua in it's shadow
openresty and computercraft spring to mind for me though I'm sure there's a lot more
who are them bro
I learned lua to code in pssych engine, this is my little alchemy 2 port in lua with pink pantheress in the bg
a rhythm game mind you
-# this was made 3 years ago
Interesting
ngl idk what's pssych engine is
A Friday night funkin engine
actually very interesting
how did you make that 😭
isn't it's supposed to be like arrow up down left right and u click and
This has some truth
Why would u do this bruh
So random
I used a library that I made that makes me able to use OOP-like structured objects instead of just luajit functions that communicate with haxe, and then I just wrote everything else idk how to explain
I do the most random stuff, I made a drawing app, a piano, Wolfenstein raycasting, And Perspective projection in fnf
I guess bro
here it is, I also coded a bot play that uses midi file parsing for jt
That's so cool
today i finished a hallway parkour generation system that creates a unique hallway everytime + the length and theme is customizable
also learned module script functions with this
That's amazing, it'd be sick if more obby games used randomization
man y'all show cool work and I don't have anything yet to flex
you can try replicating other people's work
It's a way of learning and having fun
no I'm working on something right now
ah alright
thank you dude
its going to be a get crushed by a speeding wall roguelike
Does anyone know why using the function :MoveTo() on a model with unanchored parts move the actual model, but using model.hrp.position doesnt with a vector3 when the models primary part is the hrp?
im making a combat game wanted to wanted to add an evasive system to the game because my current one is bad and only gives iframes, I was thinking of jjs's system where you dash out or deepwokens where you can vent since those are the ones I know best. But what do yall think is a good system?
Moving the primary part does not recalculate the rest of the model.
So why does hrp.position not work then
Because, like I said, moving the primary part does not recalculate the rest of the model
Oh alr i get it now thanks
you should just weld the parts together
Alr thx
I welded all the parts together, used hrp.Position and its not working still?
?
are you suing weld constraint
Yes
Why doesnt it work though even with weld constraints
im not used to constraints I just automatically assumed it would work
but im pretty sure normal welds
normal welds just keeps position of another part or an offset
Actually yeah im not sure sorry bro
Alr its fine thank you for trying to help though
who has a spotify dev account with an app with extended quota
anyone know what the best way to store massive numbers in ordereddatastores is?
without them capping at 9.22Qi
I bought a map and there were malicious scripts, I didnt publish or anything and I deleted all of the scripts, can my account still get in trouble
use a module like EternityNum2

works perfectly thanks
most confusing module ever though 
very
You don't. Roblox will do this automatically
All custom chats must now be made with TextChatService
ohh
but i have a question
if i want to make my own custom censor
like lets say you said something like a bad word
and it will censored
but instead of those #######
it will be an image
image is same for all ###########?
no
i mean i dont think it will be problem for some basic words, that randomlly get cesored, stil in same group.
do they even give API to determine the group?
it will be a problem
but just make it an emote
of course not for censored words though
but yeah still making that is like walking on edge of roblox ToS

I see
oh seriously? does roblox disallow custom renditions of the filter, even if u completely follow what roblox gives as a filtered string?
does anyone know what I need to do for this damn asset creation call, AvatarCreationService:PromptCreateAvatarAssetAsync(), I have everything right except the accessory. I keep getting the error of null mesh and texture, even though they are correct.
@remote phoenix how long usually until calude pro stops
cuz free one is like 3 messages and its done
it depends on how much context you're using up
1000+ lines
line count doesn't really tell me anything
but I dunno man just buy it on your own accord
i just be telling claude to remake the script with the new thing i told it like adding a spin animation for example
it's only a $20 purchase and you get to use it for a whole month bro... do all the experimenting you want with it
bet send me 20
yeah no fuck that
💀
I'd rather send claude another $20
well you shouldn't really use it to give the whole script back
it's prob gonna burn through your credits
you shouldn't be giving it a script or asking for a script back at all, you should be using the roblox MCP
model context protocol
it just links AI models to your game and lets them edit it
model (claude) context (tell it how to use tools) protocol (give it tools it can use to interact with roblox directly)
wait im pooping lets continue this convo in a sec
wawait so they can edit in roblox??
no way
yea
using MCP bro we just went over this
yea explain it to him kaicantcode
look at the roblox MCP github
wats that
bro just tell me what to do
okay so first you need to google "roblox MCP github"
There is too many steps to do I would rather make things by myself 😭
HEY NO BEAM LINKS
me when it's literally just 3 steps
Not 3 steps but okay
It’s just a listing not steps
idk looks sus

It’s legit
Do yall think a digital circus game it’s a good idea?
not code related.. grr...
It is a show watch it it good
It’s a good show
But yea coming back to the coding part
I manage to make Caine and bubble
But their responses are so bad
And so boring but they are there and they can do it and Caine can decided adventures and somehow create maps

Yes I made that all yesterday and today
3 messages 
I use the free one, no 2x usage and it gave me well more than that.
1k+ lines of code in total in one prompt
@remote phoenix my god how u expect me to do all of this by myself with claude
uh
ye nah idk why
yeah facts
Brother you just got the perms, calm down
this is me to claude rn
can you let me enjoy my image perms bro
i worked hard for this
ok fine 1 more
why bro got so many folders
Organization
having more folders does not make it more organized
It can
it usually doesnt, if u have to expand like 6 folders to get to the file u want it just slows u down
Search bar
UI devs got it worse
ok but folder spam = bad
yeah
I mean folders can help if u need organization but that's too much
well thank goodness they're using AI so it doesn't even matter
"Claude, make this game work."
MY GOD CLAUDE AI IS SO GOOOD
idk i think its organzied and it was from my previous scripter
@remote phoenix LFG
yeah now let's come up with some cool game ideas and make them so we can both get rich
AHAHHAHA i got my spin system to work entirlyyyy
AHAHHAHA
ik nothing about scripting btw
I only know java coding so same here kind of
i have a community of people waiting for my game to drop
(a lot of roblox's scripting requires knowledge that is specific to roblox)
same here but for my minecraft server which I'm still busy making
you code plugins or?
yeah but not for public use, just for my servers
where did you learn java?
I wanted to make plugins so I jumped straight into making them and asked AI all my questions
interesting, how are you hosting the server?
Minehut, it's the most popular server host
free?
@remote phoenix u heard of lemonade ai?
im using it rn
its kinda good too
they give u 1 credit everyday but u gotta be in there discord
yeah I've heard of it but didn't want to bother using it
would much rather just use claude
im using both cuz i run out of claude in like 1 minute
it's probably just a claude wrapper anyways
(claude but with custom instructions and maybe a custom MCP too)
when it comes to optimizing code ai just fucks up
i wonder if anyone here can guide me to set up ai connection to studio without paying ai models
man not this conversation again
you can't just group all AI together as if they're all the same, and prompting matters a lot
dude i've tried coding with ai it literally doesnt work
i need it for useless boring work
yeah you're probably just shit at using it
and probably used chatgpt or something
yeah sure keep using ai
okay I will
my AI that is optimized and has no issues at all... unlike whatever tf you were using
what can your optimized ai do?
write code
do u know how to connect free ai model to studio?
no I have no clue
like any other ai
Ask Claude
smart
It's what I did
Never used lemonade it looks mid
u know what ima justy buy claude pro rn
@remote phoenix this shiiii better give me unlimited uses
have u ever ran out of uses? with pro
it won't and you should learn to limit how much context you use up with various methods like writing a plan so it doesn't need to keep reading all files to modify 1 thing
and often /clear to clear context
I sometimes like to plan this out in steps, and include necessary context in the plan. then finish step 1
a plan? nah fuck that we going to court with no plan and free balling it
yeah when I first started using it
im plan to be on it for 24 hours staright
is that possible
wtf man im paying 20$ for not unlimited
yo 130$ plan 😭
whos paying for that mann
but another fun thing to do if you want to try scripting yourself (and you might find that you enjoy scripting) is to just ask claude your scripting-related questions
takes up very little context
it's nice to build your knowledge too if you care about that, but if you don't care then it doesn't matter and you can just continue to abuse claude
hmm i kinda want to understand it better
how can i do that
the current learning meta is to treat AI like a personal mentor and as if its Google search
hop straight into roblox studio and start trying to code something. ask AI all your questions
me when I copy paste it again for the 100th time
should just ask AI to do that for u
you also don't need to actually code anything, you can just ask for some code and try to figure out how it works.. like "why do we use ... instead of ..."
Ask AI to continue discord conversation for you
but that requires a base level of knowledge I think
I did have claude write me a macro program so I can autoclick on roblox games while doing other stuff
like coding my minecraft server
Claude is getting to popular
no not many people know
its now 2nd in app store yesterday it was like 6th
earlier or maybe it was yesterday, someone said they were using chatgpt
for ai
oh okay maybe it is popular statistically but I mean I don't see many people actually talking about claude specifically
at least not in the few communities I'm in
arent there auto playing things like in youtube for popular roblox gamesv
like i remember there was Auto fish for Fisch
it used AutoHotkey software
yeah there are specific macros for different games that usually use AutoHotKey or Python, but I am on Linux
AutoHotKey doesn't support Linux
what linux distro
and also I don't think you can create a background auto clicker for roblox on windows but I don't really remember
Kubuntu
no it has a set up screen that is really simple and easy to use
any linux distro can be considered better than windows since it is generally less bloated, but certain games and applications won't work on it
yea most anti cheat games dont work
and linux doesn't really like nvidia gpus but Kubuntu has been working mostly fine for me even though I have an nvidia gpu
and making games work is generally not the most straightforward thing to do
i did install bazzite once
what nvidia gpu you have?
I don't know about that... I only really play steam games which happen to support linux, or Roblox which is just one download (Vinegarhq on flatpak)
RTX 3070
weakling... try 2060
i have a issue with making a day night cycle, since when the clockTime reaches 24, when i tween it to 1 it goes back from 24 -23-22 ecc until 1 am which ruins everything
instead of starting from 24, make clockTime = 0 and then tween it
the clock starts from 7am, but my issue is that ig goes up until 24 and then when i have to tween it to 0 or 1 it counts back, like 23-22 until 0 or 1, making a effect similar to the universe reset in jojo if you know
yeah, but I'm not telling you to tween it to 0, I'm telling you to set it back to 0, because 0 is basically 24 if your working with any clock
and then it will instead tween from 0 - 1
and so on
@rocky idol
so i found a solution where i use timeofday rather than clocktime but without tweening the moon
probably if i use a mix of the two i could get what i want, still thx for the help ❤️
lol
yo
if i had a minecraft type inventory system where every item is a tool, how would i handle drops, cause roblox when picking up a tool automatically equips it if it has a handle
If you insist using tools the entire time, you can rename the Handle part to anything but "Handle"
To prevent touch pickup
RequiresHandle to false?
Last I tried, that didnt work for the touch interest, rather just the Activate functionality
would that mean i would have to change my pickup script?
cause it doesnt work if require handles is false
no idea,i just reccomended it
don't use tools
make your own tool handler
ye but i already made it
otherwise do what they said
and im kinda lazy rn
too bad then 😭😭 there's really only that option
i turned it off but it still unequips my equiped* tool😭😭
dont think you can disable touch interest
i disabled requireshandle
like if you pick it up, it takes off the item your holding?
ye
bro what is this 1939 germany
???
makes no sense why roblox doesn't just let you disable it
they do
you make your own tool handler
💀
im talking about their own tool handler
now i gotta spend like 30 mins of extra work😔
because it's useless to literally 99% of people
plus you'd have to make one anyways
for a offhand
😭
im not making a offhand tho
well its closer to muck
actually its exactly muck
No offhand? Holy social credit plummet
unity's particle system
he went from honoured citizen to slave 😔😔😔😔😔🤔🤔🤔
alr so what does a tool framework need exactly
like equip, unequip and all that
this must be how the slaves felt like😩
uh
just look up robloxes tool API
Why not just make it so when a player "drops" a tool, it creates a model of that tool to plop into workspace. On pickup, just give the player a new tool
In backpack, tool. In workspace, a model, part, whatever
i disabled backpack cause i got my own system
and it would still have the same problem
thatd work but also it's gonna be real buggy if a single bug happens
it wouldn't
if it's a model it isn't a tool
if it isn't a tool it isn't picking it up
ye i mean thats what im doing rn
cause i would have to change like 6 scripts to implement my own tool framework
what do u guys think of my port, its in bio
Almost fits iambic tetrameter
just why ??? its not hard to create ui in roblox
this makes me wanna puke
minified css
holy c
whats the hardest thing in coding
nothing
id say debugging
just to find out its a camel case or sum stupid like that
I am not a fraud
fraud!!!
having consistency to actually learn and keep learning
its not the actual syntax or language itself
Debugging 100%
Hi guys. I've been trying for some time to make an asym like game, and the project it's doing pretty good atm. I wanted to add a retro Roblox style player name ui, which I managed to do, but I can't get the "player name" text to change in the player's username. How can I do it? Thanks.
player.name ???
Ai
Not getting hung up making something trivial scalable
Whopsie
@echo dagger
Not even ai could do this

Hey, I made some code to duplicate several templates into a scrollingframe. Why do only the 2th and 3th show the names and the first loop doesnt run or smth? local ShopGui = script.Parent
local ShopFrame = ShopGui:WaitForChild("ShopFrame")
local ScrollingFrame = ShopFrame.ScrollingFrame
local ShopLabel = ShopFrame.ShopLabel
local ItemTemplate = ShopGui.ShopHandler.ItemTemplate
local ItemBuy = ItemTemplate.ItemBuy
local ItemName = ItemTemplate.ItemLabel
local ItemInfo = ItemTemplate.ItemInfo
local ItemModule = require(game.ReplicatedStorage.ItemModule)
for _, item in pairs(ItemModule.Items) do
local newItem = ItemTemplate:Clone()
newItem.Name = item.Name
newItem.Parent = ScrollingFrame
ItemName.Text = item.Name
ItemInfo.Text = item.Description
ItemBuy.Text = "Buy: "..item.Price
ItemBuy.MouseButton1Click:Connect(function()
game.ReplicatedStorage.BuyItem:FireServer(item.Name)
end)
end
its like the first loop doesnt run or something
The bug is that youre setting ItemName.Text ItemInfo.Text and ItemBuy.Text on the original template's children instead of the cloned items children. You clone first but then reference the template directly.
How do i fix it?
nvm
I'M SO FUCKING RETRO!!!!!
Bro........................ i'm trying to optimize the packet size im sending through my events. and i swear this shit dont make any sense sometimes
I turned a string into an integer, that i then parse into an enum locally, and guess what
the packets are 10% BIGGER
HOW?????
how is a number bigger then a string??? wtf
Yes
numbers are expensive
sometimes, even cframes can be cheaper because of roblox compression
anyway use buffers if u want to reduce bandwidth
I'm pretty sure instances take the least size for networking packets and whatnot
Like if you fire them over a remote
Since it's just a reference to something else
what? is that a joke?
Roblox developers trying to make their code run 0.0000001% faster
tables and booleans are cheaper than instances
Nope it’s real
Are they? I'm pretty sure instances are just a couple of bytes
Maybe booleans
But no way tables are too
Replicating your mom is pretty high up there
Fair, although that goes up the moment you actually fill up the table, so idk if I count that lol
😐
interesting
people used to serialize to strings before buffers
How could I optimize a PixelBattle system? (you have a canvas with a certain amount of rows and columns, every player can paint a certain cell (pixel) and people kind of have a battle, by coloring eachothers pixels)
Needing your server to save data about every changed pixel is kinda harsh
especially if you have like a 100x100 canvas
that's 10000 pixels already
You can compress it with buffers, there are tons of libraries for that
i'm reading up on that right now, from what i can seee they can only be used for strings?
can you explain it in a simple way?
how does that work
I just want to understand the basics of what you mean
thanks, I'll look into that
no thats not true
Yeah buffers can be used for any data type
Take a look at the link I sent @rich tartan
guys what system should i make for my portfolio
well you can be smart about it
store only whats changed
and also, since its painting
most pixels next to each other are going to be the same colour
Something you haven't done before
instead of saving individual pixels u can save chunks of the same colour
Ye I thought about that
And I didn’t really get what you meant here
how much network bandwith is trully too much? the in studio profiler thingy tells you to aim for 50kbs but is that actually realistic?
my game currently takes 1000 kbs
but theres literally 1000 monsters chasing the player
cells that are not changed do not need to be stored as you can just infer that it is blank
wtf am i supposed to get this working with 50 kbs ?
Save by rgb
Oh, ye, that’s kind of obvious
it doesnt make sense, i think i'm just being misguided by a generic guideline
well u said 10000 pixels
but in reality it will be a lot less
- the 2d quadtree approach
I will have a Color palette probably
So colors could be just stored as numbers
Like I’ll make a module that’ll have all the colors
And they’ll just be numbers
divide the canvas into regions and each group of colours will be only 1 node
so its highly dynamic
[1] = Red and etc.
Ok, thanks for the tips
Also I want to store other information - player who coloured the pixel and when
Something like that
Use RLE
RLE is mid cause its linear
ok i'll check that out
the algo i just made up
im imagining a quadtree-like structure where each group of colour can be represent with 1 field
wait that's dope
Yush
but It probably doesn't fit my case
because i still need to save individual information about every pixel (player who coloured it and when he colored it)
that stuff can still be stored if u use a RLE-like system
it will just make u lose out on a lot of savings
Yea
how?
u compress evertyhing thats the same colour and by the same player into 1
it adds more rules to what u can compreds
doesn't mean u can't compress at all
pixels are very very small and it if very unlikely 2 pixels next to each other have different players
the majority of the times a group of pixels will be from the same player
so its still optimizable
Hey question, Thanks. How much does it take to make a script profile system and how much would be good to pay for it? I’m not too sure
what's the (point) of doing (that)
There's a lot of libraries. You can find them on DevForum
Oh, sorry does it bother you, I was was only going to do it once, but then did it twice just things that were not very important to the question
That just looks strange
Mmm thanks I’ll look around
Fixed
Also, if I would’ve made a global canvas, that is the same for all the servers - how would I make it accurate on all servers?
Probably MessagingService and DataStores?
anybody able to explain how to add VFX in game?
can someone explain why this local script doesnt work.
local Player = game.Players.LocalPlayer
local Sword = game.ReplicatedStorage.ClassicSword
local inarena = false
script.Parent.Touched:Connect(function(plr)
if plr then
print("Touched")
if inarena == false then
local copysword = Sword:Clone()
copysword.Parent = Player.Backpack
inarena = true
elseif inarena == true then
return
end
end
end)
script.Parent.TouchEnded:Connect(function(plr)
if plr then
if inarena == true then
inarena = false
end
end
end)
what are you trying to do here
if this is something like a "a part that gives ClassicSword to whoever touches it", use a serverscript, remove localplayer code (irrelevant as ur already getting the "plr" variable from .Touched and .TouchEnded)
Also you don’t get the player from .Touched and .TouchEnded - you get the part, that touched the part, that fired the event
so what should i change
oh
You can check if part.Parent has a humanoid object
And then check if Part.Parent is a player
with FindFirstChild?
game.Players:GetPlayerFromCharacter(part.Parent)
Yes
im gonna try
is there a way to change the colormap on a surface appearance?-
oh holy 2 am brain i somehow didnt catch that lol
i recommend getting the player like this:
local PS = game:GetService("Players")
local part: Part = script.Parent
part.Touched:Connect(function(part)
local char = part:FindFirstAncestorWhichIsA("Model")
local player = char and PS:GetPlayerFromCharacter(char)
-- if part is infact connected to player & player exists, then...
if player then
-- insert ur code
end
end)
yeah this works too but i just want to say, itll be more reliable to avoid assuming that part.Parent is equal to char, (eg .Touched actually gets parts under player accessories)
hence the :FindFirstAncestorWhichIsA("Model")
I did smth like this
local Player = game.Players.LocalPlayer
local Sword = game.ReplicatedStorage.ClassicSword
local inarena = false
script.Parent.Touched:Connect(function(plr)
if plr then
print("Touched")
if inarena == false then
local copysword = Sword:Clone()
local realplr = plr.Parent.Parent
copysword.Parent = realplr.Backpack
inarena = true
elseif inarena == true then
return
end
end
end)
script.Parent.TouchEnded:Connect(function(plr)
if plr then
if inarena == true then
local realplr = plr.Parent.Parent
local sword = realplr.Backpack:FindFirstChild("ClassicSword")
if sword then
sword:Destroy()
end
inarena = false
end
end
end)
goin to bed
bye
Anyone need help with scripts dm me and ill help you
What’s better: disabling and enabling the UI to hide the menu, or hiding the frame?
Just updated my coding conventions a bit more to better explain things and better typecheck OOP. Thoughts? https://miagobble.github.io/Oxomo-Coding-Conventions/
The Oxomo Coding Conventions is a set of practices and styles for Roblox Luau, written by iGottic. The purpose of these conventions is to promote readability and organization first, allowing developers to easily understand each others' code, increasing collaborative efficiency. These conventions are built for teams of any size, whether it be 1 o...
Is the frame holding other things?
Yeah
I mean, I usually just turn off frame visibility
but disabling ui seems easier
if frame doesn't hold other things
Me when I disable BOTH to get maximum AWESOMENESS
local IsVisible = Value(true)
New(Gui, {Enabled = IsVisible})
New(Frame, {Visible = IsVisible})
IsVisible.Value = false -- NO WAY THEY ARE BOTH GONE WOW HOW INSANE
yo im new how yall gain experience?
Just practice
Make stuff and have fun
im buns idk where to start 💔
roblox docs and prob yt guides
roblox docs?
thats all?
If you make the frame not visible the. It hides everything inside it
tysm man
like if you have ShopBTN, ShopOverlay, InventoryBTN, and InventoryOverlay and you wanna just hide shop stuff it’s also gonna hide inventory stuff
Ah yes, coding
anyone know how to get VFX workin ingame?
how do i make an over the shoulder camera?
Wdym
I think attach a part to the player make it invisible and turn off collision and change the cframe to the part?
A bit yeah
okay
so rojo --version gives me "Rojo 7.6.1"
but rojo syncback throws an error:
error: Found argument 'syncback' which wasn't expected, or isn't valid in this context
Hold up. i might be dumb
but how do I make the camera move freely and not stay stuck in a single direction?
Hmmmmm
i kinda did that with scripts but the camera is stuck in the player's rootpart direction
local function configCamera()
local characterCframe = character.PrimaryPart.CFrame
camera.CFrame = characterCframe * CFrame.new(cameraPos)
end
local connection
gun.Equipped:Connect(function()
camera.CameraType = Enum.CameraType.Scriptable
mouse.Icon = 'rbxassetid://126275235689531'
UserImputSerivce.MouseBehavior = Enum.MouseBehavior.LockCenter
RunService.RenderStepped:Connect(configCamera)
end)
here's my code
Try to make it think the part is actually the head
Or figure out how to use mouse movement to move the part around
What even is syncback
hmm ok
Probably reverts to an older version
Its a way of getting rojo setup from a RBLX file (roblox place)
Not what I thought at all
Changes since Rojo 7.6.1
Additions
Added rojo syncback. Syncback is a feature designed to solve the long-standing problem of converting an existing place file into a Rojo project. Go to the section in this release for more information. (#937)
Added support for .jsonc in all places where you can use .json. (#1159)
Hold up, does Changes since 7.6.1 mean. its not in 7.6.1?

my bad im just outdated ig. even tho i redownloaded rojo today 😛
mb
oh ik why
im dumb shi
You are trying to port a rblx file to rojo right?
ye ye
i think i found the reason its wrong
And i got it working
@remote phoenix do i need pro to use mcp
I thought 7.6.1 is enought. but it wasnt lol cuz i cant read
Thats good
you need rbxlx files
its a bit annoying
It says somewhere they made it work for rbxl but it doesnt
I swear its "worked" for me but now im not sure either
it worked for me too but I had to convert to rbxlx
would using align position be good for hitboxes when teh players moving
Anyone got missle or drone control system?
how do i find a direction 1 part is from another?
Mb
it cannot be that funny
XD
laugh from ohio or sum lol
Hi
Um
i see the vision
Guys, how does those brainrot game make players hold the brainrot?
If anyone is tryna join and help my studios shoot a dm to me
shut up dorks
or u can just weld it to the players hrp
@tidal pagoda
@sturdy sage I like your showcase in #code-help
thanks
is there any chance you mind sharing it, i'd like to maybe fork it or improve on it
sure go to code help
hi
hello
do anyone know where I can buy roblox source games
I want to buy some sources
i got a tnf scource
anyone wanna try out my dc bot? i js need feedback
What is tnf
U the game owner or just have the source only
scource only
Btw how much will u sell it
game is no longer availble tough
Oh
check dms
do you guys help with code
any idea why when I equip a roblox tool on runtime using code, the tools handle is offset to the original place it was derived from?, its not anchored
Im currently making my first game. i want to ask about the players data. How do most games handle updating/fixing data.
-
lets say there is a new update you want to add things to the data what do you do?
do you simply check a default data table whenever a player loads and add any missing things? -
What if there is a change you want to make to an item that a few people have lets say Item X. how do you fix it/ change it for everyone that has this Item X.
-
Lets say this new update affected the datastore and i want to revert everyones data to a previous time, 1 day before the update for example, is it possible?
a lot of us just use a datastore wrapper like profilestore that just handles it
Not sure what that is so ill look into it. Thanks 👍
- idk I know some libraries (I think ProfileStore included?) have some way to handle that built in
- add update logic for Item X in the join function (so that when they rejoin, it's fixed)
- idk
Guys who knows how to code well and would help me programer a game for rbx
Regarding point 2. would that mean that update logic for item X will have to be there forever so no one misses this change? so if down the line many things change the update logic will be full of "changes" right?
would it be right to just check everything in a players datastore instead of it being item specific
something like a module with all Items Data then on join the data script compares all items you currently have to that data and updates if necessary
ur the typical guy we can trust default pfp asks in general mentiones no price
Where
oh whoops, I wasn't fully thinking. I think you should be able to implement a system where you can modify data of all online and offline players
can we ignore the modulescript lines? I assume you are using public libraries/frameworks
we cannot ignore the module script lines
I use profile service and thats abt it
I keep everything pretty modular
pretty similar to mine
in terms of structure of code
u write an OS for ur game
what typa game is u making bro 😭
OS Modules are Open source modules
Like Profilestore by loleris
ohh
Vetra by ve
I thought an operating system within ur game
All these are by me
had me confused
Thanks man
But trust me
Shared table replication will piss you off
But good thing i built a neat signal wrapper
can you elaborate what that means, like tables shared by client and server?
Simplifies replication
Yeah
On a shared modulescript
Tables share different memory between client and server
oh damn
If i access this on client
it will be different than on server
So i have to make it that i send a signal to client each time its modified
so that yk
It creates a client sided copy
everytime? of every entry in the table?
that seems so expensive, especially considering you'll be sending it via signals
Well not really its pretty cheap considering i send 1 signal only when the inventory is modified
Oh nope
it's cheap based on the size of the inventory, I'm assuming u serialised it and ur not sending the instances right..?
If there are 40 people in my game and each of them pick up an appe 40 signals are sent
Nope, Im just sending string data, instances are server only
I live by server authoritative design so client doesnt modify inventory
It just reads the table
Lets say to display UI
You get me?
oh well using signals is also a good solution, I was gonna say that my approach was using displayed data that the client can access/read
yessir
the only way to do it dawg
the best way
Yeah thats what im doing
Man I still have so much to learn in luau
well the way I did it in my game is I just have a configuration instance and the client reads off of it
the server modifies it
or like you I send the data via a signal
except I use.. remotes and bindable events
dont crucify me
same
do u also do front end
Personally i think luau is frontend + backend
Cant really say you dont do both
I find frontend much harder though
Lmao wanna see something
of course bro
I mean it depends on what you're doing, but personally I like backend more considering its data structuring and thats soo fun 🤤
I mean you cant really only do front end
coders when without modellers:
Im currently working on the frontend side
But still configuring state replication