#code-discussion
326295 messages · Page 327 of 327 (latest)
its too stoopid
hi
well I don't have prior modules if I'm making the base
yeah ofcourse but even then if you want you can just code the first couple modules and then let AI follow that infrastructure for these bases, then in the same chat you can start making the core gameloop
ofcourse nothing that comes out of that is gonna be finished so you need to change, add and polish it up first but it normally goes way faster than just scripting everything from point blank
especially if you have anything prior in the same chat
you know ball?
I know ball?
nothing i just noticed you were connected
Yeah lol
i use it to make me the types too i fim lazy
@soft trout
Why are you replying to an old msg
informaiton
infortomiton*
@vagrant dew @digital cypress @ornate ivy @sly osprey @agile hamlet
Are any one of you guys taking comms rn, dodman suggested me to yall
communications 😢
my first script everr lfgggg ( ik its nothing lmao but am just happy to share my first ever thing )

i script, anyone looking for a duo?
guys how to make it so when you step on a part while its moving you dont slip away? like tweens for example
Tweening CFrames makes players slide 😭 use physics/constraints instead or move the player with the platform too
how
Like instead of TweenService on the part’s CFrame, move it with physics stuff (AlignPosition, LinearVelocity, etc)
well i still havent reach that part
yo feby
how do i master lua
what am I gordon ramsey? 😭 Plenty of tutorials out there, this discord even has some resources (#1278154978598326406)
wtf bro
yo have this?
i wanna ask you about devex
im being stalked.... 😭
how tf did u afford this
what games do u own
I own 2 of those
4 million value wow
do u own games
or are you a trader
bro is stalking all my profiles 😭
I do trade yea
cmon bro not like i would do smth
ofc I've devexed
what?
does transaction fee increase the more robux i devex
some went wrong there lol
taxed i belive
should i use 1 module for all the keycard doors or a seperate script for each for ease.
no bro 30k into $56 is ggs, idk what you did
the tax is $5
i got taken 20$ for transaction fee
and its 105 not 106. you get $100 from 30k
and my bank probably took 30$
where do you live? 😭
did u get them from paypal
how would ur bank take 30???
yea
i got 56$ deadass
ggs
ppl said that you dont get taxed from paypal
but paypal is not avaible in my country
so i used wire
how much have u devexed btw
I dont understand why ur wire would cut off 50 bucks
1000s'
1000$?
thousands
ok so u got 995$ for the transaction fee
1 million dollars?
make that 100
ohh 100k
bro what do u do
ugc?
i have one dead game
that succeed i belive
im a "master lua" like you said 😭
UGC is my big source
you've alr stalked my profile 😭
yes bro..... ur freaky man
brudda cmon r rich
so umade 100k off this group alone?
more
yea?
oh my
ok no joke now
are you actually a lua master or
a ugc master
like do you make money off ugc or lua thats my main question lol
ofc
tbh bro why havent i though of this earlier
but can i introduce you to my clothing salon that i abandoned?
clothing?
I'll be harsh, I made clothing for over 6 years
show me
and didnt make me shit
do you wanna talk in dms cuz i have to go in a little
its 12 am here
and imma have 6 hour ssleep shit
here is the group btw
sure
ok imma add u just in case
i just spent like 2 hours trying to figure out why my MemoryStoreQueue wasnt closing when I was freeing data on server close
is roblox studio kicking anyone else out of team create session?
and its cause i didnt let all previous requests finish before attempting to free the data
i feel like such a goober thats such a stupid mistake
yes cause its a test space
ah makes sense
not actual server code
was gunna say
im working on the module
Are cpu spikes bc of the scripts or bc of my pc?
bclike every 10 secs it freezes my game
is the spike consistant?
if its random could be either but if its a consistent every 10 second spike it could be a script
its good then like after 10 secs it freezes shortly hten goes back
but is it consistant? like EVERY 10s kinda thing
^
its prolly a script ill look into it
so is it fixed now?
i didnt change anything
i just put a fps cap to 60
not that
instead of 240
which
the microprofiler that lets you take snapshots
and lets you see memory usage
per script and in total
how often should i make snaps?
do one as soon as you load in
then one during a spike if you can
and then one after the spike if you cant
the f9 one?
the spikes arent happening anymore
idk then its probably your pc
you're probably making connections in a table that never gets removed
WHY WONT IT LET ME POST ANYTHING
NO REPLIES NO POSTS NO NOTHING
HOW LONG DO I HAVE TO SIT HERE READING NOT BEING ABLE TO RESPOND
I FEEL LIKE THAT SCENE FROM INTERSTELLAR
i could help SO MANY PEOPLE in questions but NOOOOOO
doesnt onclientevent get removed on leaving auto#
that wouldnt cause it
the only other thing i have is server onserverevent remotes and 1 client heartbeat
there's probably something in the heartbeat
and if i dont find anything its just bc my pc was playing up?
if your pc doesnt usually do that its probably some sort of memory leak
it may could be bc i was sending remotes with 4 cframes at 240 fps, now i cut it to 4 vectors at capped 144 fps, you think that was the problem?
@tiny gyro dms!
rizz
what are you doing that requires such a high frequency
arm system like burglin gnomes
updating their position
i would reduce the frequency to something below 60fps, and interpolate on client
thx for the advice
rn its doing well fps wise though
generally no reason to send that fast
at 144 cap
guessing itll scale based on players tho right ?
ye
its like doors
not more than 4 players ig
depends how heavy the game will be idk
yeah you generally wanna keep network send under 50 kbps
things like cframe can be interpolated client side without much effect on the look
per player or for all?
rn its at 15
doe theres a bug rn where unequipping arms dont work
its like 2 am so ill do it tmr
so is 15 good?
guys what is the best way to start learning coding?
so like every player requires 15kbps ?
like for every pair of arms
then no
rlly bad
talking more the recieved
the recieved is 9
so are these stats good?
cus idk how more i can optimise it except the frame cut by half
if its only one player in server rn then no
didnt you say 15 per player?
also its in studio so idk if it changes anthing
50kbps total for recieved
just reduce the send rate to 10 or 20 times a second, then interpolate the cframe on client
yes
i dont know what you're using the cframes for but you can try send way less and add lerps to smooth it out
or unreliableremotes
sorry performance is absolutely vital for my game's success, do you mind quickly explaining that metric?
if you're firing that many cframes per frame to have a smooth replication of something, you can fire the remotes less often and then :lerp (interpolate) between the old cframe and the new cframe
but that adds a delay
probably by like 100ms
depends how frequently you send a packet
unreliable remotes work for this typa thing because they don't wait and retry for an old packet
thank you!
Anyone here know the best solution to do executions? Where 2 players are both synced and animated?
I’m assuming both animations would have to be played on the server
anyone here know how to make a 3v3 gunfight and pass the bomb game?
yes
dms
no all animations should be played on client, its insanely expensive to play them on server
im not very experienced with 2 player synced animations though
i would assume when whateer cuases the animation is used, it tells the server to activate it and the server tells the client to play animations for both of the players and prevent them from doing anything
yo why i keep on getting reddering is paused for debugging
im NOT this bad at coding
You've set it to pause on every error
I think you change that in the script tab
im an animator trying to help my scripter friend on a custscene, make it easy for him to animate a cutscene in a specific way?
guys i have a question. is there a difference between having a variable as a local variable or a table property that is significant enough to consider? i know that local variables are accessed faster tho, but is it purely a personal preference? this question also applies to local funcs vs table methods
another question is that, if i were to use local functions 99% of the time, should i use forward declarations? (declaring the function names at the top). is this common practice? i wonder how people usually format their singletons/classes
local currentCamera = nil
-- vs
CameraController.CurrentCamera = nil
local foo
local bar
local Controller = {}
function foo() end
function bar() end
return Controller
is there any way to modify studio's built-in freecam to allow camera shake from vfxforge's emit module?
putting variables/functions in methods allow you to index them by string, so you can do stuff like jump tables
local tab : {[string] : () -> ()} ={
["add"] = function() end,
["mult"] = function() end
}
function run_command(cmd : string)
if(not tab[cmd]) return end
tab[cmd]()
end
also storing variables/methods in tables allow you to do OOP which allows you to create your own objects
also if you dont have to do foward declarations with table methods
can someone teach me how to pull off bridger western shiftlock? Im talking about the forward and backward tilting because I pulled it off but the humanoid physics still apply to the rootpart and it like bugs on the ground with the character. 🙏
Applies to motor6 too
well yeah im already storing all my variables and methods within tables except for very few internal variables only needed. but what im aiming for is not an OOP class, its just a service/controller/singleton that runs once either on the server/client, i dont need to instantiate it
also i wonder how ud adapt this to a singleton
having them as table properties would allow you to access those same variables from other scripts
(assuming you return that table from the module)
so someone could require your script and do CameraController.CurrentCamera
can someone teach me how to pull off bridger western shiftlock? Im talking about the forward and backward tilting because I pulled it off but the physics still apply to the rootpart and it like bugs on the ground with the character. 🙏
someone help me
👋 Just a reminder to read our rules and use the marketplace to hire!
-# Hiring or looking for work in our channels classifies as misuse and will result in moderation.
you could probably do something with motor6ds and rotate it according to the camera direction
@zinc pivot are you taking comms rn
ye
ofc
is there any way to modify studio's built-in freecam to allow camera shake from vfxforge's emit module?
@shrewd nymph are you a guy
🥀
ts sad
its funny js a trend
Studios freecam just uses the camera instance in workspace
Is __call slower vs indexing? Ex classModule() vs classModule.New()
wanna join my team
i dont understand how that answers the question sorry
Idk really test it
Yeah, youtube
k
Is anyone interested in helping update my Roblox game? I can pay, and you’d also be featured in a video around the update.
I released my dream game about a week ago, but it hasn’t been performing as well as I hoped, so I’m looking for someone creative who wants to help improve it and add new ideas/features. You’d have full creative freedom with the game.
Game link:
https://www.roblox.com/games/98762392594405/Obby-Race
If you’re interested, reply or DM me. Please ping me too so I get the notification.
LOL still scamming @bleak jewel
is it better to have 10 different scripts for 10 pprompts or 1 script handling each pprompt?
I think its better 1 script
same
Do u know how tf making a bicycle that you can take off parts like the wheel, pedal etc. Like in Drive beyond horizon game on steam
yeah
How
I mean i can use attachments for this but the main problem is the bicycle which is not fall when the player on the seat
i dont understand
Im so dumb at physics in roblox
Itz ez tho?
Imagine it like this
This is the method I use
X is left and right, Y is up and down, Z is My front and back
Thats the mapping I use
Whatever you can do with the in game camera you can do with the studio camera
So if your module modifies the in game camera it will work in studio
How experienced are you?
Couple years to my name
Idk maybe we can try
What are you experienced in?
Building?
Mostly scripter and learning all other things like
although i don't really like building
guys i wana learn scripting can anyone help me with it
How
i just wana help from someone who can pace me up in bigining of scripting
Physics in Roblox is easy
You just need to pay a little more attention in school
sup.
got a question to ask.
given that I have this video and the renderer was made in opengl: https://www.youtube.com/watch?v=Y7ANjYDAgxg
and I want to export that to roblox frame by frame (too lazy to translate it to luau considering some limitations, and for God's sake do not ask me to use gen-ai to translate it, thats counterintuitive)
should I upload a spritesheet, or do I export all frames to u32 and write to buffer for editableimage
Yeah, working on something big as of now, cannot precise an exact date on when I would finish it as this is a solo project.
Made using lua(u) and JS.
Credits go to @lucillekarma and all of TCal:WotG development team.
i would do the second thing, but idk
should i learn scripting
No
any reason why or
Why not
you want people to tell yiu what to do
So i told you
true
imma have a go at learning scripting i will report back maybe soon
but thisll be a long journey
thank you for bringing me back to my senses
what
k ty
i've made a similar thing by getting all my camera frames and sending into my roblox studio local server, with a python server, so i visualized them with editable images
oh wait, is it possible to establish a websocket-like connection with studio?
like post information to the game?
ye
only in studio tho
obviously
it's intended for plugins but you can use it in normal scripts
wait
Hello Creators, We’re excited to announce that WebSockets are now available within Studio! WebSockets provide a persistent, bidirectional communication channel, allowing your plugins to connect to external servers for efficient, real-time data transfer. We hope this will streamline building integrated development tools and plugins, such as re...
since when they introduced it
.
how did a guy make that system in 2023 then
idk u could still make normal get requests but you'll get limited soon
maybe if he decrease the fps
maybe incresing packet size by sending multiple frames but it'll be delayed
yeah I'll just paste it in script
Any scripter wanna collab
I'm gonna make a sword combat system and I'm wondering is it worth it to use raycast swipes for the attacks or would it be better to lean towards box hitboxes?
Hitbox would be good
It's on you
Raycast is good for precise and competitive skill based combat systems yk
Hitbox + getpsrtsinpart
or cframe hitbox + getpartsinblund
no need to use raycasts
What's the job
yeah raycast wouldnt fit for this situation
Wym ability tracking
like cooldown
I dont think you need oop or ecs for that
who crash who getpartsboundinbox or getpartsinpart
oop is lit for tracking stats of an obkect
Have like a cooldownservice with the methods
StartCooldown(character, cooldownName, duration)
And
IsInCooldown(character, cooldownName)
i mean u could but i it kinda cleaner to do so
The way to do it with oop would probably be to assign a characterstate object to each character containing many stuff but that wouldnt be really specific to skills
I dont think you really understand oop tbh
that the thing
also yea assining on char with an ability state that shows everuthing u need to know about current ability
inside 1 object
it just shows there cooldowns it dont create 1 for each seperatly
hi
Thats why its better to use this

