#code-discussion
1 messages · Page 47 of 1
No game disables head collisions or torso collisions for animations dawg
so
I would check out your animation
cause I dont think that there is any way to get rid of torso/head collisions effectivly because Roblox constantly updated the property
and if your just doing that for anims then fix your animation because your anim is wrong
Yeah but then the client would have to wait for the server response before playing the vfx
Which ruins the point of a client hitbox
but bro thats gonna be instant
Its not
Well you can do it on the client
or on the server
but client hitboxes are much more performant
For ppl that play above 100ms ping will notice it
slide show
My idea was to play the effect and animations regardless if it hit on the server or not, then the server would respond the true hit and the client would remove the vfx and anims if the server didnt register the hit
odd
i aint a animator
Which would feel really good when hitting but very inconsistent when not hitting
but it aint roblox
ehhhhhhhhh
like
do you mean the server would display the true vfx and stuff
after it truly hit
No
The client will display the vfx and animations regardless of server hit
If the server doesnt hit, the client will rollback
I mean
Sure ig
but thats still gonna be noticable
noticeable
fuck i cant spell
anyway
the client server client is probs the best way to do it
thats how I do my block vfx
and its pretty good
Client lag
will cause the vfx to take longer to roll back if the hit aint valid
quick question, whats the point of writing 1, 100000 if ill just have a break statement at 200? why not just write 1, 200
bro is this a real question
srry bro i just started scripting
well you anwered your question in your question
no theres no point
if it ends at 200
plus
get rid of the continue
the loop is gonna continue anyway
well if its teaching you about break
then yeah makes sense why they wuld set it up like that
yeahh
well in this instance they are just showing you how it works
by saying
your looping 100000 times
but at the 200th youll stop
by breaking
they are just showing you how it works'
well it has many
break doesnt just work in for loops
while loops too
lets say your looping through smthn
while points > 100 do
and then mid way through the loop points is less than 100
you would want the loop to end
or
while points > 100 do
task.wait(1)
print("so many points!")
if points < 100 then break end
end
guess they just want to showcase it
yeah
but yeah i =1,200 does the same thing
yeah
type
alright nice
yes yes
im learning basics of scripting but ill need to incorporate it into game dev
idk how to put it
yeah
just take your time
yup ty
but think stuff through
btw howd you learn scripting
no question is dumb
if you dont mind me asking
even if i say it is 
self taught 😭
mustve been hell
just dont stick on tutorials bro
i am 🥲
i got this playlist that goes through all beginner then advanced terms on another playlist
I used to watch a shit ton of tutorials
then after that ill basically be out of the shell and i think ill just
practice on my own
aye valid
scrolling on devforums for hours on end
documentation?
yeah
so like scripts created by other people in lua
roblox docs
ohh right
i do not use that bro
lol
its hard to use, i just started but I still aint very good
dev forum is where I usally go
but dont just use the answer really try to understnad why it works that way yk
im sticking with this one tutorial using a whole empty notebook for it
so far got like 30 pages in
i write lines of script in the notebook itself and annotate each line
all that but i still dont know what an index _, is 😭
its like an unknown variable right
like similar to nil..
i just cant think of a situation to use it in or wherre it would be beneficial
Aye man
Not the best scripter myself but you use _, when the index is not necessary I believe
yes correct
And index is basically the key or ‘name’ for a table value?
Maybe not name but it’s position
i see
broo honestly after i finish these basics idek where to start
or the slightest idea of how i can combine like how ive been learning "math" or "operators" etc into game development script
I just finished the basics, you got this i believe in u
That is great, keep up the work
yeah
thx bro u too
Are you watching a tutorial?
yup i can put u on
he explains stuff quite well
using topbar plus how can i make one of the buttons fuction to do something like "autosprint"
Guys, I literally just made Crates and Keys through code rather than using images and its soo coool
I’m good, thanks though. I got a book and watching BrawlDev now and then
oh im also watching brawldev 😭
Haha how far are you?
i just need to finish his beginner tutorial playlist then ill move onto the advanced
uhh rn im on
Bro just get an IDE and compiler its free and takes 2 seconds 🥀🥀
wth is that
ide
i see,m how do i start that..
and that teaches me how to script quick and fast you imply
Ah I’ve just started on Advanced
firee
No it just makes the learning process more convenient
how well would tyou say you know lua
For any programming language
i see
Yeah get the basics down, everything will be easier then.
i do
i take notes on my notebook then i use roblox studio
Oh
taking notes is proven to be more efficient for remembering. plus if i forget i can just go back to my notes
btw this ide thing how do you start it
Alright that’s a good strat
is it like a wesbite..
Do you script alongside the tutorials, or do the homework BrawlDev gives you?
Just download visual studio code or another good/popular ide
And then install a compiler
There’s helpful videos on YouTube
Still working on the UI
ill go check it out
But you don’t need it if you don’t plan to learn other languages
nah im only on lua dw
Looks nice, with some more color variation it will be great
Ignore my hilarious coloring btw
I agree
honestly, as a graphic designer the buttons look like theyre in one group if you get what im saying
You could also add some vague gradients too
you could add variation such as making them the same size, making one much much tinier than the other
The buttons on the right side? or the Buttons like Purchase etc?
the pink ones
i feel like its klind of all over the place and if i was to click on the ui it would just pop up on my face
guys whats a average server client memory
what i like to do is modify it in a way i would understand
Nah it dont pop up on your face it stays in the screen unfortunately
uhh do you have like a brother or anyone at home
damn 😔
Theres alot too it, and I just started really messing with Roblox Experiences yesterday, i've dabbled in it from time to time and I've made alot of random UI and Scripts for people in Roblox, But I've never just worked alone on my own Project in Roblox Studio, and Now i am, So, I dont really have any outsider input, just my own brain
I also make all of this btw thru code
I dont use any Frames or anything like that in game
Almost right
is this made in roblox
yes
right roblox ui is super tricky
Gmod, FiveM, and Roblox is easier ngl
Dont have to worry too much abt scaling
as you do on here, Scaling is honestly the biggest thing, cause I have to make this Menu and everything look good on phones and consoles, just like it does on PC
you said you did this without frame
hello fellow devs
Any non mid scripters existing here
I'd say me
But yk, I'm just a chill guy
🤷♂️
my brother in christ your twitter is a cesspool
Dont look at that lmao
FUCK YOU MEAN DON'T LOOK AT THAT
THAT'S THE FIRST PLACE PEOPLE GO ON TO HIRE
@solid fulcrum
Not smart
You shoulda just asked me for my Dev Portfolio
or just went to my steam
And seen some of the things I have on there
Brother roblox runs on twitter
Screenshots wise
You should remove it or be banned from this disc lmao
I wouldnt know
They gonna ban me from this discord cause u opened my Twitter?
👀 That seems a lil silly
IDK man twitter being used as the main source of hiring by 90% of the community and is the first thing people open when hiring
Doesn't seem that silly to me
I've never hired anyone based off their twitter feed
I wouldnt trust that, I mean, I could just download videos or pictures of peoples post and post them like their my own
Welcome to roblox
Entire eco system works like that lmao
If imma hire someone, theyre gonna show me their ability to code prior to me hiring them
Yeah that's crazy unfortunately not how it works here
Thats pretty dumb, considering there is a whole area on the creator dashboard to post jobs and hire people
- theres also the #scripter-hiring etc channels
in this discord
You can call it dumb but the million dollar system works like that
Report me i guess 🤷♂️
I hire mainly based off twitter
What I will say, is if your not logged into twitter, then you cant see anything i post on my twt
And if you dont have ur age setting to 18+ then u also cant see anything i post on twt
Well, genuinely your stupid asf for hiring people off their twitter
Also, you seen the name of my Twitter account, and you opened it
Use some common sense my dude
Half of this discord is likely under 18
Bro it's crazy to me
And they cant see my twt if they are
So, genuinely not my problem
Crazy statement
If you have a problem tho, feel free to dm me
Low IQ statement
Rather than continuing this stupid asf convo in the public chat that we're supposed to use for coding discussions
You do you buddy I came to hire competent devs
i am as said tho, Open to work, But probably not for you :))
Defo not for me I usually hire common sense
Is there anyone that can Make NVG and TVG system for Roblox specifically for auto morph stuff ?
specifically*
The Pacific is an Ocean
It’s called AutoCorrect issues
😭
you're weird asf for having that linked ngl
there's children in this discord server
2 blocked messages
erhm
What dog, what nonsense u gotta say too?
?
all i said was erhmm
😐
is switching from lua to roblox TS worth it?
people usually say that right before they start spitting some recessive chromosome logic
looks like thats not me!
lua is used to script in roblox
roblox language is lua
yes, but TS is a whole new language, and people are saying it's better to swap to use it on your roblox projects
and i want to understand why
Luau*
I would not recommend using TS for Roblox
can someone help me with a chat system message?
Just use luau
Whats up?
im making a game. and i wanna make it so when someone rolls a rare rune. it shows in chat. but im not sure how
this guy is stupid cause it literally violates the discord tos
😢
local function RollCPRunes(plr)
if plr.leaderstats.CP.Value >= RuneCost then
plr.leaderstats.CP.Value -= RuneCost
local RunesFolder = plr:FindFirstChild("Runes")
local RuneRolls = plr.leaderstats:FindFirstChild("RuneRolls")
local RuneBulk = plr.leaderstats:FindFirstChild("RuneBulk")
local RuneDupe = plr.leaderstats:FindFirstChild("RuneDupe")
if not (RunesFolder and RuneRolls and RuneBulk and RuneDupe) then return end
for i = 1, RuneBulk.Value do
local SelectedRune = LuckFunctions.rollRarity(plr, Runes["CP-Runes"])
RuneRolls.Value += 1
if typeof(SelectedRune) == "string" and RunesFolder:FindFirstChild(SelectedRune) then
local runeData = Runes["CP-Runes"][SelectedRune]
if runeData.Chance < 5 then
RunesFolder[SelectedRune].Value += RuneDupe.Value
else
RunesFolder[SelectedRune].Value += 1
local message = `[SERVER] WOW!! {playerName} Rolled A Rare Rune: {selectedRune} (1/{chance})`
StarterGui:SetCore("ChatMakeSystemMessage", {
Text = message,
Color = Color3.fromRGB(255, 200, 0),
Font = Enum.Font.SourceSansBold,
TextSize = 18
})
end)
end
end
end
end
end
this what i got rn
nothing ive done has ever violated discord ToS, so respectfully leave me alone, been on discord since 2015, u probably dont even know the actual ToS, And again, Discord doesnt control anything that links to off platform things, such as the Connections, Discord isnt displaying anything that children shouldnt see, Twitter is, And my Twitter btw once again is set to where u have to be 18+ to see anything. Which means u have to be logged in and set ur age as that
Lemme see, one sec
Nothing in my profile show anything bad buddy
can u help me w it
Update ur script with the stuff of my first image, then in ur StarterPlayerScripts make a localscript and put the stuff in my 2nd image
ur main issue here is the fact ur tryna use the StarterGui:SetCore on the Server, but that function only works clientside, and u have an extra end) in your code
can u gimme the scripts in dms?
ye
ty
its not working
can anyone help me with a roblox script
ye dm me
i did
can anyone help me with my roblox clothing game? i'm having the following issue.
I bought a premade game, and the script was included. When i click on the avatar within roblox studio it all pops up fine
but when i check it in actual roblox it doesn't work, does anyone understand why or if there's something i'm missing to enable?
i learned how to code a UI
local TextButton = script.Parent
local TextLabel = script.Parent.Parent.TextLabel
local CloseButton = TextLabel.Close
local openedUi = false
TextLabel.Visible = false
TextButton.MouseButton1Click:Connect(function(clicked)
if openedUi == false then
TextLabel.Visible = true
openedUi = true
else
CloseButton.MouseButton1Click:Connect(function(Close)
TextLabel.Visible = false
openedUi = false
end)
end
end)
yall does this game have potential its obby but its endless.
What is the current best way to learn lua from someone who has no coding experience?
Yo any scripter wanna join a duo and create a new game? If so dm me!
fireeee, the pink throws me off a bit 😭
guys i need help
local touchPart = game.Workspace.touchPart
local partIsTouched = false
touchPart.Touched:Connect(function(otherpart)
if partIsTouched == false then
partIsTouched = true
print(otherpart.Name)
task.wait(1)
partIsTouched = false
end
end)
if partIsTouched == true then
print("yakaboo")
end
so the last line, whenever i touch the part it does not print yakaboo
4 hour coding session yeah i need new hobbies
The server im making alot of people told me to use a pink asthetic, so here i am
it use to be discord blue lmao
local touchPart = game.Workspace.touchPart
local partIsTouched = false
touchPart.Touched:Connect(function(otherpart)
if partIsTouched == false then
partIsTouched = true
print(otherpart.Name)
task.wait(1)
partIsTouched = false
end
end)
while true do
if partIsTouched == true then
print("yakaboo")
end
task.wait(0.1)
end
fire, thanks!
no problem man
all preference
@buoyant totem
@buoyant totem
@buoyant totem
dpeends on how repetitive the obby is
how do I change a parts lookvector
i wouldnt recommend that solution
actually depends on what you're doing
but if you're checking 1 time you shouldnt be using a while loop
because that means you're checking every 0.1 seconds
not very efficient imo
you could use a wait before you check the condition
wait nvm that wouldnt work lol
You can't really change a part's lookvector, other than rotating it, I guess. But the lookvector represents the forward-facing 'normal' for that part, it's not something you can change.
If you want, you can get any other vector though. You can use -Part.CFrame.LookVector (I think) to get the back-facing normal, and similar stuff for the 'UpVector' and (I think) 'RightVector'
yeah it was a bad question I figured it out in like 10 seconds
Lol no worries, I get confused with cframe stuff all the time
how does this updates gui look?
Check the game settings in studio
You need to enable some of them
Only 4…?!
it went up to 8 before i got off
Oh ok. That’s better
dodes anybody know a youtuber that makes scripting videos, like funny stuff and explains how it works?
wdym
I have a module function that needs a player as argument to do stuff, inside this function it gets player data, inside module I'm connecting to PlayerAdded event to create and set data to player, and on PlayerRemove I'm deleting this data. The problem happens when trying to use this module inside function that is connected on PlayerAdded, because roblox for some reason firing last connected events first, the function starts before any data for player is created. Is there any way to change the order of events firing?
-- module
local playerData = {}
game.Players.PlayerAdded:Connect(function(player)
playerData[player] = {Somedata = 5}
-- we're setting player data
end)
return function(player)
playerData[player].Somedata += 1
-- we're using player data somehow
end
-- script that uses this module
local module = require(module) -- we're requiring the module above
game.Players.PlayerAdded:Connect(function(player)
module(player) -- it will probably make an error
end)
what is the point of setting the data on join and then immediately incrementing it on join in a different connection
thats unnecessary and confusing to have multiple playeraddeds in different places to all handle one thing. just make functions within the module that create and handle data and then call those when the player joins
that way you get to actually set the order of function calls
That would be confusing, module is separate module that does stuff, I want to make it usable in all cases, even on player joining.
Ofc it would be easy to fit everything in one script without creating everything else, but that's not what we're doing here.
I need the solution, not the alternatives.
-- module
local module = {}
module.PlayerAdded = function(player)
-- call when player joins within a script and create a player data table
end
module.AddToData = function(player, amount)
-- increment player data
end
return module
its literally as simple as that
That does nothing...
that does exactly what your script does bro
but instead its in one script and doesnt have bad practice
I can't call PlayerAdded on every PlayerAdded event.
Data would just be reborn that would break stuff.
datastores are easy. its just POST data with key,value and GET data with key
the end
Listen if you don't have any alternative solution to fix a MODULE, without complicating the scripts that use that module, please don't respond.
I JUST GAVE YOU THE MODULE
.
Dunno maybe you know if there's any methods
he wants to control the firing order of playeradded events within his scripts so that he can run one playeradded within the datastore module first to create data, and then call another playeradded after the one within the datastore runs to call the function that the datastore module returns
its so stupid
you're trying to save data on a fucking module?!?!?!
I'm using a table in module script yes?
and i told him make one playeradded event in the module and call it when the player joins in an actual script and dude told me im duplicating data
this channel is cooked
I never told anything about datastore and it's not even related to it.
You're literally confusing people trying to help me.
@zenith mason Just ignore him and try to keep focus on my messages, he makes everything confusing.
holy shit 
Let's see
I have a module function that needs a player as argument to do stuff, inside this function it gets player data, inside module I'm connecting to PlayerAdded event to create and set data to player, and on PlayerRemove I'm deleting this data. The problem happens when trying to use this module inside function that is connected on PlayerAdded, because roblox for some reason firing last connected events first, the function starts before any data for player is created. Is there any way to change the order of events firing?
can you elaborate more on what you mean by
because roblox for some reason firing last connected events first, the function starts before any data for player is created
If you connect many functions to the same event, the last connected function will fire first.
game.Players.PlayerAdded:Connect(function(player)
print('1')
end)
game.Players.PlayerAdded:Connect(function(player)
print('2')
end)
So here it will print 2 first and then 1 if player joins.
And module connects to PlayerAdded first, thus it being fired last.
First of all, having two of the same RBXEvents in the same script is a really bad idea
the tldr is that (and this is literally what you get from reading the code THEY WROTE)
-
playeradded within module is calling after the playeradded within the script that requires the module
-
data does not exist when the script connects to playeradded because the playeradded within the module has not ran to create data and it is breaking his code
Using module inside PlayerAdded is just an edge case I wanna fix if possible.
i told him to put the original event as a function isntead of a connection and call it on playeradded
he tells me its overcomplicating
do you see how stupid this is
I'm not sure if this would ever happen? I don't know how I will use this module in this future, there is possible cases where I use this module inside PlayerAdded.
I need to somehow create a table inside this module that has player index so when someone using this module while passing player arugment, I can get it's data, but using it inside PlayerAdded is an edge case that breaks stuff.
module scripts are meant to simply be a collection of coorelated scripts
using events in them is unwise
How does it break stuff
.
Read the first message to understand what's going on.
Yield it
bad practice
This whole convo is eh
i dont make the rules. Think of it like this:
ModuleScript is just a piece of code. Say the code it has is CodeX
You use a local script with a code. Say the code it has is CodeY
When you Require Module script, think of it as "merging both scripts to create a new script"
For instance:
ModuleScript
print("Hello")
LocalScript
print("I am local!")
ModuleScript + LocalScript(Require ModuleScript)
print("I am local!")```
-- module
local playerData = {}
local waitingForPlayerData = {}
game.Players.PlayerAdded:Connect(function(player)
playerData[player] = {Somedata = 5}
if waitingForPlayerData[player] then
task.spawn(waitingForPlayerData[player])
waitingForPlayerData[player] = nil
end
end)
return function(player)
if not playerData[player] then
waitingForPlayerData[player] = coroutine.running()
end
playerData[player].Somedata += 1
-- we're using player data somehow
end
You mean like this?
Ok
Dude the module script is really complicated service type module that configures network.
Here's the jist,
When you require a module script, think that the script requiring the module and the module itself is merging
^ this
This example has ONE script using this module.
But imagine there's MANY using this module.
MANY MANY, This module is basic framework of my game.
thats why you fill a module with... functions????
like i showed you????
-- module
local module = {}
module.PlayerAdded = function(player)
-- call when player joins within a script and create a player data table
end
module.AddToData = function(player, amount)
-- increment player data
end
return module
If u use modules properly that never is an issue
what he said
Why are you teaching me how module scripts work?
and as i said before, the other event firing before the main one isnt an issue because you get to call them in whatever order you please
module.PlayerAdded(player)
module.AddToData(player, amount) -- works
module.AddToData(player, amount)
module.PlayerAdded(player) -- doesnt work

I know how they work, there's a problem that you seem talk about but not give actual solution.
probably because your understanding of them is minimal
just learn from mistakes yeah 👍
What mistakes there's still a problem you didn't fixed?
when you call a module script it will not run an event. it is simply meant to be REQUIRED by local or server
Except distopian he actually gave a viable solution.
ok
A horrible solution
bro ive given you a solution twice now
Have any better ideas?
the solution this:
Dont put events in your module script
you are probably the worst beginner i have ever interacted with
If u want to maintain whatever ur doing I'd move to modules
yk what ill spell literally every single function and script out for you
using YOUR code
give me 30 seconds
Once u get 2 it you'll see the difference like night and day
You're wrong and putting PlayerAdded not only ignores the problem and still keeps it, but makes code more unreadable by leading a "module space" into script for no reason
Nah this module isn't a streamline thing, many stuff is using it at many random times, and data got from all scripts inside one table is important.
A problem has many solutions, and often the seemingly less efficient solution is more preferred to avoid dogshit complexity
-- module script
local module = {}
local playerData = {}
module.PlayerAdded = function(player)
playerData[player] = { Somedata = 5 }
end
module.AddToData = function(player, amount)
playerData[player].Somedata += 1
end
return module
-- server script
local module = require(pathToModule)
game.Players.PlayerAdded:Connect(function(player)
module.PlayerAdded(player) -- create table for player
module.AddToData(player, 1) -- add to player data
end)
that is literally the solution to your problem
and you can call that same module in another script
and itll work the exact same
What if there's another script that tries to use this module inside PlayerAdded?
then you... dont call playeradded
And again later connected playeradded functions fire first, so playeradded will be last, and that would give you an error.
My problem is to make this module viable to call inside PlayerAdded
"Don't call it in PlayerAdded"
You're literally saying don't try to find a solution and just don't do it.
Stop flooding the chat.
Nope, some guy actually gave a solution that fixes a problem.
he is trying to help you understand by sneding you a script, what of that is considered flooding
This is solution.
A horrible solution
in the most simple terms this is dogshit
The only one solution can't be horrible.
brother that's a dogshit solution
Have anything better?
THIS IS THE CORRECT IMPLEMENTATION
Then shut it.
try better alternatives!??!?!?!?!
Ur 2 stubborn to actually go for the alternative solution because u think you can only do it 1 way
There are soo many ways to approach this
Like what? Keeping the problem and erroring my game?
im actually so mad
And yet you continue to pretend there's not
yes please do that and leave this chat
are u delusional
Give me an example that won't error.
that solves everyones problem
holy shit bro
If u dont want actual help just leave
"smart genius" 💔
W ragebait man you win
Ur refusing all means of people actually helping u
im not falling for ts anymore
Thanks for help, my problem still stands except a solution you call dogshit.
U have a solution u refuse to acknowledge it
what is your problem
dude blocks me, refuses to use my solution, claims the problem still stands
Thats on u
gotta see ts
now obviously they are still dogshit
because i used his shitty ass code
BUT IT WORKS
It's fixed, currently people flooding the chat saying the only solution is dogshit while giving no alternative solutions.
Alternative solutions where given
what they gave seemed fine to me
Better practices where given
Depends what part of code you've seen, but if you wanna help me feel free to check the problem.
@silver verge can you please explain to me why this isnt working because clearly moonhuh
has more experience than me with modules
Here's the problem.
And here's the only solution I've got.
you gotta be ragebaiting bro
such a miserable existence 
This becomes a real problem, don't yall have anything better to do?
They don't want an actual solution they just want some poop workaround that'll bite them in the ass
@silver verge the only one currently trying to go into the problem, and it seems I'm not listening to your "solutions", so go, I already explain why it's not working, you're ignoring it.
i hope and pray that you stay stuck on this problem all night and then after you finally go to sleep you wake up to see if there are any solutions and realize you are no longer a member of hidden devs
Nah if wclxb ain't giving me anything better I'm using this one
please use this one its the best option
i use lyra these issues don't apply to me
-- getPlayerCoins [MODULE]
getCoinsOfPlayer = require(script.Parent:WaitForChild("getPlayerCoins"))
game.Players.PlayerAdded:Connect(function(plr)
print(`Print {plr.Name} has {getCoinsOfPlayer(plr.Name)}`)
end)
-- coins [Server]
getCoinsOfPlayer = require(script.Parent:WaitForChild("getPlayerCoins"))
game.Players.PlayerAdded:Connect(function(plr)
print(`Print {plr.Name} has {getCoinsOfPlayer(plr.Name)}`)
end)```
@pearl blaze
if you needed this for states you can request the state with a function and handle the case where it returns nil
he literally just wants to find a way to change the order of connections to roblox events
14:17:03.194 A player was added - Server - getPlayerCoins:4
14:17:03.226 PLAYER has 10 - Server - coins:4
Many scripts using this module, the main stuff the module is working on is data that is connected to player.
There's a bunch of data and a bunch of functions.
have a function that might return the data before working on it
assume it can return nil
Wait...
works done gg next
So you mean like
How do I get a PlaceId of a place that isn't the starter place?
print(game.PlaceId) wont work for some reason
yes it will
local data = playermodule.getdata(player)
if not data then return end
...
Alright I can not return end on this case but you gave me a good idea.
dont do it while a game is running
print("Attempting to load player data from DataStore for:", player.Name)
print(game.PlaceId)
here's it nested underneath the print you see above. Also doesn't work.
Game isn't running in this instane.
my script says that the ID is sanitized but it’s under the same group
its in replicated storage under a folder
ok get it from asset manager > places then
💔
I healed it for you
shouldve used ❤️🩹
-- module
local playerData = {}
local waitingForPlayerData = {}
local function getData(player)
if not playerData[player] then
playerData[player] = {Somedata = 5}
end
return playerData[player]
end
return function(player)
local data = getData(player)
playerData[player].Somedata += 1
-- we're using player data somehow
end
@silver verge thanks you, this is literally what I wanted.
👨⚕️ 🩹
Finally someone who actually started talking and giving optimized solutions.
💝
Issue with this channel is that 99% of it is people just talking about something totally coding unrelated. Then ignoring questions about code in this channel, #code-help and #dev-discussion
😦
Yeah there's a problem that most people talk without giving any solutions.
It's happening like 50/50.
so u did end up removing the fucking event from module script
you havent been here we gave him 2 different solutions prior
I can't stop them from talking and it's a problem because they're flooding the chat.
how unsurprising
this guy bro
My problem like goes above all useless messages from people that don't have anything better to do.
I'm talking about in general. Not this exact case.
Average user asking for help 😿
anybody got some cool script editor themes ive grown bored of the default
like holy shit bro i've been telling you do that that and you say it's ignorning the problem
You didn't told me to create a data every time I'm using a function
Exactly. Prioritize us people, who they don't know and owe nothing. But we MUST receive help from the master coders.
THATS WHAT YOUR SCRIPT DOES
THATS WHAT MY SCRIPT DOES
THATS WHAT HIS DOES
There's a difference between completely writing your script and fixing your problem brother
Alright this is useless.
YOU HAVE TO BE SPECIAL
Next time if someone ignores, don't wants your help just go with it.

Bet someone better will come and give a solution.
wclxb saved the day
w wclxb move
fuck you respectfully

is the game youre working on related to the garden gameplay loop whatsoever
well anyone, does anyone know any fun stuff i can do with switching model mechanic

not even related its a complete rip off
build fast ship fast baby!
He's not working on any game currently I can bet 100%
i had the same idea to reskin it as potions
feedback thanks
dont think it'd work though
dawg im verified developer with over 500 million visits owned and over a billion contributed
since theres no visual progression unlike plants
"master coders" like those who read the complex code without having any experience
and im also probably younger than you
the annoying part is spamming again, I can't stop them from flooding the chat
please check my roblox profile 💔
js block them then bro 😭
of what
is that just a viewportframe
what
how do you plan on making other plots look cool so that players feel motivated by competition
no, i'm literally just switching between two different models
won't it look too similar and boring
very
the sols rng effect: cool vfx
oh are u changing network ownership just
add boss fights to that
idk, goodluck hope it works
No, just change the model that the player can control
rooting for you since i had the same concept 🫡
we have some gameplay mechanics to make it interesting itll be kinda like wacky wizards in a sense
ic
whenever a player joins, two models are created and player can switch between them
same player, just different models
Could cache the cframe and go back 2 it when switching might look and feel poop but worth trying
no netowkr ownership changes
Camera cframe*
Bro I did a commission for a guy wanting event analytics this guy does not know how funnel events work
that's why he comm'd you
At least know what you’re doing before commissioning a scripter
any ideas on what to cache
He doesn’t know what a funnel is
so thats actually.. your job..
is that not why he hired you, to do it for him, or am i stupid
Actually?
Camera cframe
guy wanting event analytics
Sorry I’m new the whole commissioning thing
no worries, everyone starts off somethwere
But it was just surprising because I had to show him how to access it on create
But yeah it all went well
sometimes you gotta do that
Got it
lol make sure you don't do everyone someone says, they might just be trying to steal your cookie or something
be cautious
👍
but the best part is eventually when roblox breaks shit and he has no clue how to fix it boom you have another commission
Either store in a table connected to the model itself or dump an attribute on that thing is probs the easiest way
Yeah
I charged $50 is that too low
not exactly
For 2 hours of script work
That's a steal
you made more than minimum wage
but depends honestly
Id say that's solid
id say thats pretty solid
Alright thanks
you got your comms from here?
Yeah
I’ve been solo for years I just recently started comms
Needed funds for my big project and thought I could get some extra money on the side
I’m in high school I started when I was 9
use what you did for commns for your portfolio and you should be getting there 👍
was this recent comm for fiak
Yeah I put the job in my portfolio as past work
i've been doing lua for only 4 years now 😔
Indeed
post a job
lol
Wow that’s a lot
small world
Yeah
i havent actually made any games i just flood chat apparently
that shi was a money printer before it got deleted 
Once I get enough funds I’ll save some then invest some into an account and then invest some into my game and
I’ve made about $200 total so far
thats dope bro
In 4 days
hell yea
It’s going good
how long you been programming for
im 20 💀
alright unc
Early bird gets the worm bro
and made a WHOPPING 3k robux in 6 months lmfao
4 years of training 💪
man i know how comms work but i never seem to be able to make my own
Yeah I’m trying
advices?
you gotta get connections to big developers
yes sure i'll do that while i have yet to have a portfolio
i guarantee you a person who has 1 game contributed but it has 5k active and 100m visits will get a comm before someone with 20 games contributed that all have under 100 players does
everyone cares more about numbers than skill now its crazy
always has been like this
that's easier said than done. to begin with, i'd have to find said big developer
you gotta be annoying
i was dming developers on the daily asking them to hire me LOL
and that actually worked?
yea i eventually got someone from this server to give me a chance, i got the game to 17k concurrent and then got hired for a different game later down the road
and the original game that i got to 17k concurrent got me verified and it was bbq chicken from there 
hmm
i'll try spamming dms then 
i've spent the past week build scripts for a portfolio
Dont be afraid of being annoying (unless u are moonhuh)
NO BRO DO NOT WORK FOR HIM
LMAOOOOOOO
- ex employee
WYM BRO PLAYCORE IS TUFF!!!!
bro you see my screenshot
yea ik
all those games have <100 players
im well versed in the playcore lore
and when i joined some of them have 600+
i ain't what they gonna do about me thorugh discord 💪
my friend is the one who got him verified
i was the ONLY programmer on like 6 GAMES 
💔
AND MADE LIKE $300 ☠️
wicked work
terrible waste of time
That’s a scam
dude thinks he can just buy games and get rich
you can def squeeze mad money out of that guy
not that i condone it but i do
Bet
idk where hes getting his money from now
dont ever take % from him tho
Yeah I never do percentage
he has a filthy rich relative with filthy rich connections
makes sense
Never again after past experience
only do % on games with an active playerbase
anyone wanna recommend me some scripting channelges i can gather extra scripting xp from
💪
dont take a gamble unless its your own project
learn buffers
buffers are fun
💔
i use buffers for my datastores now that they added them
ah
i love c++ its the closest thing lua has now
i dont wanna use them for datastores since player data dynamically changes
as the game updates
speaking of c++ does anyone want some old cs cheats i made
javascript
its not terribly complicated but it definitely is a struggle for some cases
This is a good idea I should start doing this too
none of my games would benefit from compressed data
Buffers are cool
never been a bottleneck
i wrote a networking library with bit compression though
so a boolean is a bit instead of a byte
only if you want a simple script to update a "table buffer" to look like this
module.Addingredients = function(player: Player, plantId: number, amount: number): (boolean, string | nil)
local data = memory[player.UserId]
local temp = buffer.create(110)
local ingredients = module.Getingredients(player)
local existing = nil
for idx, ingredient in ipairs(ingredients) do
if (ingredient.id == plantId) then
existing = idx
break
end
end
if (existing) then
ingredients[existing].quantity += amount
else
if (#ingredients >= 20) then
return false, "max"
end
table.insert(ingredients, {
["id"] = plantId,
["name"] = module.INGREDIENT_NAMES[plantId] or "Unknown",
["quantity"] = amount
})
end
buffer.writeu8(temp, 0, #ingredients)
for idx, ingredient in ipairs(ingredients) do
local offset = 1 + (idx-1) * 5
buffer.writeu8(temp, offset, ingredient.id)
buffer.writeu32(temp, (offset + 1), ingredient.quantity)
end
core.Write(data, 2, function(_buffer, address, data)
buffer.copy(_buffer, address, data, 0, 110)
end, temp)
return true
end

because of the offset...
arrays are looped over in index order by default
Maybe I won’t use buffers for data store
This is where chatgpt will save your braincells for you
im definitely not tryna chatgpt a buffer datastore bro

instant dataloss
Don’t use ai to code bro especially not this 🥀🥀
yo dudes any advice on how to simply get comms on the regular, apart from mass dms which i will do but after i build a stronger portfolio
#scripter-hiring probably
AI can write this if I can't
get a skill role and post a hiring
that works aswell
how regular would that be
I did really good work for the guy commissioning for fiak and he’s giving me regular work I think I got lucky
i only ever use ai to get a base idea on how to approach a problem but never as the solution if that makes sense
can't actively look out for that because i can only work on robux only mid/short term and #scripter-hiring is limiting
Fixed his server memory leaks and gave him analytics
he fired me while i was in the hospital because i wasnt working enough
u got any advice for me, like how u got started and what the process is for ya
That’s terrible
business is business unfortunately
couldve kept you on the team though
I do that too, I use that to make prototypes before I write any production code
But who knows, the prototype might just be good enough for production
he didnt even let me know he just removed from the gc and took my percentage out and we literally had another programmer there to help 
The first day is when I locked in I just combined all my work from my years of doing my own thing and made a dev forum portfolio and a talent hub page
continue
I also made a YouTube channel with videos
😭
I made a GitHub profile and other stuff and linked it on my portfolio w/ screen shots of my work you can see it in my discord profile
Rn I’m working on a fps demo to showcase my scripting skills and apply for the luau programmer role
how long after you posted your portfolio did u get any jobs
a github profile is slightly pointless if you dont have any open source or public code
and youre not using it for a job obv
Then all that was left to do was get active on the server and help a lot of people out with their code and things and once people saw that I guess they gave me commissions
Yeah I’m gonna remove it it has some info I’m not willing to share
what is that
Like that’s all I did I was just really active for a day and I got a little bit enough attention to get DMs
the "studio" i used to work for that really just bought into a ton of games and ended up killing them
But I also sent dms to people from #scripter-hiring where the commissions were within my capacity
company ahh studio
and how long did it take and how'd you go from there
kid with too much money thinking roblox is a get rich quick scheme ahh studio
roblox game companies be killing everything they touch
moreover did u mostly seek out for jobs in #scripter-hiring or did people come to u
Bro that’s crazy
All this is within 2 days
It’s been 4 days now I made $200
tbf its the fault of the ppl who sold the games in the first place they deliberately gave its life to the grim reaper
i might still have a message from our pm hold on
First day was setup and stuff the second day was when I got active on the server and I got commissions from there
He talks shit about his scripter to me when I’m working with him bro 🥀
L human
he talked shit about him to me too and then fired me like i wasnt better than him bro 
i hate roblox
😭😭😭
why u ending up in this situation in the first place stop working for rich skids
yea like 2 months ago
comms are a scam u just dont know it yet
Business is business but it gets to a point bro 💔
anyone a good scripter wants to be payed 4k robux to fix scripts that are not working
i wasnt on comm i was on payroll bro

even worse why are u getting a roblox job with 0 security
because i make a lot of money off my roblox job with 0 security
how much is a lot of money considering he fired u over getting sick
No
Bro the guy that he worked for was casually throwing 10-25K my way so if he got a percentage I think it’s a lot
British guy
usd? thats kinda crazy ngl
i was making maybe 2k a month off that game alone
Robux
thats not crazy ngl
when i worked for sw2 i was making 5k/mo at 16
110-150k
u couldve gotten better rates if u worked for urself and not a briish skid
fiak as in Fight in a Kindergarten?
im 17 gng i cannot fund a project 💔 🥀
well now u can
Yeah
If one's Roblox job has 0 security you're just bad, on a real note 😭
a ton of roblox jobs have 0 security its common
because all the roblox games are programmed by minors
usually a kid from a rich family wants to make a game or sum and then he starts hiring a bunch of ppl and fires them over the smallest thing
If you truly deliver quality a client will never think of firing you
and maintained by adults after they buy it from them
I disagree
I dished
External factors could also push them to fire you
until they think delaying an update by a few days on their 400 ccu game is life and death 💔
Bro my phone sold me
damn its really 2 am i got school in 6 hours
Damn I’m on break
last week for me
That’s the only reason I have time to do all this lol
AP exams in 3 weeks
And then finals in June
I agree but these are quite rare, eg. lacking budget (you can still get a % if comfortable)
i have hella track practice, a ton of homework, exams and state meets coming up
im cooked
morl gonna fire me 💔
Complaining- suffered aura loss
I play lacrosse and I have football workouts in the summer
I ran indoor track
im in an aura deficit bro i need to pr
I’m thinking of skipping workouts my body needs rest 💔
i have fb over the summer as well (american idk if you care)
I play American football too
my school makes fb lift at 6 am in the off season i have not shown up to a single lift
Anyone knows how can I make server to sell my models
I was a lineman on JV this year I bulked up from 150 to 175 my goal is 180 by football season so I can be a varsity tight end
Cool now try the real football ⚽
I did when I was younger I was trash
Never got better
i play wr but im lowkey a midget dawg
I basically did every sport until I found football and lax
I did rugby I was so ass
Fast shifty midgets are getting increasingly popular
those are the fast shifty midgets who are 5'9 tho
i'm a fast shifty midget who is 5'5 😭
I played soccer as a kid then basketball from elementary school up until freshman year
my dad played that in canada
How much you weigh
I’m only 5’ 10” lol I probably have no future as a TE
138 cuz i run track too
Oh yeah
I’m slowly transitioning to a skill position
ironically enough i had the most receiving yards and touchdowns on my team 😭
See bro greatness
but no aura i get to in n out after the game and the huzz all looking down at me 💔🥀
The bruzz hyping me up is a better feeling
No gay shit
lol
I made so much progress in the weight room
Bench press was 150 in September
Got all the way to 225
And squat 315 -> 405
that's dubs i'm small but i can lift
245 bench
220 clean
450 squat
560 dead
they call me endermite 😭
(i'm black)
Is table.getn() deprecated
I don’t think so but just say #table to get the number of items in an ARRAY (doesn’t work for tables)
For example if you had a table stored in a variable called “array” you would get the number of items in the table by using #array
does anyone know how to code in python
depends. send me your code
k
Is settings something roblox already has assigned to something? Making it not possible to assign values to settings? Or am I wrong about that
The values of settings are set by the user, you can listen to the changes of these values. Some settings like, shift lock, can be disabled
Okay, because I was wondering why I was having issues. My script currently tries assigning settings custom values like: settings = blablabla
But that explains it
is it possible to tween the color of particles

