#code-discussion
1 messages · Page 223 of 1
its not hard coded, its a literal/constant then
“Hard-coded” means a value is fixed directly in the code, so the program can’t change it unless you rewrite the code.
yes
and change it everywhere manually where u used it
so instead u should just use a variable, so u only have to change the variable
so if u put that number in a module and then use that number evrywhere without changing it means ITS HARD CODED
then whats the point off putting it in a module script ?
so you can access it from anywhere
the game may rely on global constants
but u said ur gonna change it evrywhere
if it is hard coded
so what lets say u put local mynumber = 1
aka magic numbers, using literals everywhere instead of just using a variable
then u go to ur script u require the module then u put task.delay(mynumber * 5) ???
???
thats legit what i am understanding off ur weird ahhh coding methods
local CONSTANT = 5
task.delay(constant)
or with the other guy’s example
local MIN = 3
local MAX = 5
task.delay(math.random(MIN, MAX))
take for example pi
3.141
lets say u want 10 digits of pi
yah thats still hardcoded
u would then use a constant instead of typing that shi out everywhere
how long did it take you to learn it
local Mouse = game.Players.LocalPlayer:GetMouse()
Mouse.Icon = 'rbxassetid://11443215934'
guys why does this code not work
what do you guys think about coding using ai? not vibe coding its like making your code structure and describing it to ai?
From my testing, its shit
Gave a GPT my code to find unefficient code and suggest fixes, got back code with 3 critical functiosn removed
Is it on a localscript?
yes
Where is the localscript located?
starter characters scripts
i think mouse.Icon is broken I tried it before and it did not work
You will always be learning
But the basics Probably a few weeks
Basics would most likely take a week if you’re the type to enjoy creating.
It works, maybe the assestid is nil
whats a reasonable price to pay a scripter for a fully modular item shop system?
10k
There’s YouTube videos that can teach you this btw
dont have the time would rather pay
actually can you send me one
Busy, but just search it up on YouTube, I’ve seen like 2-3 vids like that
even if the range were a constant, you do have to type it 
idk man, i had to use an extremely annoying way to add a custom crosshair which doesnt even look good
anyone need investor?
When i sit on a VehicleSeat it turns the whole vehicle to my looking direction. How can i fix it
so can anyoen help:
guys im struggling wwiht can nayone post the script to bsdically make a script inside of ghost model that has a humanoid and humonoid rootpart such that ghost will be able to chase the nearest player both when the player is FLYING and WALKING
Could be because Roblox updated it so if someone isn't ID Verified/face verified then they cant see icons or something like that i forgot what it was
I don't get it
Forget what I said
Roblox's age verification system is confusing and stupid
https://create.roblox.com/docs/reference/engine/classes/Mouse#Icon
Make sure your image/icon was posted on the same account you're trying to use it on otherwise you have to turn on Publish to marketplace or whatever its called in the configuration settings for it.
And if that still doesn't work then your image is probably moderated or something I have no clue what to tell you if thats the case lol
good as long as you know what your doing to prompt it right
whats the best resource? any good YT vids?
approved?
Top tier coding
Software Engineer in the making love it
I would say its better for example to have tool = script.Parent then you can make if tool... But yeah approved!
i mean i only learned this yesterday im fully on the grind now on this
oh
then its pretty good!
use userinputservice
hello can someone help me on something in my python code, it uses pygame and pytmx
hi guys anyone want to join me in roblox and play my game together
believe it
wdym
mouse is deprecated
It's not deprecated
It's a new way, but it's not deprecated either
I still like using Mouse, just not for its Icon changing ability, more for its Mouse.Move event which performs better in UIS since you don't have to manually check if it is the mouse thats moving. (At least in my testing)
But it is recommended to use UIS & ContextActionService over Mouse
Yo guys I genuinely wonder if it’s still worth it to learn coding due to ai getting better rapidly and people already making projects with ai scripts
I vibecode but it’s kinda lazy tbh if u wanna be the best of the best then Learn it urself
ai sucks ass at debugging code and most code it outputs especially for roblox games is buggy
so yeah id say its worth learning
any1 got any tips for making a custom backpack system
yo guys do you have any tips for designing and coding a system? I get so lost in the details and all the different scripts. in C# its a bit easier
for example a combat system
C# ?
what game engine are you using
😤
whoops
not possible since .Touched only gonna fire in workspace
:FindFirstChild might return nil tho
i got confused with smth else mb
Yall what’s the best way to get skillful at coding to like I can make whatever I want, like I want to get to the point where I can code with bugs but figure them out.
I know the basics Alr
So ion wanna hear like “watch brawldev”
I would try to recreate some very specfic features from games
for example one of my friends was making a lost rooms remake, and this is just an example but I made some basic QoL features like how that line connects from your crosshair to an item
idk how to explain it but if u play or look at footage of the game you'll see the feature im talking about
crusherfire, sleitnick
they do advanced tutorials that go into the deepest parts of coding on roblox
e.g. buffers, memory optimisations, metatables, networking, OOP, types etc
and eventually get more broad (basically more advanced mechanics)
Alr I’ll try that
whats the best way to learn
practice practice practice
if you dont enjoy coding and creating then id give up
im being so serious
ye but where do i start
na im not gonna give up
learn the syntax
youtube tutorials mainly
and basic concepts
so just search up syntax and basic tutorials on youtube?
alr thanks
watch tutorials that teach the syntax
Can I get an example of how task functions would be used in a game?
also check out Stewiepfing hes cool he teachers different concepts to do with effects and stuff for games aswell as math concepts that you wouldnt think of
first of all, you should always be using task.wait() rather than wait() as its more accurate
anyways
task.spawn()
--lets say you want multiple while loops in the same scope, but you can't, so how do you get past that? task.spawn()
task.spawn(function()
while task.wait() do
print("Test")
end
end)
task.spawn(function()
while task.wait() do
print("Test 2")
end
end)
-- Output: Test
-- Test 2
-- Etc..
@soft hornet
https://streamable.com/23q8ys dodgeball physics
task.delay()
-- this is an easier and more readable way of delaying things
task.delay(3, function()
print("Hi")
end)
-- waits 3 seconds and prints hi
use cases may be in animations and other stuff
quick question is rojo worth using?
have yall worked with it and if yes is it good to use comapred to just roblox studio?
its quite complicated at first BUT i definitely see the appeal in it
personally i prefer roblox studio as im just used to it and its layed out better for me
same
plus roblox has a new beta feature that syncs roblox folders to directories
so you can work in your IDEs when you want
lets say you wanna code in vsc for whatever reason for a sec, click sync, open up the directory and you can code there
I would mainly use it for the git features but also ides
yeah and for git for version control rojo is definitely helpful
however roblox has their own version control kinda so i dont really care for that
oh nice. did they make a post on that in the dev forum
they do? 😭 i prob misse dit
yup they always post about beta features
alr
if you just scroll through on roblox they have loads you didnt know about
well kinda
like you can revert to older place versions and stuff
not ideal for checking which version has what but its something
atleast you cant lose everything
ty ill look through it. might find some other useful stuff
yea that is one risk it gets rid of
i recommend you look through on roblox studio -> file -> beta features first and then search the ones you want more info on
alr ty!
np
i dont make games with unity im trying to make them in roblox but I can code in C# primarily console apps, MAUI and im learning blazor now too
might learn unity in the future though cause I know how to OOP
roblox uses luau
oh i get it know mb
you should OOP prob yes
well how in luau everything is in a different script and roblox studio's text editor doesnt show references from classes like visual studio
like, how do you keep track of your objects and their properties?
I get so lost
typechecking is an important factor and orginisation in general is too
knowing what should be on the client/ server
if youre talking about objects that are roblox made as in parts and built in roblox functions etc then the properties and functions should come up by themselves, for your own functions and modules and stuff you should add types as its a good practice and it will help the roblox type checker understand what properties things have
Its really simple
most of it is just staying organized
You'd want name everything in a consistent, descriptive manner
Also document your properties, that'll help you maintain structure
Organizing everything properly with folders, another great way to keep track
Best practice is to utilise lots of module scripts too
for flexibility to add more features and organise things too
Don’t overuse modules, it is messy. You can handle several things in a single one.
yeah obviously but some people dont know how powerful modules can be and almost never use them
Modules are actually pretty useful if used correctly
For me its the easy maintenance
i would say metatables are pretty good for saving data within the environment of a script.
metatables in a module
make your own classes
Yeah
its very helpful
modules are mere libaries
To be honest i only see benefit of metatables when i want custom behavior
especially if youre used to OOP then metatables are very helpful
like OOP, default values or read only tables
thats fair
metatables are my favorite, they’re extremely useful and pragmatic to structure blocks of code.
also tbh metatables are quite useful for handling client server communication in some ways without overloading the game with remote events and functions
for exampling updating values on ui
you wouldnt think of it but its useful
do you have any examples of this or docs, i’d be interested in seeing this as im relatively new to luau
????
you still need to use remotes for replication
you do not
i know but thats not the point 💔
you can use the newindex method to get changes in stats and stuff
twk functions and signals
what does twk mean
those who know
what does dngr mean
nope
yea my buddy chatgpt
those who know...
oh shit i just realized dngr is his name im blind
Ngl i dont understand why people hate it when you use even just a fraction of AI to help you with some line of code
If you completely rely on it its terrible but
If you're genuinly new to scripting and want to learn it's completely fine to use it as aid
many possible reasons
new thing scary or they learnt it without ai and assume thats the only way
or they refuse to use it themselves and feel the need to belittle others for that reason
if youre new i wouldnt recommend it becauses youd be tempted to make it do it all for you and then youd waste ages trying to fix bugs which you dont know how to fix
yes i completely agree
but its very handy for example to generate boilerplates for your modules and configs and stuff
laziness strikes with most people when they use AI
saves lots of time
not wasting time, thats how you learn in the first place
yeah 100%
but it can become frustrating if you get completely stuck
i'd say one thing AI is useful for is the fact that you won't have to wait hours for a forum response when you're stuck
which probably tends to happen alot since ai is still kinda stupid
ai will NOT teach you how to code
ooh yeah that too
ai will say "You're right!" and then give you some shjitty awful script
depends which model you're using
format it
local progressionState = {}
progressionState.unlockConditions = {}
progressionState.experience = 0
progressionState.base_levelCost = 100
progressionState.currentLevel = 1
progressionState.unlocks = {}
local unlockConditions = progressionState.unlockConditions
unlockConditions.wins = 0
unlockConditions.a = {name = "One", requirement = 3 + unlockConditions.wins}
unlockConditions.b = {name = "Two", requirement = 2 + progressionState.currentLevel}
unlockConditions.c = {name = "Three", requirement = "Achievement1"}
local function achieveWin(): number
local wins: number = progressionState.unlockConditions.wins
wins += 1
return wins
end
local function advanceLevel(): number
local level = progressionState.currentLevel
level += 1
return level
end
local function gainExperience(totalGain: number): number
local experience = progressionState.experience
experience += totalGain
return experience
end
local function meetsCondition(player: Player): {[string]: any}?
local conditionProof = nil
if player and progressionState.unlockConditions.a then
conditionProof = progressionState.unlockConditions.a
elseif player and progressionState.unlockConditions.b then
conditionProof = progressionState.unlockConditions.b
elseif player and progressionState.unlockConditions.c then
conditionProof = progressionState.unlockConditions.c
end
return conditionProof :: {[string]: any}
end
local function unlockObject(player: Player, conditionProof: {[string]: any})
if not conditionProof and player then
return
elseif conditionProof and player then
return {conditionProof} :: any
end
end
local function progression(isDriving: boolean, player: Player)
local levelCost: number = 100
levelCost = progressionState.base_levelCost * progressionState.currentLevel * 1.25
if not isDriving then return end
if isDriving then gainExperience(25) end
if progressionState.experience > levelCost then
advanceLevel()
end
for i, progressionTier in pairs(progressionState.unlockConditions) do
local condition = meetsCondition(player)
if condition then
unlockObject(player, condition)
end
end
return progressionState :: any
endreturn progressionState
end
```pls help
sent from my iPad
all the models will do that
AI can provide working examples that you can study, modify and learn from
never says youre wrong
some models just do it slightly less
eh idk if its the custom prompt/personalization settings but chatgpt never glazes me
it does call out stupid behavior
yeah ngl the yesman problem never was an issue with me
people told me it contradicts itself or generates broken code often but if you're being specific with what you want it's very good
when i ask for code
if you say "Make me a gun" ofcourse it will create some terrible line of code
what's an example of it being "very good"
The other day I tried to make claude fix a very simple bug for me
people say my skidded code is good and definitely not ai and my non-skidded code is bad and definitely ai
nah current year chatgpt can do that
on god
so in other words you just suck
i suck when it comes to class creation in luau, yea
format it
local progressionState = {}
progressionState.unlockConditions = {}
progressionState.experience = 0
progressionState.base_levelCost = 100
progressionState.currentLevel = 1
progressionState.unlocks = {}
local unlockConditions = progressionState.unlockConditions
unlockConditions.wins = 0
unlockConditions.a = {name = "One", requirement = 3 + unlockConditions.wins}
unlockConditions.b = {name = "Two", requirement = 2 + progressionState.currentLevel}
unlockConditions.c = {name = "Three", requirement = "Achievement1"}
local function achieveWin(): number
local wins: number = progressionState.unlockConditions.wins
wins += 1
return wins
end
local function advanceLevel(): number
local level = progressionState.currentLevel
level += 1
return level
end
local function gainExperience(totalGain: number): number
local experience = progressionState.experience
experience += totalGain
return experience
end
local function meetsCondition(player: Player): {[string]: any}?
local conditionProof = nil
if player and progressionState.unlockConditions.a then
conditionProof = progressionState.unlockConditions.a
elseif player and progressionState.unlockConditions.b then
conditionProof = progressionState.unlockConditions.b
elseif player and progressionState.unlockConditions.c then
conditionProof = progressionState.unlockConditions.c
end
return conditionProof :: {[string]: any}
end
local function unlockObject(player: Player, conditionProof: {[string]: any})
if not conditionProof and player then
return
elseif conditionProof and player then
return {conditionProof} :: any
end
end
local function progression(isDriving: boolean, player: Player)
local levelCost: number = 100
levelCost = progressionState.base_levelCost * progressionState.currentLevel * 1.25
if not isDriving then return end
if isDriving then gainExperience(25) end
if progressionState.experience > levelCost then
advanceLevel()
end
for i, progressionTier in pairs(progressionState.unlockConditions) do
local condition = meetsCondition(player)
if condition then
unlockObject(player, condition)
end
end
return progressionState :: any
endreturn progressionState
end
```pls help
sent from my iPad
right as i was about to join
did you specify your bug and give it correct context?
I promise you that I did
interesting
you will explode <t:1771386300:R>
well eitherway it seems we have different opinions
my only hope is that it doesn't get abused
i need help
i need help
im convinced when someone has a bug chatgpt "can't solve" their code is just so shit that a 3rd party human can't solve it either
does anyone even use chatgpt to help with coding
i use claude/gemini
I cannot remember the last time I got a positive result with chatgpt and game development
sometimes
same
its ass
dm
dm
if only it was getting frequent updates
gpt 5 is have baked
give me 1 thing chatgpt can't make or solve in roblox
everything
name 1 thing then
so you can't come up with a single thing okay
A polished weapon
gpt is only good at nothing
claude is better
100%
eh claude is okay
this isn't a thing
A weapon that feels good, has zero bugs, and works exactly as intended
and can't be exploited
The intent of this weapon is to do nothing when fired:
i tried claude opus 4.5 on https://lmarena.ai it cooks so hard
help me type annotate an array of strings, dictionaries of number arrays, or functions returning dictionaries of booleans pls
local table1 = {
group1 = { {a=1, b=2}, {c=3} },
group2 = { {x=10} }
}
pls help me annotate this plspls
i need to create a custom character movement system that feels responsive on the client but is fully server authoritative and cheat proof with proper lag compensation help me pls
i also need to create AI opponents that learn player patterns, dodge bullets, and coordinate attacks as a team in real time, but it has to run smoothly for every player on the server
pls help
i also need to create a physics based game where complex physics interactions are perfectly synchronized across all clients without constant server updates
pls help
also i need a fluid physics engine 1:1 with how real life works and it has to simulate light refraction and ripples and everything like real life does and no lag and it has to sync perfectly across every client and be server authoritive
pls help
@wind pasture
also i need a massive open world game where players can explore a map larger than roblox's memory limits with assets streaming in/out seamlessly, no loading screens and optimized performance across all devices
pls help
also i need a physics engine that simulates every collision, force, friction, fluid, and explosion exactly like the real world in multiplayer with zero lag and fully server authoritative
pls help
it has to be able to break and damage only certain parts of meshes too
hes working on it i think
Genius.
i need a cooking simulator where every ingredient reacts chemically in real time and heat, pressure, and timing affect taste and texture for hundreds of players
pls help
also players have to be able to taste the food through the monitor
and smell too
pls
i also need a quantum physics simulation that goes in depth with the solution to real world teleportation in roblox
wait he did it no way omgomgomg 😱 @sage patrol
hes goated wth
he might be
and btw
i also need a multiplayer parkour system that automatically adjusts animations and collisions to any surface, slope, or edge while remaining cheat-proof and lag compensated
pls help
and also i need a dynamic sound propagation system where sounds bounce, echo, and attenuate realistically based on geometry and materials, synced across all players
pls help
i also need a system where every object in the world has full soft-body physics, including stretching, squashing, and bending, fully synchronized for all players
pls help
no lag btw
i also need a system that replicates the human body and anatomy 1:1 including everything such as the nerves, muscles, bones, with functional hormones, immune system etc
pls help
pls?
🥺
i have a deadline for tommorow
everything has to be done
pls help
Thx man
dont even mention it
DANM'
JUESUS CHRIST
HELP
IM COOKED
i cant help with all
thx bro
Why you have so many things to do? You working like 20 commission??
Or it’s a joke…
and I’m slow
its for homework
I never seen a task.wait inside a while loop before. Does it wait the time then print or it’s like a true (Boolean) typa thing
nah its just so it does a task.wait() every iteration
while task.wait() do
-- bla bla
end
-- is the same as
while true do
-- bla bla
task.wait()
end
in the first one the script has to wait a bit and in the second in it waits after the loop is initialized
right
Ahh ok
im so sorry but "true (Boolean)" is the funniest shit ive read all day
😭
btw if you didnt know 5 (Integer) and 3.5 (Number) add to 8.5 (Number)
only real ones know repeat until not task.wait()
thats tuff
format it
local progressionState = {}
progressionState.unlockConditions = {}
progressionState.experience = 0
progressionState.base_levelCost = 100
progressionState.currentLevel = 1
progressionState.unlocks = {}
local unlockConditions = progressionState.unlockConditions
unlockConditions.wins = 0
unlockConditions.a = {name = "One", requirement = 3 + unlockConditions.wins}
unlockConditions.b = {name = "Two", requirement = 2 + progressionState.currentLevel}
unlockConditions.c = {name = "Three", requirement = "Achievement1"}
local function achieveWin(): number
local wins: number = progressionState.unlockConditions.wins
wins += 1
return wins
end
local function advanceLevel(): number
local level = progressionState.currentLevel
level += 1
return level
end
local function gainExperience(totalGain: number): number
local experience = progressionState.experience
experience += totalGain
return experience
end
local function meetsCondition(player: Player): {[string]: any}?
local conditionProof = nil
if player and progressionState.unlockConditions.a then
conditionProof = progressionState.unlockConditions.a
elseif player and progressionState.unlockConditions.b then
conditionProof = progressionState.unlockConditions.b
elseif player and progressionState.unlockConditions.c then
conditionProof = progressionState.unlockConditions.c
end
return conditionProof :: {[string]: any}
end
local function unlockObject(player: Player, conditionProof: {[string]: any})
if not conditionProof and player then
return
elseif conditionProof and player then
return {conditionProof} :: any
end
end
local function progression(isDriving: boolean, player: Player)
local levelCost: number = 100
levelCost = progressionState.base_levelCost * progressionState.currentLevel * 1.25
if not isDriving then return end
if isDriving then gainExperience(25) end
if progressionState.experience > levelCost then
advanceLevel()
end
for i, progressionTier in pairs(progressionState.unlockConditions) do
local condition = meetsCondition(player)
if condition then
unlockObject(player, condition)
end
end
return progressionState :: any
endreturn progressionState
end
```pls help
sent from my iPad
textwall
hes xp farming just block
this hurts my brain but i do understand it
repeat task.wait() until false
only real ones do
function a() a() task.wait() end
recursive on top
stack overflow in approximately 3 minutes
only real ones do
coroutine.wrap(function()
task.wait()
coroutine.yield()
coroutine.resume(coroutine.running()) -- absurdly resume itself
end)()
only real ones do
while 3.14 ~= math.pi and task.wait() do```
can anyone help me with this script i have its a cutscene script works fine when i rtest solo but when i team test it compeltly breask i didnt wanan send teh code here bc its very long if u can help please dm me
Is there anyone here willing to take a paid commission payment is negotiable,
what ever you do dont make games
once you finish the tutorial series learn how to make systems for your games like an inventory or UI styling system
once you built enough systems, you'll have a whole library of them that you can drag and drop into your games
and you can also showcase them on YT or on your portfolio
then you can make your game
so yes go finish the tutorials
i recommend trying to make one off systems with modulescripts you can later use to make games
i started coding in late february
how come Coders here cant to this
i watched a lot of yt tutorials from brawldev and hiatus
i also got some files of uncopylocked games and from friends to see how they coded some stuff
then i started making one off systems
ragdoll system, hitboxes, sliders, round systems
?
not just systems but random functions i thought of that could be useful in the future
and now after 9 months since i started coding im making my first game
Like every scripture I’ve hired can’t do that
make the screen purple?
and it uses many of the systems i made
No the highlights and the range with the thermal
do what move the character?
No the range with the highlights where they fade in and out
pretty easy tbh
To them it’s like the plague
anyone know how to get the texture from blender to roblox studio for ugc
just... port the model thats textured into roblox?
i dont understand the question
why are you asking this in code discussion #modeling
this video is one of the best i've found on ECS
https://www.youtube.com/watch?v=2rW7ALyHaas
this video introduced me to DoD and ECS and how they're used, i would definitely reccomend trying to recreate something like this
https://www.youtube.com/watch?v=ahOfNgvQ93Q
ECS and DoD are similar but are different in terms of how you use them
A discussion of the fundamentals and implementation of entity-component-system architecture, and how it might impact your game development as Unity rolls out ECS.
I'm told that knowing is half the battle.
Support Board to Bits on Patreon:
http://patreon.com/boardtobits
Check out Board To Bits on Facebook: http://www.facebook.com/BoardToBits
Hey guys,
It's been a little minute, but I've been cooking up some new things with the engine!In this episode of the Never Engine Devlog series we're tackling Particle Systems.
What they are and how you go about making one yourself. There's a bunch of resources out there for how to make a particle system demo, but not so much in regards to how...
How to make bird ai
local serverStorage = game:GetService("ServerStorage")
local hair1 = serverStorage:WaitForChild("Hair1")
local hair2 = serverStorage:WaitForChild("Hair2")
local function addHairToHead(character, hairModel)
local existingHair = character.Head:FindFirstChild("Hair")
if existingHair then
existingHair:Destroy()
end
local newHair = hairModel:Clone()
newHair.Name = "Hair"
newHair.Parent = character.Head
local hairOffset = CFrame.new(0, 0.5, 0)
newHair.Handle.CFrame = character.Head.CFrame * hairOffset
end
local function addProximityPromptToObject(object, hairModel)
local prompt = Instance.new("ProximityPrompt")
prompt.ActionText = "Pick Hair"
prompt.ObjectText = "Hair"
prompt.Parent = object
prompt.MaxActivationDistance = 10
prompt.Triggered:Connect(function(player)
local character = player.Character or player.CharacterAdded:Wait()
addHairToHead(character, hairModel)
end)
end
local hairObject1 = workspace:WaitForChild("HairObject1")
local hairObject2 = workspace:WaitForChild("HairObject2")
addProximityPromptToObject(hairObject1, hair1)
addProximityPromptToObject(hairObject2, hair2)
this code
ok well
What is the issue
And also
Can you just post the snippet that has the issue
Now I made something like a door. When I touch the first door, the first hair comes to me, but when I touch the second door, the hair from the first door doesn't disappear, and the hair from the second door spawns, but it doesn't stay on my head, it disappears.
.
When the character hits the door, let the hair in the server storage come to my head.
oh I see
You said the first hair doesn’t disappear, are you destroying the old hair?
yes
Oh, well I see at the top of the script you are just getting the hair once
What’s happening is, it destroys that first hair, but then it looks again for that same hair, and tries to destroy it again
When it should be looking for the new hair
.
Whenever you try to destroy the old hair, reassign the hair variable to the new hair. You can just do that by searching for the new hair by name or class
thx
i fixed it thnk u
oh great
dude someone please help ive been trying to make these gamepasses work forever and nothing i do works please help
hey i can help
send the code
thansk but thast the thing i dont have teh code yet lol my friend who does teh coding whos not that good tbh is off and idk how rlly so ive been trying to use ai but it SUCKSSS i have the ui all teh way up to when i purcahse teh gamepass but when i purrchase nothing happens
i can't help if i can't see the code
does the gamepass prompt?
and if so, does the function work when u buy it?
lemme check
its midnight for me so sorry if i randomly go afk lol
also as of rn i dont have any code or anything that makes it give me what their trying to buy
all good thanks for helping at all
can u see the scripts though?
wdym what scripts
ok do you have the explorer tab open?
that says stuff like workspace, replicatedstorage
yes
do you see a search bar
yup
ok
send screenshot of what u see after typing that
A LOT
i mean u gon need a video
print("Hello World")
ok whatever just send it 😭
my friend who helping me is a toolbox warrior so he just imports stuff and deltes it
lmaooo
but not all of it
here goodluck
u may have to slow it down a bit i cant send lon g videos
when i said toolbox warrior i meant it
is there seriously NOTHING in serverscriptservice?
like is there anything in serverscriptservice
guys how do I learn scripting im so bored of the basics. I know some of the basics but i cant sit thru loops and like data types any longer
LOL
brawldev
i am so bored of videos
im trying him
how do i "practice"
also in server script all i have is walkspeed script and a leaderboard script
like i dont know how to practice loops
make stuff with what you learn
making stuff with what you learned allows your brain to slowly remember what you actually learned
anyone needs help rn in building
if you just watch videos and not try anything in studio your not gonna learn anything
look at the channel name.
how do u get ideas
many scripters struggle to build.
like when you were learning
I just go to chatgpt and ask give me project ideas for loops
what did u do @foggy pine
literally just make ANYTHING
@round ocean what are u up to
it can be dumb as a print statement looping
are u on the learning journey too
are u on windows
trying to maek these gamepassses actualy give what their buying
Ok bet
yes
are u a beginner too
do ctrl + shift + f
and type MarketplaceService inside
it should show all scripts with that inside
kinda i dont know scripting that much ive been taking calsses in school but its impossible to learn because of the freshamn in that class so im basically a complet newbie
also i did
i feel that
want me to send it to u basic?
sorry if im late to respond guys, i shouldn't be up rn lol
fr bro our teacher gave up on teaching OUR class becasue of them not kidding
how many scripts have MarketplaceService inside
9
yeah
none are broken its just when i buy them i dont know how to actually give the player what they bought i dont have any script that do that yet
ohh
ok do ctrl + shift + f and search for PromptGamePassPurchaseFinished
I will send you a vid
DISCORD 📜
Join my Discord Community if you want scripting help, participate in events/challenges, and make friends!
https://discord.gg/WC6kPu5W5P
MEMBERSHIPS 🎁
Get Access To My Scripts + More Perks By Becoming a Channel Member! 👇
https://www.youtube.com/@BrawlDevRBLX/join
ADVANCED ROBLOX SCRIPTING SERIES 🔴
https://www.youtube.com/p...
the guy doesn't know how to script at all
his friend does it
local function closeShop()
if not shopOpen then return end
shopOpen = false
SoundService(sounds.CloseShop)
TweenService(shopFrame, tweenInfoSlide, {Position = UDim2.new(1.25, 0, 0.1, 0)})()
TweenService(shopButton, tweenInfoFade, {ImageTransparency = 0})()
end
shopButton.MouseButton1Click(function()
SoundService(sounds.Click)
if shopOpen then
closeShop()
else
openShop()
end
end)
closeButton.MouseButton1Click(function()
SoundService(sounds.Click)
closeShop()
end)
UserInputService.InputBegan(function(input, gp)
if gp then return end
if input.KeyCode == Enum.KeyCode.Escape and shopOpen then
closeShop()
end
end)
MarketplaceService.PromptGamePassPurchaseFinished(function(plr, passId, wasPurchased)
if plr == player and wasPurchased then
print("Purchased Gamepass: " .. passId)
end
end)
Brawl dev teaching good isn't he?
yes lol, except that is an advanced video
that u are showing to a newbie
the issue is that MarketplaceService.PromptGamePassPurchaseFinished is happening on the client
so nothing will actually happen ._.
hm
Ok
parent is server
ok done
alright
remove this from the script:
MarketplaceService.PromptGamePassPurchaseFinished(function(plr, passId, wasPurchased)
if plr == player and wasPurchased then
print("Purchased Gamepass: " .. passId)
end
end)
ok i did
make a server script in server script service
ok done
ok let me make the code rq.
thank you tons! appreciate it allt
damn bro you have no idea how much i apprecaite this
Guys how to do morph skin?
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")
local gamepassFunctions = {
["123456789"] = function(player: Player)
local bat = ServerStorage.Tools.Bat:Clone()
bat.Parent = player.StarterGear
local secondClone = bat:Clone()
secondClone.Parent = player.Backpack
end
}
MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player: Player, passId: number, wasPurchased: boolean)
if not wasPurchased then return end
local str = tostring(passId)
if gamepassFunctions[str] then
gamepassFunctions[str](player)
end
end)
Players.PlayerAdded:Connect(function(player: Player)
for passNumber, func in gamepassFunctions do
local num = tonumber(passNumber)
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, num) then
func(player)
end
end
end)
@round ocean try this
wait rq
before you paste that, what is the tool name of the bat
ok whats the gamepass id of the bat
1601986569
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")
local gamepassFunctions = {
["1601986569"] = function(player: Player)
local bat = ServerStorage.Tools.Bat:Clone()
bat.Parent = player.StarterGear
local secondClone = bat:Clone()
secondClone.Parent = player.Backpack
end
}
MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player: Player, passId: number, wasPurchased: boolean)
if not wasPurchased then return end
local str = tostring(passId)
if gamepassFunctions[str] then
gamepassFunctions[str](player)
end
end)
Players.PlayerAdded:Connect(function(player: Player)
for passNumber, func in gamepassFunctions do
local num = tonumber(passNumber)
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, num) then
func(player)
end
end
end)
ok create a script in serverscriptservice and paste that inside
and test?
yes
holy crap it worked
yo your actually the greatest human ive ever met'
no problem bro
no one ive ever asked for help has done this for me bro
can i use that script for the other two gamepasses it would be a 2x coins gamepass and a admin commands gamepass
if i cant its fine
you can & can't
you need your friend to make the function that will make those work
but he can simply just put it inside the gamepassFunctions table
and it should operate
since i loop through EVERY id in the table
alright ill tell him what u told me
anyways i gotta go sleep
agian thank you so much for the help bro
cya U DA BEST
Yo boys, how long will it take approximately to learn how to code? I was very good 3-4 years ago but then switched to building then stopped for a year
I want to make a small game solo
Idk maybe year or some months depends on level you was
I want to make a small game like not those huge ahh games u see on the front pages
Smth simple
I have 3 months
If really small maybe you can finish in 1-2 months but if you will work really much maybe just some weeks
Like gag was created 16-year old boy for 3 days bc he was almost doing it 3 full days
Hmm alr, any tips on where to start like what tutorials
Tutorials about game creating?
Scripting first
You was good at it before yes?
If yes you can watch brawl dev adv scripting tutorial guide
But if newibe just watch brawl dev
Begginer scripting tutorial guide
Ye i was goated but like i said its been 3-4 years
U got a link?
https://youtube.com/playlist?list=PLQ1Qd31Hmi3W_CGDzYOp7enyHlOuO3MtC&si=be1bsf1hfHSnC56H
Its for begginers just fastly look through
I appreciate it buddy 🙏🏽🙏🏽
https://youtube.com/playlist?list=PLQ1Qd31Hmi3WKkVHnadvhOOjz04AuMYAf&si=aZH2T_ta-0syNGqU
This is for advanced be more careful here
Whats this
Thanks alot gang 🙏🏽
Np
@bold veldt DMs!!!
Are there lists for when u dont know what data you wanna put in it or is it only arrays and dictionaries
could you elaborate
what do you mean dont know what data you want to put in
tables are dynamically typed
As in I know I want to have a list of whatever, but I dont know exactly what data I wanna put in it yet
you dont need to state what you are putting in a table
Nice
l = {}
l["this"] = 2
l["that"] = "yes"
print(l)
--- {
["that"] = "yes",
["this"] = 2
}
{ 1, 3 }
When creating party rounds base game (such as 99 nights, dead rails,...) Should I load user data, such as class to datastore, update during gameplay (collecting coins) and save to DB on player remove/game finished?
yes, but id recomend using a datastore library
You're still presetting ur data tho
wdym?
the list is getting created on line one
and data is being set on lines 2 and 3
Which library?
I dont wanna set the data cause idk what data I wanna put in it yet
profilestore is a good one https://www.youtube.com/watch?v=m2SP_TLeWHI
You need to be using ProfileStore in all of your Roblox gamedev projects! In this tutorial, we learn why it's better than default Data Stores and how to set it up. No sweat!
Thanks for watching! I'm a Roblox game developer teaching Roblox players how to create their own games. Subscribe to learn more!
Download ProfileStore:
https://create.robl...
nah I prefer my own
what do you mean put in it
It is just a wrapper of datastore roblox provides, I prefer my own code to fit my needs without need to learn structure of someone elses code
main thing it does is deal with too many datastore requests and double logins well
Idk yet, maybe user inputs in strings
Yeah just code wrapper, I have my own modules 😄
you dont create the table now and write the code to put stuff in it later
thats too bad
the reason im asking is cause in C# I can just do C# List<string> list = new List<>(); and then whenever I want I can do C# list.Add("blabla");
c# is statically typed
when I create a list or a variable in c# you have to state the datatype it contains
table.insert() in lua
while roblox is dynamically typed
a table can have multiple differnet variable types, and it determined the type automatically
even in an array?
nice
so I can do
local thisVar = "food"
thisVar = 2
yes
thats crazy
also arrays and dictionaries are the same datatype in lua
okay?
Yeah I was stunned too that I can assign string input to physical clone of model without needing a new variable
i have this car and for whatever reason i stand on nothing instead of the seat anyone know why?
lol ok then wtf
very different language from c#
similar to python in a lot of ways
obviously but until now knowing C# has helped me a lot
Why ur guy have hyper realistic hair
C# is amazing language
yeah, its very good for preformance and used in a lot of modern games, but is a low level language and therefore hard to learn
C# is hard to learn?
compared to lua it is
trust me C# is not hard to learn
it gets hard when u start with reading txt files and when u work with classes (OOP)
im just saying lua is way easier
i bet if I give u some basic code rn in C# you will be able to read it
yea its more readable too
though stuff like oop in lua can be anoying to do because its not built for that but most games use it
What I like about C# is that it has large variety of uses.
Also it is really easy to understand
doesnt studio take care of it
100%
wdym
im just saying that its not very intuitive in lua to do oop
and theres also almost nothing built into the base language
you have to take a lot of libraries
like the roblox game engine makes object oriented programming much easier right? Cause everything is basicly an object, and every object already has default properties. You dont have to set properties, give it a constructor and make methods around that
methods other word for functions btw
making your own objects is unintuitive and anoying
it is?
like roblox doesnt let you do stuff like inheritence
Yeah, Roblox studio is easy cuz it is simple, Studio implements so much stuff on its own
you can work with their base objects easily but objects that you make have a lot of limitations
yea thats true
didnt think about that
the entire thing is kind of like a wrapper
Also Roblox provides own datastore and stuff like that, I still prefer my own SQL, but it is nice plus
collisions
which they are either non-working or aren't that good
create
oh?
can u fix it
i still dont know how that works datastore on roblox
talking about SQL btw im in database class rn
theme goes hard fr
You have service datastore service:CreateDatabase(NAME) or sum and you can use :SetAsync(key,value), :GetAsync(key)
Disable collisions on unrealted stuff, such as chasis. Assuming whole car is union
someones asking me to create a fully modular item shop script that just purchases with equip + unequip and im not sure how much to charge its pretty simple
in usd
whats a reasonable amt?
Any more details or just script?
ok and how do you access the data?
Well, you can't
just :setasync and :getasync
You cant see, you cant edit, you only have Roblox Create place page showing database entry by key
they just want me to create an item shop that's modular, they provided the ui so all i need to do is just script purchasing, storing purchases and save equipped items but they've already provided me with their datastore scripts thats it really
also they want it tweened
Stupid, really stupid
though most people use wrappers for it because they dont want to spend a week making a flawless system
wow thats stupid... but at least its free and its not on ur own PC
Wrappers are for people familiar with system, people will never learn with using libraries
whats that
Also size limit is limited by user numbers
They are suggesting to use free library that is just wrapper to roblox datastores...
libraries that make robloxes datastore system better to work with
fixed it
Profile store still does not allow editing of datastore, just way to handle it
wdym?
sounds simple, you need to set hourly rate of your time. If you have job, 150% of your hourly rate is funny number. Its up to you how you value your own free time
Like SQL database you can just open and edit values
its basically like that in roblox even using profileservice, but the datastore gets opened when the player joins and can be written to and saved
Nobody will make me use wrappers on simple stuff 😄
so I cant edit 1 user's data? I can only do so for everyone or no one
unless they have like a badge or gamepass, ...
no
You have to create own script that does that
okay
when player joins you get their data and store locally in a table(dictionary), then when they leave or when server closes you set their data(write it)
You can't just open database and select value like excel sheet, you have to create own UI that opens specific player data by getasync, then edits them and set async after save
i can live with that
cheers ill read it after class
you can ask here or dm me if you have any questions
I appreciate that 🫶 thanks
I’m looking for a good scripter
offering %, am i right
I haven't scripted in a while, is this syntax correct?
no
it will tell you if its wrong
i guess function Tservice.SetPlaying = ....
got it, thanks
wait ima check my code
yes, like that
function PlayerData.getRebirth()
return playerData.progress.rebirth
end
Is anyone here really skilled with python? Particularly pygame
you can do it like that too, if you prefer
data store is driving me crazy even ai couldnt help me 💔
What
Bruh
i was learning data stores so i made a coin earning system and then i tried making a datastore to save those coins and everytime i try it didnt work so i gave my script to ai and it still didnt work its literally a simple leaderstats coin saving script im gonna go insane bro
Show the scirpt
did u follow the examples on roblox guide
wdym
thanks
Is anyone good with python?
hello guys i just started scripting
how to make bird ai
honestly i dont know...
how to make bird ai
In this Roblox development tutorial, we go through the process of creating an AI bird that functions as a non-player character (NPC) in your Roblox games. This tutorial is designed for programmers and game developers looking to enhance their Roblox worlds with dynamic AI elements.
Rigging the Bird Model: The tutorial guides you through the proc...
its the same thing as the alternative
thats just wrong tho
below is working version
thanks but its not what im really looking for
what you mean by bird AI? Its movement and interuction to the overworld?
im trying to aim for a rdr2 type bird ai where it will do circles
ahh
and then take long paths and will react to the environment
i want it to react to sound
since my npc at the ground will sometimes do behaviors where explosions and other things are involved
i already got my npcs to react to those
but i don't know how to make birds do that
well it looks like some AI could solve ur question
i don't use ai for scripting
i only use it for other stuff in other games that i play
who said you need to use AI to write scripts?
Ask for principle that ur birds gonna use
huh??
common concept of the algoritm that ur birds gonna use to react to the sound
?
what you just said
instead of asking AI to create a path to the exit ask AI to give you ways to find that exit
thats not direct code
i hope you understand the example since i have no other ways to explain that
thank you for your time but i still don't understand what you are trying to say
Holy fuck bro
Now im doubt myself lol
Ask ai how it would do that, take the principle and code it by yourself
😵💫 ???
Bro are you for real
ask ai what you asked here
And then take the idea
And code by yourself
you are lost in your own words now
ok.
guys just for safety like if this guy is hiring any scripter do not accpet he is a scammer liek big
all msg are edited u can see
@1442053114302566400
his id
forgery in discord dms is crazy
yeah
i reported him alread
to help you i just posted this here so u guys can be aware of this scammer
wait
na im legit man no one belivess me i can show whole caht
chat
yo guys if youre a good scripter and bored dm me i have a cool game and need some scripts. this wont be paid tho
wait wheres the forgery?
not tryna back him up or anything
im just missing smth prob
what
i can show everthing like he is a pure scammer
what happened? did he like never pay u or smth
yeah i get that im not trying to defend him I wasnt there
nah he said he will pay at last when all done this was a sus for me so i asked him to pay 4$ upfront for proof then he said wait and edited all msg from previous
then started calling me idiot and that all things you know
and then he blocked also
😭
and like idk im angry also and calm also
im just saving u guys from this shit scammer
ohhhh thats why for the 50 percent and no amazon were edited
ty
ohoh
u blocked me huh?
Guys
Iisten carefuIIy
I was testing him
and aIso
he was scripting my game
with chatgpt
so @stiff saddle
ur the one scammer
and he Iied the age
xd
ur sued so hard
@stiff saddle holy chatgpt site
fs
so ur whole js has comments
i dont think so
that a javsscript coder does
that much
comments
u mean
"hello chatgpt crate me a portfolio"
- download zip
host on vercel
ur using formspree 💀
for ur email service
yeah full site is ai made
dont insult my goat chatgpt like that
hm
least obvious vibe coded website
make my port
I told you in dms that I forgot and if you still want it or not
you didnt respond
im responding now
I feel like your not gonna do any commissions after I make it
ok
is that true
no
if u r serious u can use this template
source: https://github.com/killcod3/NextGenPortfolio
I'm a passionate software engineer with over 5 years of experience building modern web applications. I specialize in React, TypeScript, and Next.js, focusing on creating performant and accessible user experiences.
Is google portofolio good?
cuz I used it for my first one
it helps create new vfx, explosions, etc
for example, you can make a throwel that creates a wall, that wall will be made with instance.new
Yea, it's not bad
the one I sent is for programmers to use. so it's a bit harder to edit, but gives more freedom and options if u know what you're doing
search for sites.google.com here and you'll see a few good ones
k, thank you
who needs help 😢
maybe you want to create a new instance
you just use it
but me like object poolinjg
🤓
you can but well its good
u can make any instance with instance.new
so lets say u want to make 100 animation instances
its better to just use a script than to make 100 by hand
but then you would need to prepare hundreds of walls for each time the player clicks
unless u want thousands of walls in workspace
if u want to store all the animations for a model without having duplicate animations by manually creating
ok say u want a part to be placed where the player presses their mouse
how are u going to do that
every time they click their mouse
would any scripter be down to make a quick commision for 650 rob
Especially complex shapes etc
no say u just want a normal part
or maybe u want a wall to be split into different parts when a rocket hits it
wall:boom()
With scripting but let’s say I don’t
wdym with scripting
oh nvm misunderstood u
well there are still uses
tho most of the time u can get away with :Clone() i guess
@marsh kelp help, I trust your opinion
then you would prepare the object in workspace first
then u would store it in replicated or serverstorage
and when needed you would clone it in
clone
you would use killer:Clone() for that
you use instance.new for basic stuff that you won't have it precreated ( like an empty folder, basic part )
Or whatever
no i said thats if u never wanted to use clone or instance.new
or what i meant anyway
if you need 1k walls then do you just make 1 wall and then clone it or make 1000 walls by hand
No, and you can't use it for that
you dont need to no
as long as u can maintain it in the future it should be fine
you cant look for scripters in chats
oh
there is a whole channel for that
true
i believe its against the rules
how do i make clean movement like this ? https://youtube.com/shorts/dj8KW9D1m-Q?si=2MJRRM7wWe9L3wym
i saw this thing called ScriptEditorService on the roblox documentation but it doesnt show up when doing game:GetService("")
can anyone help me fix a bug im trying to make a custom advanced inventory system
that's for plugins ( make your script RunContext -> plugin, and it'll show )
thank you! 
Hiring outside of Marketplace is not allowed. Consult #marketplace-info
yeah im gonna need some help cuz how tf do plugins work
like i need help with a making a custom advanced inventory system gng
use table
ive already done most of it but im stuck now
r u using a tables
u can start by sayingwhat ur issue is in Detail
then someone can help
can we talk in dms then
tuffblud
what the fuck is your issue
i made a local plugin that is supposed to make custom methods and globals autocomplete in the script editor
but it doesnt work?? how do i activate the plugin or something
its in my plugin folder and i restarted studio
Hi
Oop and ecs suck never ues them its just overdoing it
Never use modules its bad practice
Always create new variables inside runservice connections
the hell are u talking about
real
do you think grow a gardens programmers don't know what they're doing
