#code-discussion
1 messages · Page 229 of 1
ask these dingbats #code-help
how did you learn how to code?
ts not bad js get better ui honestly
Yo
anyone wanna make some projects with me i just need a buddy that knows how to script and we can make stuff yk
You'd get more help for code off of modellers than you will from anyone active in code help
There's a reason people started asking here 
Can anyone help me
What's up, I'll help best I can when I get home
With?
ball is too delayed tbh
Is this c++ or am I missing smth
yoo lemme be a dev fr
ts so easy js le arn it urself but if u need then dm me
why does hum.MoveToFinished:Wait() cancel early sometimes when the npc is slow
who here a good scripter who knows datastores, I want to learn them because they are confusing for me, I tried learning from a youtube video but it didnt rlly explain it ykwim
holy chopped code and chopped language
looking for someone who can give feedback for a somewhat large project
what were you confused about?
i believe MoveTo has a limit to how long it can run for without reaching its destination before it gives up
8 seconds i think
everything, its js so long anmd stuff and i dpnt udnerstand like I could go through the code and memorize it but I wanna understand ykwim
I havent tried watching brawldev yet tho
bro data stores are the fucking worst
have you tried the documentation?
no
how would I find it
would I be abkle to find it all at once
or just indivudla lines
ill send you the link to it in dms since im not a high enough level to send links here yet 
oh nvm im awesome
there you go
yw
should I learn pcalls so I know why to use it before I learn datastores
Im still bnew so I dont know a lot, only the basic stuff (well basic to me)
yes
a basic explanation is that pcall means protected call, which allows you to catch any errors that a chunk code of may produce
catching these errors means your script wont stop running when they happen, and you can use the info from those errors in your following code
https://create.roblox.com/docs/reference/engine/globals/LuaGlobals#pcall
thank you I really appreciate it
can someone help me in dms
Anyone looking to buy games dm me
any1 know why this script wont work? I am trying to make bascially a variant on my sword and im testing it with this
local character
tool.Equipped:Connect(function()
character = tool.Parent
local player = game.Players:GetPlayerFromCharacter(character)
local folder = player:WaitForChild("testFolder")
local bv = folder:WaitForChild("testVariant")
if bv.Value == true then
local particle = Instance.new("ParticleEmitter")
local handle = tool:WaitForChild("Handle")
particle.Name = "Variant"
particle.Rate = 40
particle.Parent = handle
end
end)
tool.Unequipped:Connect(function()
local handle = tool:WaitForChild("Handle")
local particle = handle:FindFirstChild("Variant")
if particle then
particle:Destroy()
end
end)
NVM
i js realized I cant make boolvalues on the client
can someone like send me tips on how to code. this my day 1 and i know how to code a killbirck
Explain how your code works
this is my killbrick code
local killBrick = script.Parent
local function onTouch(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
humanoid.Health = 0
end
end
killBrick.Touched:Connect(onTouch)
basically the first line is how the code is for the brick
"How the code is for the brick" is not good enough of an explanation for that line
and then the other lines is when the humanoid which is the charcater hits the brick and health turns to 0
You're leaving out a lot of details
What's the purpose of the function. What is hit?
It means when the character hits the brick?
No
Yo gng can I like get some tips then
Spend more time understanding what it is your code does
It’s the part that hit the brick could be anything
Anyone looking to buy games dm me
Aight thank you
Watch Untitled by Divya and millions of other Roblox videos on Medal. #roblox
Anyone know why this could be happening? my pc and wifi is amazing
sometimes it lags sometimes it doesnt
its so bizarre
Watch Untitled by Divya and millions of other Roblox videos on Medal. #roblox
Rejoining fixed it
How's your network ownership?
Guys please help how do I make this sprinting with animation workkkk
print("sprint active")
--113202647639942 anim id
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local userInputService = game:GetService("UserInputService")
local runService = game:GetService("RunService")
local Humanoid = character:WaitForChild("Humanoid")
local isSprinting = false
local isMoving = false
local SprintSpeed = 30
local NormalSpeed = 16
userInputService.InputBegan:Connect(function()
if isSprinting then return end
if userInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
isSprinting = true
Humanoid.WalkSpeed = SprintSpeed
print("Player is currently playing")
end
end)
userInputService.InputEnded:Connect(function()
if not isSprinting then return end
if not userInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
isSprinting = false
Humanoid.WalkSpeed = NormalSpeed
print("Player is currently not sprinting")
end
end)
Anyone looking to buy games dm me
to tell what hitted the part?
GTA V Join In/Out
cool ig
Whaat does that mean
Hello, My script editor is lagging in roblox studio even on a new baseplate. in the workspace, everything is smooth but as soon as I open script editor it starts lagging. I have encountered this issue very recently. In the previous month it was working perfectly
Anyone looking to buy games dm me
whats the best way to give a player a tool when they join
do you have to here bruh
Give them a tool when they join
No fr tho put a tool in starter pack and the player gets it immediately when the spawn
oh youre deadass
thanks
Any scripters have good advice on how to actively learn scripting and what areas I should target first? Because I know some basics and such like scripting a killbrick and I used to know how to make a dash ability (forgot that one lol). So reaching out!
Scripting Roadmap The scripting roadmap has three categories, the basics must everyone know to continue with other more difficult categories. Intermediate is someone who maybe does already commissions and is already not really anymore a new programmer. It is also useful to check what you maybe never knew and now found out through the lists ▶...
my friend thinks he can learn scripting by studying free models yall believe in him?
no but you can get some info frm thme
yes stop worrying about how to learn and just learn
like you guys quit after a singular day
you learn scripting by sticking to it, don't swap languages constantly, stick to one language and push through it and you will learn
stop writing bad code
Probably a really stupid question but, im somewhat proficient with css, does knowing css help with learning html like at all? I assume not but also they go hand and hand? Im digging out an old laptop tommorow to dust off the really rusty css skills but the problem is the way im building a site doesnt allow direct css alteration and only allows HTML embeds so im going to have to attempt to learn it regardless to get this site up and running
free models have very bad code unless u mean packages by the community, but they r often not that readable
I think you should learn html first and foremost
Its kind of pointless to know css without knowing html
Like eating the sauce and not the pasta type shit
Oh I already know how to do css! I used to create CSS Huds for .io games and got commissions from that but I never had to deal with the HTML part mostly due to the fact I was only editing the face of the website and not building it yknow?
Ah
Not sure css would help understand html better because css is basically used to style as you prob already know
But html is sort of building the whole site
yes it helps
Yea i was hoping that maybe in a way understanding what the layout in css was for most sites would help me understand how to build the foundation for HTML at the very least
html is glue css is pretty paint js is cogs in the machine
Oh god I forgot about js-
html is also incredibly easy to learn

Not the point tho
Is it not? When I was introduced to it I was informed it was a code language
Well yeah you code
to be specific it is a markup language but nobody cares except for nerds
Idk its been like 5 years since I was like heavily using css
its more comparable to like notepad lol
Ah gotcha
Yeah im trying to make a site that will communicate with an api to display not real time stats but frequently updated stats to form a number equivalent to a value and use those to create a calculator for trading in a game that doesnt have any inbuilt values so im trying to set a small goal for myself (learning to build the foundation in css) then work my way up to the end goal of the full fledged site
Its a bit confusing with kinda just trying to do it myself with no direction
?
any one know how to code
I need advanced scripters that can work on a full game tds style paying in usd must have fast good work dm
pls dm if some one know how to code
check ur dms
Yk #scripter-hirable exists
"Advanced" expects atleast a skill Role or a portfolio
i dont wanna go through the work of getting a skill role
i have too many commissions to do allat😭
clearly have a portfolio in my bio
Ur portfolio got 3 projects and none r impressive
Ur clearly not having commisions
Ur begging in #code-discussion
can u not read..? top of my portfolio states why
i sent ONE msg, thats not begging😭
9 yrs experience. Yea all my projects got corrupted
No one believing ts
If u had a loy of commisions u wouldnt
thats not what my portfolio says
it says my rblx acc got deleted and i got a new pc so i dont have last work
yall talking just 2 talk im not arguing abt this bs😭
Ur ssd drives contains it + its not deleted out of roblox yk
- u lit should've had ur previous portfolio
i got a new ssd???😭😭😭
its a completely new build and literally i just use one baseplate to script for different commissions then i send a file😭
In 9 yrs programming in toblox
i didnt have a portfolio before, not everyone does, common sense pls
Connect previous ssd it ain't That Hard
9 yrs no portfolio
I had a new build yet everything stayed
U do not qualify to count as advanced scripter
i’m not arguing w u abt this bro😭
ur starting stuff js to start stuff its never that deep
common sense tells you to make one
everyone worth their shit will ask for one
@rustic furnacedms
sorry sir unless I'm blind there's no portfolio in ur bio
Me when I see a commission that has the word
“Fix” in it
Or “update previous scripters work” in it
I don’t think there is enough money in the world to get me to do ts
I’ve seen some things, man
I've actually had pretty good experiences with those comms
I once worked in a project that had 8 remote events included when I started and 6 of them gave way to exploits that would let you give yourself infinite money
One just literally was
Most of the time it was something relatively simple and I got like 3 - 5k off of it
So what
“AquireMoney(player, amount)”
I don't care don't talk to me
USD or Robux
I got 1k usd for what I did
Oh
It was a simulator
how many days
They just had a lot of funding
I’d say I worked on it for about 3 weeks over a long period of time
man
I was working for 30 an hour
I guess that's alright
So like 30 hours of work?
I wouldn't know I stopped doing comms and did volunteer work instead
They owed me 1500 they just gave up on the project and didn’t wanna fully pay me 🥀
I would do that
If I could find a team that was motivated
lol
And didn’t give up after a week
The amount of times I’ve found people who volunteer to help me with my projects
To do 1 thing then ghost me
@fallow dock 🥀
noted
He did it two times
Will avoid this guy like the plague
Bro 😭
He did it once dmed me a year later saying he was ready to try again and how motivated he was this time
To ghost me after another week 😭
lmao
You can’t make it up
Von
Thanks for the show and tell jamal
can anyone be my sensei
guys can someone help me, i feel lost, i just watched dev kings scripting tutorials and now Ive learned all of those idk what to do with it, can someone tell me what I should do to get good as as scripter
by scripting and getting experience and also learning how stuff works
also try to make alot of stuffs with scripting
are you a scripter?
Yea
I made a script that when I click the shop button it opens it please i really need help I’ve been trying for over an hour I can’t find the solution to why it’s not working 🙏🙏🙏🙏
Nice how are we supposed to help without the script
I been working on the same game for 3 years and redesigned it many times and rewrote everything many times 😭
if only u locked in
ur life would never be the same 🙂
any tips for me im also i scripter i wanna get more commissions
roblox doing anything exept give the feature to add custom importable fonts.
no text wrapping, prefer using multiple spaces (also saves time wasted)
the dialogue script runs as a module script and can be easily called out. tried it first with a remoteevent buuuuuuut. was super annoying
instead of calling to a event, then the handler sending it to the client, then the client receiving it. all i can do is paste a simple (dialogueMgr.SpawnDialogue(ID, speed, font, Voicebank, minPitch, maxPitch, msg)) and call it a day
please help me
anyone
please i cant import animation i made
using the default animation editor
why dont u name them?
im a lil stupid
but even the named ones
its like once i save it
thats the only time i can use it
what you could try is opening it up on the creator marketplace, download the RBXM and import them into studio, thats the only thing i could think of tbh
i dunno how to do that
mind showing me
my savior
i dead ass dont wanna remake these animation
they were perfect doubt ill hit the same angles again
dem strokes were dam near perfect...smh
i dont got moon animator
yea thats why i closed it and used the normal one
lemme see if mines work
Roblox is so dumb, it can literally see I just set it 1 line ago.
you wrote "Instance_new" instead of "Instance.new". do you have a custom function named Instance_new?
because if not, that's why
i love you
or the function may not have a 100% chance of returning a new instance
glad to help
W's in dah shawt
local Instance_new = Instance.new
micro optimisations
Me too
I’ve been working on the same project since 2022 but mines evolved to unity
Are you at that stage yet
Would it be more efficient/smoother to make a custom physics engine to replace the roblox physics engine?
Probably not
but it also depends
agh but I'm trying to figure out a way to slow down tick speed and timescale
I doubt you should make custom physics for everything in your game
and the methods I've found for that haven't been satisfactory
well there's not much besides a ball, and the players
and I need both to be affected by a timescale property
What's timescale?
depends how much would be moving i think
basically most engines have a timescale so you can slow down how fast the game runs
except roblox
because they suck
and there has actually been a demand for timescale for quite a bit.
but they haven't added it 😭
That's because everything is tied to the framerate and nothing is fixed-step
I think
then let us change the server framerate
at LEAST
Slowing down the framerate in order to slow down the physics is not a good idea
the effort of them putting into the age segregations chatting couldve been putten into actually improving the engine and adding more features that shouldve been added a looooong time ago
EXACTLYYYYY
like a better animator
and support for bone resizing
or atleast letting us animate part size
or maybe improving tweenservice
like being able to use one tween for different objects
roblox doing anything exept address their drama or add good features.
tutorial on how to procrastinate your inevitable doom of your company to draw out as much money as possible
anyways back to this.
the only things moving would be players, and one part which is a soccer ball
but I realized that because the ball uses a physics based system it gets all jittery for no reason
I need it too look smooth for players
then i would say making a custom physics script or just a complex script to make it more realistic would be really good
but still be in sync
Roblox did actually get a lot of good features implemented this year
like aerodynamics?..
although to be fair, a lot of their work I think went into the AI stuff that's just made to impress shareholders
who the hell is using aerodynamics for their slop game
yep...
greedy company 101
yea-
actually tell me I don't really know what they added-
besides aerodynamics and new humanoid controllers
which the humanoid controllers are def a W
but still need a bit of polishing
Hi
EditableMesh and EditableImage is from this year no?
or is it from 2024, I can't remember
maybe you could make a serversided ball and a client sided one, basically the servercontrolled one would be invisible and the client sided one could follow the server one. and maybe some jank script to calculate smooth curves or smthn like that... never did it before and dont know if it even is possible
I mean azure latch has really good ball replication
but they don't use physics
they have desmos 💀
graphing app
Yeah my bad that's 2024
what can you use an editable mesh for
yea lol
it's not that hard to understand but basically what I'm saying is that they have a script to generate a 3d graph,
then they just make the ball follow it
really... really... insane for a goofy game like azure latch
yea lol
i swear its always the goofy games who have impressive stuff
jjs
🙏
jjs just added NPCs, and oh my days
Builderman May Cry
whattttt
the npcs are better at fighting than 70% of the player base
lollll dope
Cool-looking oceans
Procedurally generated terrain
useless stuff for Roblox
that's actually really good,
but what about like.
characters
?
like I see it has a getBones() function in it,
that implies something to do with animations
so what can be done there
very bougie
indeed
we can now create minecraft
in roblox
oh but wait can we generate a noise map-
local Wallet = LocalPlayer.Pants.LeftPocket.Wallet
Wallet.Value = math.huge
Alright guys
I'm mentally ill and I'm assuming you two aren't
so could you care to act a little bit normal right now?
I got kicked in the face yesterday
so I'm prolly, not ok-
Because the point is that you use the noise map to generate the terrain, and the EditableMesh to render all of it
theoretically, its something worth a try, using a image for terrain height, which prob wont work but....
and I'm very sure I have head trauma too
yea yea, but idk how to generate perlin noise :p
Yeah, which is why games like Minecraft use 3D noise
thats how minecraft does it
totally, it's just the image idk how to do-
hmmm
wait can you even look at a pixel of an image in roblox?
i have an idea
you could have a library of noises which connect in a tile
basically a proceedurally generated tile of noisemaps which then get SOMEHOW by some miracle converted to terrain
i could try it
i need a break for working on my game anyway
ill keep u updated
I actually researched once a lot into terrain generation with gradient noise
and in how Minecraft does it
imma go to rest...
go a vid i could watch when i wake up about that?
Actually its perlin noise
built in function in roblox
math.noise(xposition, yposition zposition)
could use math.random() and multiplying to generate a random seed
or does math has math.seed
i forgot lowk
It's actually way more complex to make a good terrain
I was gonna make a devforum post about it but it just wasn't worth it to write allat
perlin noise is smooth gradient
how could that not be good
you can configure it tho
for it to be more smooth
like for plains
Yeah that's not what real-life terrain looks like
and some people need to also generate caves, not just the top layer
Hm
i mean its still perlin noise just on top of more perlin noise prob
You have to use a 4D noise, usually simplex
The three dimensions are for X, Y and Z
the fourth is just the seed
that wouldnt be exactly 4d
Who cares
and for biomes, you use a set of different simple 2d perlin noise that determine things like moisture
temperature
I can't remember much now
but there was actually a video of a presentation that explained it, made by a Mojang employee
There was this one constant that was very important to how caves generate and I can't remember any of it
For a game that has a trade system, what is the best server size?6? 10?
10 or more
Its easy to convert to terrain, you ever wondered why the minecraft height limit went up to 255 and down to 0 before the cave and cliffs update?
U deserve it bro, what u workin on?
Yeah I found the video I was talking about https://www.youtube.com/watch?v=CSa5O6knuwI
In the Caves & Cliffs update we radically changed Minecraft terrain generation, rewriting large parts of it from the ground up. This video summarizes how this actually works, how simple math and code can be used to generate interesting, beautiful, and dramatic terrain.
00:00 Intro
1:14 Size
3:11 Procedural terrain generation
8:47 Perlin noise
1...
.
I think
also finished the undertale/deltarune style dialogue
and the sound library
killed me today
What game u workin onnnn it sounds w
watching this while goin to sleep
basically deltarune in roblox and with custom bosses
yo is sm1 like able to help me in my game, this is lowk my first time making a combat system with Downslam and uppercuts and they feel kinda sloppy with the timings
Ooo cool.
Im making a soccer game but its gonna be a lot different from the other ones.
Its finna have a devil may cry combo system.
I might actually feel like making a devforum post about it now
even though it's been like a year or two
I'm an analystic and i've been making the feasibility study of my game for some days, and i'm trying to find a way to find any errors, but i just don't find it, i already sent to my team and i can answear all questions and i tried IA too. do you guys know a site or smth that can actually ask good questions so i can finally fix something?
Keep rewriting your script over and over, make improvements and make it fast.
Dont be afraid to change things that you expect to be different.
In this case you can make a modifier button that changes your moves a bit, so when you hold it down, it does an uppercut and doesnt let you jump, but when you let go you can jump and do a downslam, and if you're in the air and hold the modifier button it can do a new move no one has seen before.
What are you doing when you try to find a bug?
And whats the bug
(I feel like this is ai bait but whatever)
What's the pay
Go dm him-
For example, my inicial idea of my project is to give a common hero for the player, so he can start using it, people are saying to give a good hero right on the start so the player think he got lucky on the game and get exitec, but i disagree with this idea, since yes, they will find it great, their dopamine will grow a lot on the start, but when you get too much dopamine on the start, your brain will always try to get even more dopamine, or he will get quickly tired of that, so on the first 5 minutes he will find the game great, but because of this explosion of dopamine he got right on the start, he will quickly get tired and will leave the game faster than he would.
And i need atleast 30+ minutes of playtime
Thinking like that is the problem here.
for a obby or a generic game the high dopamine is good, but for a long game, i don't think so
Let me ask you this, what game makes you come back to it often?
On general or on roblox?
General
Counter Strike, competitive ones
Why is that
Because i always remember how good i was and i want to come back and make that fire flicks again, so i can come, notice that i am horrible and practice over and onver again untill i get good again
the exactly logic i explained on the image
progress of dopamine
not taking it all of once
how is this chat alive
(Kinda depressing but still works)
That is the environment you feel you belong the most then.
Now it wouldnt work if csgo tried to make it work for as many people as possible.
You have to know your target audience
You need a topic to start
I still didn't get 100%¨involved with market(wich is the next step), but i have a clue that the new generation wants things fast
Arsenal is a roblox arcade shooter focussed on the gun game mode from call of duty, so people who enjoy that type of game will keep coming back.
Shhhhh ignore the market right now
What you need to focus on is the audience you want to satisfy
Not the general market
alr ill try to
If you focus on what everyone is playing it wont matter if theyre already satisfied or dont want anything more
Or atleast the scope has to be huge
Like baldurs gate 3
You are saying that i need to find the audience first so i can find the inconsistencies on the systems?
If you find the audience, and know the audience, they will show you the inconsistencies themselves, because thats what they demand
makes sense
No idea
also go to dev dicussion
Where can i find them?I'm looking for a audience that likes to build a comunity
Well
Just be active and social
Like, the game itself has many aspects that people would want to discuss about, like the trade and strategy of bases
Grace is a good example, its a pretty niece genre but the following is there, its a roblox, speedrunning horror game where gameplay is at the center.
It takea inspiration from doors, which is also a roblox horror game, but it is more focussed on its story and is designed around its much slower paced gameplay.
Grace was created for the people who wanted the same game formula as doors but at a high octane speed.
If you want to find an audience the best way to do that is to become apart of it, or look at the most polarizing playerbase.
Grace only got popular cuz of door's and pressure's player
They only played grace cuz it was like doors and pressure
Exactly, because there were people who wanted more put of those games (including me)
Well yea but still the main goal was to get players from those games
Yes but the people that stayed were the target audience
Also the standards of roblox is genuinely fried.
True...
Find a brainrot hit 700k ccu
Yea nothing gonna stop that from happening ig-
then, i have the perfect game for this, this shitty game had the EXACTLY same idea i had months ago and i needed to rebuild it and make a better idea
Good idea!
so yea..
I got many ideas and they are all original since I checked but I just don't got the skills to make the games so just focusing on learning
Anyways my break is over I should go back and study ..
Yea thats where i started, just focus on creating different types of frameworks, from simple to complex
Now i finally mustered the courage to start developping my first game
Every new developer gets hit with a very hard reality check 🙏🏻
Yup
Its a huge wall
Almost incomprehensible sometimes
But you just gotta keep going bit by bit
When I was new I thought toolbox was safe.. even the highly rated models
Ripppp
Good luck soldier
yo how much would yall charge for a combat system
depends
on how advanced it is
and how smooth
it is
anyone wanna make a game together? i know a bit how to build but coding i just cant figure out
click and they take damage
💀
Yo I need help with task.spawn()
Im what way
If I run it and give it a function after saving it as in a variable like this:
V = task.spawn(function()Myfunchere()end)
Then does V.cancel(Myfunchere) end the function run while its running?
Assuming V is defined already before in the code
That's not how you cancel threads
You need to do task.cancel(thread)
Yeah
So it would be task.cancel(V)
Yeah
after study for many hours my playerbase i found out that i will need to change many things to not repeat the same error as "build ur base" 



This has to be ragebait
So it would be task.cancel(V)
yeah this cleans up the thread
hi i have roblox game name
Throw a block for sale
game idea is you throwing blocks on animes and upgrade and alot more of things
dm me for more details
yo guys
ima be real with you guys
I've been looking for a scripter to help me out in my game for ages
and didn't find anyone who's willing to be paid in %
i've been working on a huge game solo since last year, and im almost done
the game is a really unique clicker simulator
its called clicking bonanza
i wanna make a basketball game, i know how to script but ive never made anything like a basketball game, can anyone explain 2 me how the basics of a basketball system would work, dis is a long question but if u answer tysm
I got a podium in my game that top3 players show up in, one of them has a harmonica item that has a server-sided script. Is there a way i can turn off the scripts on accesories?
Or should i just manually check every player when they join and delete any scripts
how could i achieve something like phantom forces' leg ik
can anyone help me, I watched a video on datastores and Its finally kinda clicking into my head but I need help writing it, if someone can hop on call with me and coahc me through it so if I make a mistake while writing it, you can help me
local DSS = game:GetService("DataStoreService")
local saveVariant = DSS:GetDataStore("Purple")
game.Players.PlayerAdded:Connect(function(player)
wait(0.1)
local folder = player:WaitForChild("variantFolder")
local bv = folder:WaitForChild("purpleVariant")
local startValue = bv.Value
local success, checkValue = pcall(function()
return saveVariant:GetAsync(player.UserId)
end)
if success then
if checkValue ~= nil then
bv.Value = checkValue
end
end
end)
game.Players.PlayerRemoving:Connect(function(player)
local folder = player:WaitForChild("variantFolder")
local bv = folder:WaitForChild("purpleVariant")
pcall(function()
saveVariant:SetAsync(player.UserId, bv.Value)
end)
end)
can ygs tell me whats wrong with this, its my first datastore script ever so thats why its prolly bad
are there any errors?
doesnt save
local MenuServiceUtils = {}
function MenuServiceUtils:GETPARTANDCAMERA(part:Part, camera:Camera)
part = part or Instance.new("Part")
camera = workspace.CurrentCamera
part.CFrame = CFrame.new(-3617.4, 826.517, -297.4)
part.Anchored = true
part.CanCollide = false
part.Transparency = 1
part.Parent = workspace
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = CFrame.new(-3617.4, 826.517, -297.4) * CFrame.Angles(0, math.rad(180), 0)
return part, camera
end
function MenuServiceUtils:GETGUI(Frame : Frame)
Frame.Parent.Enabled = true
Frame.Visible = true
end
return MenuServiceUtils
can any1 tell me why my gui isnt showing no errors also printed frame.visible it even said it was true but no gui is showing on the screen why
I got a scvript where if the value = true then the sword gets a particle effect it works when I put the value to to true but doenst work when I rejoin (because its not saving)
datastore
you should also connect the player leaving function to game:BindToClose, because if the server stops instead of just a player leaving, playerremoving wont be run in time
https://create.roblox.com/docs/reference/engine/classes/DataModel#BindToClose
np
why dont u js use data store?
but if I test it rq like I leave the game instead of unrunning iot will it work u think?
js want to test to see if it would work
day 6 of progress on my soccer game
they are, its just not saving
thts weird wheres code
you could run the game with two clients in studio and have only one leave
lowkey might haveto upd my pc its mad laggy
^
first off task.wait
second
alr
task.wait and wait dont matter lmao
task.wait is better than wait but wait still works
well yeha thats what I meant like its not stopping it from working
yea use bind to close not player removing
unreliable
can u show me how to use the bidn thingy in it rn I gotta upd my comptuer cz its laggy so I cant rlly open the doc
bro game:bindtocose
you gotta use both lol
i dont use player removing like that
too unreliable
but yea does any1 know?
how would I add it to my script because I neevr seem this before mb
?
put your playerremoving logic into a separate function, then bind the playerremoving to that function
and bindtoclose has to loop through all players and run that function for them
e.g.
function playerLeaving(player)
-- logic
end
game.Players.PlayerRemoving:Connect(playerLeaving)
game:BindToClose(function()
for _, plr in ipairs(game.Players:GetPlayers())
playerLeaving(plr)
end
end)
guess thats a smart way to do it he gave u
run it like
game:Bindtoclose
then run the playerleaving function
inside the bindtoclose function
local MenuServiceUtils = {}
function MenuServiceUtils:GETPARTANDCAMERA(part:Part, camera:Camera)
part = part or Instance.new("Part")
camera = workspace.CurrentCamera
part.CFrame = CFrame.new(-3617.4, 826.517, -297.4)
part.Anchored = true
part.CanCollide = false
part.Transparency = 1
part.Parent = workspace
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = CFrame.new(-3617.4, 826.517, -297.4) * CFrame.Angles(0, math.rad(180), 0)
return part, camera
end
function MenuServiceUtils:GETGUI(Frame : Frame)
Frame.Parent.Enabled = true
Frame.Visible = true
end
return MenuServiceUtils
can any1 tell me why my gui isnt showing no errors also printed frame.visible it even said it was true but no gui is showing on the screen why
where are you running it from? is it in a localscript? and are you sure all parents and required children of the target gui are also enabled and visible?
no errors in a module script thats a child of a local script
theres no errors and even runned some debug prints
local MenuService = {}
local MenuServiceUtils = require(script.Parent:WaitForChild("MenuServiceUtils"))
local RS = game:GetService("ReplicatedStorage")
local Camparts = RS:WaitForChild("CamParts")
local StarterGui = game:GetService("StarterGui")
local Frame = StarterGui:WaitForChild('NEWMAINMENU'):WaitForChild("Frame")
function MenuService:Init()
MenuServiceUtils:GETPARTANDCAMERA(Camparts.MenuServicePart, workspace.CurrentCamera)
MenuServiceUtils:GETGUI(Frame)
print(Frame.Visible)
end
return MenuService
and the prints are running?
yep
oh i see
says true
you're getting the frame from StarterGui, not the player's own gui
StarterGui is for templates, which are then copied to player.PlayerGui when they join
it means each player has their own gui
yea but when i tried to get playergui in the module it didnt even work it errored
local folder = player:WaitForChild("variantFolder")
local bv = folder:WaitForChild("purpleVariant")
local value = bv.Value
pcall(function()
saveVariant:SetAsync(player.UserId, value)
end)
end
game.Players.PlayerRemoving:Connect(function(playerLeaving)
game:BindToClose()
for _, player in pairs(game.Players:GetPlayers()) do
playerLeaving(player)
end
end)
like this?
if its a local module then you should just be able to to do game.Players.LocalPlayer.PlayerGui
you could also potentially use WaitForChild on the PlayerGui and Frame
call playerleaving function in the game:bindtoclose funciton
bindtoclose is separate from playerremoving
^^
PlayerRemoving is called when a player leaves, while BindToClose is called when the server stops
Just use profilestore🙏
currently youre binding BindToClose every time a player leaves
reread my example and compare it to your own code
oh I didnt put a ufnction in it
i dont think its a good idea to go straight to a framework without atleast knowing the basics of the core system
?
i stick to datastore but just make it better
I mean I went straight in without knowing the core system and I turned out fine🙏
in PlayerRemoving, youre making a new function and then using BindToClose inside that function rather than just binding PlayerRemoving to your existing function
Just read documentation on it
U think?
i dont use profile store even know its proven to be better i js build on datastore and make it better
Fair enough I just hate backend🙏
function playerLeaving(player)
local folder = player:WaitForChild("variantFolder")
local bv = folder:WaitForChild("purpleVariant")
local value = bv.Value
pcall(function()
saveVariant:SetAsync(player.UserId, value)
end)
end
game.Players.PlayerRemoving:Connect(playerLeaving)
game:BindToClose(function()
for _, player in pairs(game.Players:GetPlayers()) do
playerLeaving(player)
end
end)
this?
thats the same code
yea i sucked at it until i just kept failing and failing
bro what
oh wait
its just formatted weirdly
yes thats it
still dont work I also got the api services or wtv its called on too
are you sure the folder and value are actually being created and changed? because i just tested it and it works fine for me
they arent being created there Im finding it but should I create it instead in there? it already exists in a different script
it shouldnt matter where you create it since youre using waitforchild, so long as its created eventually
hm idk then
try making it isndie a different code and doign the same code as me see if it works? maybe? u dont got to cz it takes time
still fine
show me where you're creating them
game.Players.PlayerAdded:Connect(function(player)
local folder = Instance.new("Folder")
folder.Name = "variantFolder"
folder.Parent = player
local bv = Instance.new("BoolValue")
bv.Name = "purpleVariant"
bv.Parent = folder
end)
script in serverscript
and does that work?
yeah
where is the datastore script
I got a local script that gives me the bool value
ahh
in serverscriptservice
theres the problem
oh
you have to set it on the server
localscripts will only change things on the client, so the server cant access that new value its being set to
wym
I mean like the script I js gave u that creates the bv is in a script
I just meant I have a local script to give myself the boolvalue so I can test it
but tahts not where its created
LocalScripts are exactly as they say, local
anything executed in these scripts will only apply to the client they were executed on (unless they have authority, for example, their character)
if you set the value of a BoolValue in a LocalScript, that change won't apply to the server, meaning your datastore script can't actually see the change and will use whatever it already has
you would have to use a RemoteEvent or just trigger the change entirely on the server for it to be saveable
yes, set it on the server
is there any other way to make the bv true besides writing a script
wheres that mb
^^
oh alr ty
yw
what the hell is wrong with roblox studio
it keeps giving me new incidint ids as well
before it was
i tried asking chatgpt i did the steps which say delete logs, caches uninstall roblox studio turn off wifi restart ur pc nothing changed but the incidient id did
dang
yo could anybody help me with a script rq?
ill try
someone drop an idea of what I should script as practise as a beginner/intermediate
Guys can someone help me with scripting. I've learned all the basics from thedevkings advanced and basic series and I want to start trying to make my own systems for practice but I have no idea how to piece it all together
bitpack 4 booleans from client to server using bit32 and remote event

what
i want something fun
ok thats lowk good because thats something i want to make in a future game
ok
thanks!
show me when you finish it
okie dokie
yeah prob means you got removed from the tc
the thing is the game doesnt have a tc(its disabled)
im the only one its a solo project g
not only that all the places i try to edit , look at this its not in a group or anything but it shows this
same on my alt
what do i do now? the marketing?
i finished the game
Chat im lwk proud of myself i made a functional combat system
a
nice
how do u even do that
can u tell
is there a package for queueing methods / functions
Thx
hi
i need your feedbacks
How do i make something that sends a message in chat from the system? like if i wanna make a weather system that tells people when its raining.
Lol. SO
textchannel send system mesage
After making 50% of my code comments
My application has been pending for a few days
This is good news
Does anyone know how to make paint not thick and make it flat? I'm trying to make a whiteboard
it's a shame that we need to make 50%+ of our code into comments
what is it about
an obby
nah
You have to make it understandable to someone who doesnt know how to code pretty much
ah shit
explaining it to a 9 yr old
any scripters for hire?
na
it took me 4 hours but i did it
ill send in creations
nevermind ill dm
app for what
Me dm
yo guys i have 20 ad credits which is like 5k+ what should i do with it, for now i am currently working on a game about if you Step The Button it will occur some random events or anomalies. Should i use my ads credit to this game?
Use it for my game I’ll give u 10%
Of the game
any one who intrerested to buy roblox game
dm me
for more details
bro
zoro
sorry but i can't trust anyone that instantly
you can do commissions if you need some rbx
ts is really nice
Chat
local data = {
["content"] = "";
["embeds"] = {{
["Author"] = {
["Name"] = plr.Name;
["icon_url"] = "www.roblox.com/headshot-thumbnail/image?userId="..plr.UserId.."&width=150&height=150&format=png";
};
["description"] = "Message: **"..index.."**";
["color"] = tonumber(0xfffffff);
["fields"] = {
{
["name"] = "User ID";
["value"] = plr.UserId;
["inline"] = true;
};
{
["name"] = "Account Age";
["value"] = plr.AccountAge;
["inline"] = true;
};
{
["name"] = "Team";
["value"] = TeamValue;
["inline"] = true;
};
}
}};
["footer"] = {
["icon_url"] = "";
["text"] = "Message Logger v.1.0"
}
}
local FinishedData = HttpService:JSONEncode(data)
HttpService:PostAsync(url, FinishedData)
anyone know what's wrong with my data
What are Lighting parameters in roblox studio to make 1990s anime graphics like this?
Bud
Yeah
All cool bro I didn’t expect u to do it anyways lol I was just suggesting
https://gyazo.com/a6b6624c5be46996e1655e2ac63b35ef why Getmouse and getmouselocation dont have the same pos
I dont exsactly know but i would guess the one is the screens position and the other one is the pos inside the window. but this is just a wild guess
add guiservice:getinset to it
one is screen position, one is viewport position
bro what means yeah?
I mean what should be brightness and etc in lighting
to make it look like 1990s anime quality
Mhm
Can someone help me on how to make a currency code
more specific
Like a code that gives players money like steal a brainrot
THen a UI where it displays it
ik this is wierd but what are sab-like games
steal a barintotyororitor like games
like not exactly steal a brainrot which im tryna create but
steal a gun
not helping, learn to make an actual game
Ive made army games and theyve failed 🥀
yo just curious, what stuff is alright to keep local?
anything that doesn't allow exploiting
I know local scripts and such can be accessed with exploits/scripts, but to what extent should I put stuff on the server
mk
everything that is unexploitable should be on the client
if u say i should create a real game what should i create like that genre
Maybe opposite? Client can be modified by the user
read that again
everything that is unexploitable (not exploitable)
playing animations
idk
How many month of experience
4 hours
Bro what 😭
ok lets take everything important and exploitable and give client free reign over it, and then anything unexploitable lets put on the server and cause latency and protect it from something it doesn't need protection from

Nah bro read,@dngr explained to me
?
Save it for better games in future.
ya
should i remake them or is there a easier fix
im new to ui design
i was at work so i appologies for the late response
yo guys can someone explain me how could I fix this
always spawn the same box , rarity , mutation wth
recode the way ur function works i can tell smth isnt coded well, maybe im in a diff game category but thats how i would do it
but idk whats wrong in my script
add debugs to check whats wrong and whats interfering with ur functions
all my scripts are correct but always spawns the same shit box
well make a function that prevents the same box types from spawning multiple times
I dont think its a good idea but anyways
well thats how it is, if u think thats a bad idea thats good since you know ur own scripts, find a way to fix it wether u do it threw debugging or rewriting the code its all your choice
skid
heh
is it hard to hire someone to make smooth running and dash sytem? like the shooting game got *rivals
its gonna cost you some money, it isnt hard to find someone who can do it but how much they want to be charged
well
how much like
around what?
in usd
i cant tell you tbh
you can go around asking some professionals
Id say around 130 usd
cool
130 is overpriced tf
Ur clearly jot a programme
value urself
it would be like 30-40 at most
Does this seem right?
yo btw ur a scripter right
Yea
I fixed it up a bit does it seem right?
At 20bucks/hr hmmmmmm,nah
130 is crazy for that bro
I would maike it for 40
20 bucks an Hr meaning its Done on 6.5hrs. The system has to Be smooth,competitive, polsihed
bro im fried, my pc is at a stable 5-10% cpu usage but it keeps jumping to 100% and it lags and idk why plus roblox studio, roblox, and discord takes 4% at max
Ur not making a Good system Like That unless u undervalue
And im pretty sure u do not know how to make it either( no offense) since u jus learned datastores
no ones paying 20 bucks per hour lol
learning
I learned datastores in 10 mins
It ain't Hard?
well I watched a video to grasp the concept of datastores which was 40 mins bcz datastores is like one of the only things that I couldnt uinderstand
Good developers di
yeah ik but Im js saying I can learn stuff fast
I could in 5
cool
datastores r easy when u undersatnd it like mad easy but when u dont understand it, its rlly confusing
nah
I couldnt undersatnd it at first
what I had to do was watch a video so I learned the concept of it then I learned from chat gpt wrote a script and now I can write a script on my own
Ur not making the advanced movement system
and dont make fun of me for using chat got
Im not joking
could*
I dont got the knowlege rn cz i never tried learning but I could learn like I SAID
could
can someone help me trying to make character rootpart face the direction of the camera
There is no tutorials
yeah alr
tahts why I would leaarn and practice
thats what learning ios
i dont care
the people they hire had to lear nit at somepoiint rigyht?
its the same thing
Im js learning it later
They do It before accepting commisions
never said anyone was goign to hire me, just saying I would do it for 40
I never said anything about that just saying I would do it for 40 like what
I would learn ikt and then do it
Problem is u couldnt do it bc u don't know how
Say the price after u do
when u started scripting u didnt know stuff either
U are
the point is I would learn and do it for 40 not that someone will hire me or not the poi9nt is that 130 is too much
ur saying all of these othert stuff
not related at all
To say it u could do It at a price u gotta know how to make it
U can't set a price w out knowing how to make it
i mean Ik what it is
how to do it
When i say how to do it not write it
just how it works ykwim
so Ik what priceb efore I learn how to write it
ANY SCRIPTERS OR BUILDERS DM ME
guys, want to ask
how can i make a player drop their tools upon death? Roblox does not let my script get tools from their bagpack..
Hey chat, do yall think the flowers look good or should I change smth?
maybe lower the triangles cuz UGC limits that (btw please ask this in the proper channel)
cuz this one is only for coding
Oh mb
it's okay
it's okayy!
mini mod mini mod mini mod mini mod mini mod
i mean it would lag out most games
happened with a ugc that bypassed the triangle limit
????
can anyonne help me set up a UiListLayout for my custom inventory for my hotbar?
it's pretty self explanatory
if ur checking for the tools in their backpakc after they died, it prolly wont work cz the player is daed therse no tools u should prolly check if their health is 1 or lower maybe?? coulda sworn there was a setting for drop on death but maybe Im wrong
nvm someone helped me before
but thanks for responding! 🙂
do yk any1 who knows datastores
i mean i know someone
but i think he's busy rn
I wrote a datastore for 1 bv I want to add more I dont know how to (anyone hwo sees this msg tryna help me)
yeah
Who?
who do you think
Idk thats why am asking
okay
So who
who do you think
Omd
okayyyyy
for i, v in gui.APK.Tabs:GetChildren() do
if v:IsA("TextButton") then
v.MouseButton1Click:Connect(function()
Tab = v.Value.Value
if Tab.Visible == false then
switchTab()
Tab.Visible = true
else if Tab.Visible == true then
switchTab()
end
end
end)
end
end```
wym
nesting.


