#code-discussion
1 messages · Page 136 of 1
get a j*b
what are you good at in developing?
scripting
or this
but i cant remember SHIT
then go do comms
then your not good at scripting 💔
i THINK i have short term memory loss
nah its normal to forget everyone does with scripting 💔
i believe i do, i forget stuff every 10 seconds
after a few months you should start remembering though
alr
i started scripting a while ago
that part doesnt work, it runs the else statement
gimme a sec
ur not tell us which part dosnt work
you're just saying it all doesnt work
yep
print the humanoid's state
im gonna just try to start scripting my game by myself and try to improve it later
and please find a way to get rid of those 20 if statements
if you barely know how to script i wouldnt already try to make a whole ass game
local Players = game:GetService("Players")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local CollectionService = game:GetService("CollectionService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptService = game:GetService("ServerScriptService")
local PlayerData = require(ServerScriptService.Services.Core.ServerPlayerData)
local DictSort = require(ReplicatedStorage.Modules.DictionaryQuickSort)
local Pet = require(ServerScriptService.Core.PetCore)
local Enemy = require(ServerScriptService.Core.EnemyCore)
local Battle = require(ServerScriptService.Core.BattleCore)
local clients = {}
export type PlayerCore = {
Player : Player,
BattleFolder : Folder,
FocusPoint : Attachment,
Character : Player.Character,
EquippedPets : {},
Location : string,
EnemiesInRadius : number,
MaxAllowedSpawnEnemies : number,
}
local PlayerCore = {}
PlayerCore.__index = PlayerCore
function PlayerCore.new(Player : Player) : PlayerCore
local self = {}
self.Player = Player
self.BattleFolder = Instance.new("Folder")
self.FocusPoint = Instance.new("Attachment")
self.Character = Player.Character or Player.CharacterAdded:Wait()
self.EquippedPets = {}
self.Location = nil
self.EnemiesInRadius = 0
self.MaxAllowedSpawnEnemies = 20
self.BattleFolder.Name = Player.Name
self.BattleFolder.Parent = workspace.Battles
self.FocusPoint.Name = "FocusPoint"
self.FocusPoint.Parent = self.Character:WaitForChild("HumanoidRootPart")
self.Connections = {}
table.insert(self.Connections, Player.CharacterAdded:Connect(function(character)
self.Character = character
character:SetAttribute("InBattle", false)
CollectionService:AddTag(character, "Players")
end))
self.Character:SetAttribute("InBattle", false)
CollectionService:AddTag(self.Character, "Players")
return setmetatable(self, PlayerCore)
end
-- This equipPet function needs to be refactored
function PlayerCore.GetClients()
return clients
end
function PlayerCore.GetClient(Player : Player)
if clients[Player] then
return clients[Player]
else
return nil
end
end
function handlePlayerJoin(Player : Player)
if not clients[Player] then
clients[Player] = PlayerCore.new(Player)
end
end
function handlePlayerLeave(Player : Player)
for _, connection in clients[Player].Connections do
connection:Disconnect()
end
clients[Player] = nil
end
Players.PlayerAdded:Connect(function(Player : Player)
handlePlayerJoin(Player)
end)
Players.PlayerRemoving:Connect(function(Player : Player)
handlePlayerLeave(Player)
end)
return PlayerCore
start off with small things
tthis for example is my player class
use a fuction or a module for all this shit 💔
i know a decent amount
i did
this deals with a player on the server
which excludes data
thats in a seperate module that handles all players data
what does export do?
this explains it pretty well, i made it for investors
it exports the type to be used in other scripts
i remember looking at a video about it but forgot what it does
i put a bunch of print statements for this part, it prints "doesnt work" aka the else statement. how do i fix this
but i forgot investors like games that are already like 40% finished
ohhh ok
what is before the if statement
i REALLY needa change my studio colors
im more of a visual studio code/neovim type of guy
ts so boring 💔
I'ma go look at a youtube tut for the best colors
just use catppuccin
whats that
i forgot how do you check how many children are inside a parent
its simple asf right i just forgor
why dont you just do ```lua
char:FindFirstChildOfClass("Humanoid"):GetState == Enum.HumanoidStateType.Freefall
a color scheme
can someone script something and I pay them rn 🙏
robloxs ai is so shitty, i tested it out the other day and it said :GetDescendants() was deprecated
#Instance:GetChildren()
script What
where do i put the amount needed
Whayt
basically a surface gui with a text box that u put the username in and then a block follows over ur head
where you put if
pay me a sandwich from subway and ill do it
ok bet
so if i do if #players:GetChildren() == idk then
end
where do i put the amount need
ed
if ur serious lmk
if you want the amount of players you have to use #players:GetPlayers()
WHERE DO I PUT THE AMOUNT NEEDED
LIKE IT DOES NOT KNOW THE AMOUNT IT NEEDS
i would but im 90% sure its against the rules to post hiring post in coding channels
an if statement needs a condition to return a boolean
#players:GetPlayers() returns a number
ughhh I have to hire the people from the other channels 😔
those people take forever to reply
how do i attatch my entity class to players and npcs
one of these
i did rn, but the fly cheat doesnt make the player freefall
yes yes ik but Ty
WELL JUST HOW DO I CHECK IF THERE 2 PLAYERS
WHERE DO I PUT THE DAMN 2
yeah then you have to check another way
thats the problem with anticheats
its a constant battle between cheaters and developers that never ends
after the == i think
ty
party pooper
you could do a raycast check that sends a ray downward and checks to see if the player is above a certain height
and if its impossible to do so in your game, or within a certain time frame
then you teleport them back to the ground
or you can also do a velocity check on the server to see the direction their velocity is headed in within a given time frame
it prints with 1 player, am i dumb or smthin
say, a normal jump will have a positive y direction velocity for 0.5 seconds, then, if a player has a positive y direction velocity for more than 0.5 seconds, then you teleport them
idk bro
i wanna get into a dev team they need a fly anticheat but im not good w velocity n shit so yea
please help me so i can sleep
well ill be honest the fact that you're using attributes for data that should be saved in a table under the player is not the right direction to go
@celest cipher what game is it
use raycast it's easy and simple 👀
raycast or velocity check
may someone give me some project ideas please, I'mbuilding up my portfolio
idk
its like a peak game on steam
mixed with steal a brainrot
lol
bro im telling u learn the basics first dont try to jump head into advanced things u dont understand
trust me i got exp
peak advice icl
Attributes is not necessarily bad
this is inefficient i can tell
local roundTimer = game.StarterGui.LobbyGUI:WaitForChild("RoundTimer")
local players = game.Players
while #players:GetPlayers() == 1 do
wait(0.1)
if #players:GetPlayers() >= 2 or #players:GetChildren() == 2 then
print("Nice.")
end
end
Similar to components in unity
Should use player added and player removed event
for what
to check if there is enough players
Keeping track of playercount
u just doing too much in each line
how tf do i do that with player added
also Players is an service
When player is added
so u doing #Players:GetPlayers is a bit redundant
Playercount += 1
i hope my brain fucking unidiots itself
And do the opposite when player removed
But you should do an initial #players:GetPlayers()
Incase any players join
Before the script runs
(usually shouldn't happen)
that... is possible?
how can i efficiently check the if statement
Open world horror game fr (Like the rake)
Shouldn't be
use a fuction
bitmasking representation
But no harm in being safe
what r u tryna do
Perhaps the server is created on the same cycle that the first player joins
And the player added event is fired before this script runs
check if the player count == 2
but i know its gonna only check once if theres no loop
I'm pretty sure the server is created first THEN they put the player in the server
Could be done on the same cycle
from what I can see, it's never 2, its originally nil, they join the game, +1 , it ends up at 1 then you check == 2
-# sever script
i got it to work but it only works if you jump and then fly
like this for a example when you press start the server get's created and after that they add the player after a few seconds
for the getstate if statement
oh are you counting the players who are joining the game?!/
players.PlayerAdded updated every time someone joins
use players.PlayerRemoved to get when a player leaves
though you could also use #players:GetPlayers() to get the player count instead
It's just a backup incase roblox decides to be goofy
I got you give me a sec
@rustic inlet can you change my display to vektra i dont like it being my main username
alr
local Players = game:GetService("Players")
local playerCount = #Players:GetPlayers() -- Give you how many players are already in the game, you can use this or not ig
Players.PlayerAdded:Connect(function(player)
playerCount += 1
if playerCount == 2 then
Print("Nice.")
end
end)
Players.PlayerRemoving:Connect(function(player)
playerCount -= 1 --for when players leave
end)
omg tysm
Hopefully no errors, I wrote that in discord chat
Yes, i forgot to add player as a param in the PlayerAdded and PlayerRemoving just added, it @idle spear
lol
NO
THEY CHANGED IT TO CONNECTIONS IN STUDIO
what even is connections...
friends but renamed
disgusting
this is so sad that i need to get water now
local Players = game.Players
local playercount = #Players:GetPlayers()
Players.PlayerAdded:Connect(function() playercount+=1 end)
Players.PlayerRemoved:Connect(function() playercount-=1 end)
i MIGHT take a show because of this 💔
how do u send that format?
Code block
never used one on discord
Can I script?
spongebob studio
Not allowed
imageasset and decalassest is something else?
I have a billboard gui to show people's rarest finds in an rng game I'm trying to make but whenever I spawn the billboard sometimes doesn't even go to the player and is picked up by other players
im a minor
Scripting is illegal
I do not want to be a builder.
You have to be a ui designer
Then, how is this platform is made?
Dreams and good thoughts
everything
Am retiring, I want to become a chemist.
Did I?
jesse
Become a garbage collector
we must cook
yes
Ok let’s not go that far
Keeping myself safe.
Oh carry on then
I hate billboard gui
How do I fix clipping like this?
Try setting the billboard gui’s AlwaysOnTop property to true
Bless bro
🙏
Do you know why a billboard gui isn’t adorning to a player correctly even if the adornment setting is properly set up?
I would love to help you but I have like 0 knowledge of these confusing ass things myself
Oh, nvm
@minor cloak hows it going bro i got to vid 9 today wbu?
Are you good
no advertising work in chat
Experience isnt even that important, you should just focus on practicing
I think
mb
can someone make me a grow a garden modded with admin i can pay
How much
dm me we can talk
MY EYES
With chatgpt 💔
Define correctly in this context
What playlist
I'm curious
How should i make an arial combo system? Like a skill that takes you to air and keeps you there?
brawldev on youtube he has like 3 playlists but ima beginner so im starting with the easiest then gonna work my way to the next 2
imo its really been helpful so far just got to the part about operators
Read the roblox docs too
You can search up
Roblox studio operators docs
Or some shit like that
And it's also easy to understand
I finished beginner Playlist by devking
I think imma do his advanced then do brawldev tutororials
yea fs fs
His advanced one have physics and vectors in them 😬😬
he also has a gui one
That's gonna be mad fun
sounds cool im excited to get to those ngl
i love maths alot
It's my best subject so 🗣
same 😈
Goodluck with cframe math
devking ass
brawldev for live
Why
What's cframe math
some of his tutorials arent reliable
except its none of those because the game does everything for you and you just type cframe1 * cframe2
Nah ik that
if your trying to get like
Like if u wanna make a pet follow script
stud-perfect angles
Just add opposite of direction vector multiply hy a scalar and move it to the right
Ya
@digital depot can u explain why we use :Connect()
if u understand what "move it to the right" means with cframes u basically already know 90% of what u need to know
Where can i find Script help?
like quant said the rest is trial and error
here or #code-help just ask your question and post your code if you have any
Thank you!
connect to the server
i tink
Multiply the right vector by a scalar value so it's in desired position
im not rlly sure why but i just know you ddo
You always do Connect(function() ) tho
you just do
idk the exact reason why
i just know you do tht
Because you’re connecting the event that gets triggered to a function you want to make
And it calls the function every time the event happens right?
In the new party feature is there a way to invite a player to join your party through a script,
Ex. You walk up to a player and hold proximity prompt to invite the player to your party
Yes exactly
Start with gui etc
And work ur way up
Scripting should be the last thing u learn
K good to know
???
Ain't guis uh
The thing for inventory and whatnot
Ui, frontend in general
U have a Playlist I can learn from?
want to learn scripting, i know the basics and i know that to improve i have to just script, can you give ideas i don't have any
just curious what compels you to search for video tutorials instead of reading and/or trying
No prior knowledge
there are a lot of guides on the wiki for example that assume you have zero knowledge, they are also pretty much linked when you open up studio for the first time on the home page
Basically "convenience"
Instead of just bruteforcing learning I do it the smart way
So I spent less time and energy on leaning the same thing
It helps you get started easier
but the guide on the wiki has the same kind of format as a youtube video, just that its text and not a video
its not like you are reading raw documentation at all
Maybe that's better actually
Does it cover everything though
nowadays i consider video tutorials to be asinine because for anything i want to learn i much more value the ability to "pause" on a web page or scroll up for stuff i missed or scroll down to quickly skim, all things you cannot do well in a video. but since you are a beginner i was just wondering where your intuition for this comes from
fr? cus the brawldev dude said to do beginner then either pick advanced or gui next
i dont know, i havent personally read it top to bottom, but i would just assume that there isnt a video tutorial series that covers "everything" either
Huh
Notice how they don’t work for you but work for others with a different skill level
the video guy im watching on youtube
İ ddint quite understand what gibberish u said right there
the brawldev guy (youtuber) said to do the beginner playlist first (on youtube) then either pick the advanced or gui playlist (also on youtube) next
im not saying a video tutorial wouldn't "work for me," I know I used to watch videos to learn programming myself over a decade ago, but in fairness there weren't any well-made wiki tutorials like we have access to today
some guy talking on youtube for 20 videos in a row would just be the best source and most of the time its only the best source because its the only source
are you more interested in learning how to make systems interact with each other or something more concrete like combat and characters?
both
but obviously not everything at the same time
they are two different kinds of scripting, one requires more planning and foresight and the other is more about creativity and problem solving
its hard to make systems work with each other if you're not already confident that things you make can be built upon by other things
which one would be the most logic to learn first
thats hard to say and i have no idea
if you are confident then you can try just making a grow a garden game, the barebones of that can be done in 1-2 days and there are a lot of different kinds of things you can add later to learn more
ok i'll try
but it will probably take like 2 weeks
you are either thinking too big or you think its a lot more than it actually is
i never started gui and there are a lot of stuff i don't know yet
How do you go about making a grow a garden game
you only really need 2 guis, the seed shop and your seed inventory, but those aren't even the first things you should focus on
start by just having a button that plants a plant in the world (via remote events obviously), anywhere in the world, not where the user wants it
and then make it so the growth of that plant updates over time and when its done growing it stops and shows that it is done (for example just have a berry that is invisible at the start and then becomes visible when its ready to harvest)
The plant logic is kind of confusing to think about
i thought it was replacing a plant model by another
then make it so when you click the berry its added to your inventory, and the growth starts over. then you just need a 2nd button that sells your whole inventory for money, and you basically already made half the game
I believe they’re procedurally generating because they are always different
the thing is there is a hundred ways to do it, some are simpler some are more complicated, in the end its your game and you just have to weigh your options, and sometimes your most viable option is "i'll pick whatever takes the least lines to implement, because i still have to make the rest of the game, and i just need the visuals working for now"
That’s a good way of seeing it
have your crop be a model, have it have 1 part for the plant and 1 part for the fruit. have the plant always just be fully grown and visible as soon as it's planted, and all the growth process does is make the fruit visible or invisible. then you could for example make it so instead of visibility the fruit changes color and size over time as it grows. but that's stuff you should add after you finished making the core gameplay
That’s pretty simple I guess but you can’t just build a plant growing system off a few lines of code that you already have
Without difficulty
where do i add the scripts, in the part or somewhere else?
yes you can and doing exactly that is a good way to learn 1. how to refactor things and 2. how to write code so it is easy to refactor in the future
the pains you get from having to refactor it to make procedural plants will teach you how to avoid these pains in the future
That’s essentially just OOP then
no not at all they are not related
Well it’s easier for future planning
can someone explain object value to me ion understand the doc
oop plays well with the principles of good software design that facilitate reusability and maintainability, that is true (check out SOLID), but it's just as easy to write bricked OOP code that is hard to refactor or read in the future. and you don't need to write object-oriented code to make use of these principles
I see
something as simple as separating out all of the growth logic into a separate module script does not require any oop but will make it easier to work with in the future
the scripts for the buttons would have to be client scripts (usually LocalScript in a place like StarterGui or StarterPlayerScripts). everything else I said can be done in a single server script, those usually go in ServerScriptService. none of the things I said so far should really require any scripts inside the actual plant model
its a value that stores a reference to a (different) instance in the game. do you know how the other values like NumberValue work?
i get it now, i just didnt understand how it would be usefull
i would say the value objects are mostly outdated yeah they come from times before module scripts and such
for example if you have a tycoon model in workspace, you could have an ObjectValue in it that points to the Player that owns the tycoon, so that other scripts can use that to e.g. write the player's name on a sign, or control who is allowed inside
@peak jolt why does the script only work when it's parent is the button part, when i put it in starterplayerscripts it doesn't work
by button (for planting the seed) i meant gui button
that aside i can't tell you why it doesn't work, you would have to post your code and ideally a picture of how it looks like in the explorer
to add on to this comment, a pitfall a lot of devs fall into is *optimizing too early." It's common enough that there even is a term for it, premature optimization. Your goal should always be to get it working, then optimize it if it needs to be optimized. If you try to do the most efficient way to do everything, you'll never finish a game.
even with my ocean simulation, it was running 50-60 fps when it first was implemented.. after tackling heavy tasks, it went up to 160 fps.. but at least it was working.
i forgot what to use to stop running a code, something similar to return
break no?
that's it thank you
np
winners just crash the entire script 
idiot the game is using sounds the owner doesnt have permission to
I am not the game owner js checking
Me and my dev group are making a game called how far can you jump and yes it is a brain rot cash grab game we just need a Scripter/gui/ui person dm me if you want to join making the game
Not my game
lmao
i have a remote event from server to client right, when i touch a part it it runs remote:FireAllClients(plrname)
(communicates the playername to the client) and when the localscript in starterplayerscripts hears the event being called its supposed to send a message, im not getting any errors but its not sending a message
anyone know whats wrong
I think you need to get the gui from the player and not startergui
wsp
can i learn without watching youtube just by doing small project?
i have some basics of scripoting
can someone help with my game. I'm making a simple simulator for my first game and i have a bug that kinda breaks the game, if you would be able to read the code and help out just DM me. Thank You.
and i use docs
you can learn by doing anything
but yes if you work on something you like you might be more interested in learning
Yeah that definitely works, and if you like doing small projects I would definitely recommend looking into both of TheDevKing's scripting series on YouTube. After each lesson you can then use what you learned to code something small. It's a good way to apply what you learned
BrawlDev is good also
DEV FOR HIRE I CAN DO ANY SKILL ON ROBLOX STUDIO EXCEPT SOUND AND VFX I HAVE BEEN DOING STUDIO FOR 6 YEARS
why is claude so goated at roblox scripting
I have Gemini Pro but it makes basic mistakes very often
i get a feeling that claude is the only AI that gets what's going on on roblox accurately enough to be helpful
**Can someone help me fix the chat TextChatService? My donation game chat is not working in my game. How to fix it 😦 **
How much can exploiters see in terms of scripts? I want to store this module script in ReplicatedStorage but I'm scheptical of the safety of that. The module script isn't that important though, as all it does is return a list with strings related to crafting
having the same issue
exploiters can see any client sided scripts
so they can see scripts inside of replicatedstorage
I dont really care if they can see the script object in the storage but what about the lines of code inside
Can exploiters activate server events?
they can decompile the script yes
I see
and see the code
thanks
if its being required by the server tho it wont effect anything
like they cant do anything gamebreaking
yes
by firing the remote
so keep ur OnServerEvents secure
how to create a teleporter?
should you put billboardGuis on client or server
DEV FOR HIRE (U CAN HIRE ME) I CAN DO ANY SKILL ON ROBLOX STUDIO EXCEPT SOUND AND VFX I HAVE BEEN DOING STUDIO FOR 6 YEARS
can you make a game which gives me robux
Not possible
yeah it's pretty much just a list of ingredients for a cooking game, and they can't actually do anything malicious other than leak the recipes
so I think it should be ok
DEV FOR HIRE (U CAN HIRE ME) I CAN DO ANY SKILL ON ROBLOX STUDIO EXCEPT SOUND AND VFX I HAVE BEEN DOING STUDIO FOR 6 YEARS
same
i will hire you for 0 robux because you are annoying!
ive tried multiple different methods and its still not working
maybe 1 robux if you stop spamming @lethal shell
pmo
Dev for hire I have been on studios for 20 years 😉
Bruh i finally got my portfolio done
CAN SONEONE HELP ME FIX DONATION CHAT 👻
doing research rn holdon
Can yall tell me ur opinions abt it?
10,000 Robux amazing that will be me 😉
How much u willing to pay if I fix the donation thing
dms
Huh
done
Only client
Oh okay good
How much of a bad practice is it if there's a bunch of debugging prints in the console? Do people even check that?
yeah thats fine most exploiters dont even understand how to read game code anyways lmao
all they do is fire remote events
Ye well
Ppl who reverse engineer check console for hints and s to know where the scripts r
makes sense
thank you
It's not like I have to worry much because my game sucks either ways. I highly doubt anyone will take time to tage advantage of my poor coding skills
I seriously got to a point where I don't care about code quality, I just want it to work 😭
prints hardly tell u shit
unless ur printing from a anticheat then sure
Do y'all put all your scripts in one script?
I'm using one server script and one local script
but it doesn't seem right
i use one localscript/serverscript, put all my logic into modules and require from those scripts
oh that's a good idea
can someone help me
What do you need help with
camera bug
What camera scripts do you have in your game
Delete lines 2 and 3 vro
And don’t change the starter player change it in cam settings
i think i should put this in the starter player scripts
🥀 vro
cuz my camera got corrupted in the process lol
HELP
Ye
still stuck idk
Hold on ima give u the full script
i put it in as a local script
local Players = game:GetService("Players")
local player = Players.LocalPlayer
player.CameraMaxZoomDistance = 12
player.CameraMinZoomDistance = 0.5
put this starter player scripts as a local script?
Ye
it dosent even save
@vague notch unblock me 😦
Huh? Hold on what r u tryin to do
so basically when i click play it just
dosent work
it stays black or something like that
U wanna change the players max and min cam zoom right?
That’s not that script doin that
is it fine if a client can 'request' to the server to play fx on other clients?
so whats the problem with it
using unreliables
Did u copy and paste the exact script I gave u
yup
R there any other scripts that control the players cam
well theres a script that uses t to change cams
That’s prob that script then ig
vroom
well without that script the game wont work
feeling like its the cam
cause i deleted the cam and it moved
so this is the problem okay
so when i click play
it supposed to load me into the arena
not show me a black fog
The cam?
lol
bro
what if i got into a diffrent template
and get the cam
delete the cam paste a new cam
idk
Why
so properties?
can i just send you a download and show you what i mean
Ye
ye
u got tons of scripts im tryna read through all of them
which script r u stuck on
the camera
camera local in starter player scripts?
yea
i need help on my game who wants to join the team
did u script that script?
yes
anyone here knows how i can import MANY FBX files into studio FAST?
-- Saved by UniversalSynSaveInstance (Join to Copy Games) https://-
-- Decompiler will be improved VERY SOON!
-- Decompiled with Konstant V2.1, a fast Luau decompiler made in Luau by plusgiant5 (https:-)
-- Decompiled on 2025-07-17 09:10:35
-- Luau version 6, Types version 3
-- Time taken: 0.004676 seconds
whats this then?
okay maybe i stealed some scripts
...
but everybody does that bro
that decompiler sucks
i didnt steal all the scripts
i scripted half the game
then used the decomplier
to get scripts
idrc its just that its rly hard to read
ayy? anyone knows how to import FBX files into studio fast ( i talk about a few thousand )
u asking for help to
lol
bro everybody does
i dont
ok?
uh did u also decompile the cam script like that?
prolly lol
well
bro how can you just get a new cam
gettin a new cam is creating a new cam and attaching it to the character
u didnt
well can you do it on your end
lol atleast use a good decompiler vro
konstant is ass
well it gived me good scripts i needed btro
ur character doesnt even spawn
what
the character doesnt even spawn
.
like even if u made a new cam what would u attach it to
anyways dont decompile scripts
what decomplier should i use instead
host ur server on ur localhost
easy decompiling
what even are decompilers
says in the name
this dosent even give me the lua
they turn script bytecode into readable luau
how im supposed to use ts
oh
i already told u
run it on ur localhost
and then make a luau script to communicate with the server
ai cant even fix the problem here ahhh
local part = game.Workspace:WaitForChild("Part")
part.Touched:Connect(function()
part.BrickColor = BrickColor.new("Really red")
end)
oh?
How do I implement a deterministic, multi-threaded ECS framework in Luau with hot-reload support across the client-server boundary?
idk some ytber did that and its not working for me
local Workspace = game:GetService("Workspace")```
how do u do that kind of text
wich?
like this
local part = game.Workspace:WaitForChild("Part")
part.Touched:Connect(function(hit)
if hit == true then
part.BrickColor = BrickColor.new("Really red")
end
end)
try this @unique shadow
with this Accent
wait no fuck i forgot something
why Hit == true?
can an instance even be true?
yes
this script isnt wrong u just prob put it in the wrong place
its in a local script
life:destory()
im just a begginer guys don't mind me 😄
nvm it cant
put it in starterplayerscript
Hot reload?
Anyone have an idea how I would go about making a combat system using true OOP or another sophisticated method? Right now I just use Folders and InstanceValues to see if the player was hit, if it was on cooldown, distributing damage, etc
it cant be in a local script
just tested it
can you not get a animation tracklength on server?
else everything is right. if u wanna do it localy i could help u
OH IT WORKED
welp
LOL THX
np gl lol
thx dudee, i was told to watch brawl dev advanced scripting series and like test out of bunch of things to memorize code and also challenge myself to script stuff, this is the way to go right?
did u watch beginner guide first?
ye thats one way
yeah
good
can you not get a animation tracklength on server? I tried to retrieve it but would always return 0, no matter what.
im still not done with it lol im on playerstats
ouuu good luck!!
atleast i havent have had any major prolems yet
i dont think ive ever watched a roblox tutorial vid in my life
what
only issue is im going on vacation in 2 days :/
dangg
did you just read the documentation and stuff
or were you born with scripting capabilities lmao
you should keep up the grind despite 💪
dont have a pc that i can transport so idk what to do
oh dang it
thankfully i have a laptop with me, never used a PC before 🤟
i dont have a laptop 😔
yeallat of time spent just reading the dev forums
me neither lol
oh wow, so your saying you can learn how to script just buy reading the forums? 😄
its recommended to
i mean
forums are really usefull i learned ahk js using them in 1 hour (basic things tho)
You need to code things and practice, and learn outside roblox scope sometimes
i seeee!!
oh yesss
they told me to really just make random little scripts to familiarize with scripting
we all start somewhere!
where do i find the forums though 
dev forum on roblox
yes
where do i go then 😄
there is a lot of buttons here
my bad if im bothering
i mean look up random things on google abt scripting and there are posibilities that u find what ur searching (high chances)
ohh i see
imma try finding a way of how i can get a laptop or something that could work before i go on vacation
oh yeah seems tough, good luck though
WOWWW
yo if theres any scripters looking to just work on a project for fun dm me i have 1 other dev, will send game details in dms
does it work if im learning scripting
i knew 0 math, 0 programming, just making games and googling and getting really stuck a lot lol
wow
that’s lowk how u learn tho
When I destroy an object at the start of my game, the game lags a bit in studio (maybe a 0.2 second pause). its not a big deal but its a little annoying every time I have to test
is there anyway to fix that or is it even gonna be an issue outside of studio
studio issue
yo
your game might not be published
like the version your playing might be an older one where this script didnt work
or the purchase logic might be on the client and not the server which can cause these bugs
if you send your code i might be able to help more
'' a
' aa
aaa
-- This LocalScript should be placed inside your TextButton in StarterGui.
-- Replace the content of your existing LocalScript with this code.
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TextButton = script.Parent
local purchaseEvent = ReplicatedStorage:WaitForChild("PurchaseItemEvent")
-- Configure which item this button buys
local itemName = "Viper Titanium"
-- If this button is for a different item, change the name above.
-- You could also use an Attribute on the TextButton to set this.
TextButton.MouseButton1Click:Connect(function()
local player = Players.LocalPlayer
if not player then
warn("PurchaseButtonClient: LocalPlayer not found.")
return
end
-- You can add a client-side check for immediate feedback, but the server MUST validate.
-- For example, disable the button if cash is known to be too low, then re-enable if cash increases.
-- However, the core purchase logic relies on firing the event.
print("Client: Attempting to purchase " .. itemName)
purchaseEvent:FireServer(itemName)
end)
@edgy venture
alr
so make sure that the items/models/tools are in replicated storage and not serverstorage, if they are and it still doesnt work. make sure that the PurchaseItemEvent remoteevent exists inside replicatedstorage, if not or if its misspelled, correct it. and make the game private, then publish it, and make it public again, or if you want it to stay private just publish, if it still doesnt work, add debugs like "print("This is whats happening")
i dont know if this is a question I would ask here but i wanted to add text to the bottom of my screen when you click on things, how would i go about doing that?
like if you click on a piece of paper how I would i make it to where words on the screen would pop up like "i can't read this right now"
my friend is planning and developing a “front page” but he doesn’t even know how to print
yea i was explaining it to a friend
I'm getting the following error in the output. I have a check that checks whether or not the part exists and even though the part gets destroyed, I feel like I shouldn't be encountering this error. Does anyone know why I keep getting this error? It doesn't actually affect the core gameplay
"Can only call Network Ownership API on a part that is descendent of Workspace "
how can i make it better ( unfinished )
???
yo quick question, working on a weapon system with guns and melees, rn im doing the raycasting and the visuals on the server.
Do i do the raycasting on the server and the visuals on the client or both on the client and validate the ray that hits on the server? game will have hundreds of enemies so i want it to be as optimized as possible
raycasting on the server for guns can cause it to feel delayed
putting the ray on client would be so much better
alr thanks
it needs to be on both
client for responsiveness server for validation
well yes you could validate if they are even visible on server
reminds me i should probably do that
I'm trying to make a chunk loading system but I want to know if exploiters can edit localscripts or just read them because I'm doing a random generated room and you discover rooms but I don't want exploiters to be able to just move rooms into the game and just discover them.
elaborate
like something to make the visuals show for all clients

yo i just made my first game fully scripted by me and it was a simple cooking game, what should be my next game
ye its called fireallclients buddy
sloppy code, fix it
wdym
make assembly in roblox
Can I see
its called undercooked, i cant send links
i keep forgetting the most basic shit 😭
mine
yo i want to make my animations that i made function into a duo emote, any of yall able to help? im not a scripter im just an animator and i wanted to know how to go about making it functional so i can showcase it
anyone have a simple car spawn system? i need one like now for quick testing
--!strict
type PersonImplementation = {
__index: PersonImplementation,
new: (Name: string) -> (PersonType),
SayHello: (self: PersonType) -> ()
}
type PersonProperties = { Name: string }
local Person = {} :: PersonImplementation
Person.__index = Person
type PersonType = typeof(setmetatable({} :: PersonProperties, Person))
function Person:SayHello(): ()
print(`{self.Name} said hello!`)
end
function Person.new(Name: string): (PersonType)
return setmetatable({
Name = Name
}, Person)
end
return Person
wdym better
how is this impressive? lol
sure if your a beginner then that’s nice
To me its impressive fs
its clean
Can u explain it to me please :>
sure but it’s also just a sample
not really anything impressive
it mainly just looks complicated cuz of the types but it really is very simple code
Guys can u teach me about it please
types isn’t and shouldn’t be complicated
because an absolute genius admires simplicity
I wanna be like u guys
ok usdev I'm trying to speak from more of a general standpoint
like to a beginner or even amateur they're gonna look at that and think it's complicated af
Yeah that's me rn
show what class is being constructed
u dont construct classes buddy you construct objects based on classes
Nevermind
im at the same stage as u rn
They're too busy arguing whether it's good or not but I don't even know what that means
ion know what that code means aswell icl
I'm saying
yes exactly
Person is a class
your construction an object using .new from your Person class
person = class
that’s all your code is
w goalpost mover
A fast, small, safe, gradually typed embeddable scripting language derived from Lua
something i created for practice, pretty happy how it turned out#
as a beginner stick with the dev king for now
Where can I find a scripting teacher
thedevkings playlists
watch em already
do small fun projects to get better
but there is more stuff I don't know
ask ai to explain that stuff
or people in this discord
I js need a teacher to teach me 3 things
thedevking is bad and outdated
use brawldev instead
only thing that i saw was outdated was when he taught weld
region3, raycasts, tick, he got a lot of outdated things
theres probably more
and not only that, he is terrible at explaining things
Ilysm ❤️
how do you format ur code on discord like this
don't diss thedevking 🥀
thanks
thedevking is ASS
yo i want to make my animations that i made function into a duo emote, any of yall able to help? im not a scripter im just an animator and i wanted to know how to go about making it functional so i can showcase it
wait not this channel mb
yo lowk I need sm1 to try (not test) my game and js say what they think abt it, just wanna know what I need to change (dms)
whats the game about
Basically, you have random swords everytime you equip, they ALL have the same attacks but they all have a unique ultimate, im the only scripter in the project rn
im the only dev
how do i stop my tp anticheat from activating when the player lags or the game isnt fully loaded so the player lags and gets flagged?
any form of help is appreciated
get rid of the attribute commands
they mess it up
why
ill test
to what tho
ok im new and even i know booleans are a thing...
local sigma = game.baseplate.part
sigma.transparancy == 0.5
🙂
that's cold
dms
oki
i should practice more so i get less lazy 😭
game.baseplate.part is wrong its game.Workspace.Baseplate.Part
i know how to do stuff but i get lazy ah
im sowy im new to coding :/
workspace not game.Workspace
ez
game:GetService("Workspace")
yeah
dont do game:GetService(“Workspace”) thats waste of variable 🤡
just make ur game not lag to death and make it able to be understood if its not just you then ur alr doing ok
dont need to save .000000001ms for no reason
but yea workspace less typing so its better
give it up bto
a
can someone help with my game. I'm making a simple simulator for my first game and i have a bug that kinda breaks the game, if you would be able to read the code and help out just DM me. Thank You.
idk
I can try help u but what’s ur code?
could u help me??????????????????????
??????????????????????????
???????????????????????????????????????????????????????????????????
- Stop using AI to code everything for you.
- Stop relying on Attributes for that stuff.
- Stop trying to make a TP anti-cheat with zero experience or knowledge on what you're actually doing.
what if i said i didnt use ai
💔
ai is dogshit
ive been living off code help
stop being annoying and let people learn
you're not even learning you're just using ai for everything and trying to be spoonfed everything
😮
I gaurantee you hes not gonna put his life towards scripting like you probably did
i haven't put my life towards anything lol
cas;ld[adikoasdksapofjpsjfpfoa;ifhsdfhap948hs
:):PDOA
i barely know lua compared to 95% of the people that talk in these chats all day
cap
the most experience ive had was when i was making ui libraries for exploiters lol
Nice
whats that
code from when i used to do ui stuff
No
how do i not be lazy 💀
Sure can try tho
Yeah depending on the if the error
dm me
Dm me
yo someone motivate me to not be lazy and actually get to learning
dw most of them are just braggers talking about literally the thing they read a moment before
ok get back to work like a good boy
ok maybe not like that
u said motivate u
oki
what do you mean?
ive never used ai for this script
Hey, if i have a weapon hotbar system should I make the weapon scripts parented to the weapon model or keep them seperate?
id probably keep them separate
k thanks
can i learn by only doing project with documentation help? without ytb
i have some basics
3. is literally how you learn?...
"don't try to learn scripting because you don't know how to" vibe
im saying he doesnt actually know what hes doing
he doesnt even know how to use cframes or vector3
and he claims that he made an functional gag remake despite not knowing either of those which are literally one of the first things you learn
hes been given advice repeatedly regarding the "anticheat" hes making yet it doesnt seem that he takes it and instead puts it through chat gpt (like he has done before) and then complains more when it doesnt work
its like someone with absolutely zero knowledge on absolutely anything lua related tries to instantly hop onto the advanced stuff instead of learning the basics which is what hes doing
who can help me make a steal a game
fair enough
How are you going to differentiate a player who's experiencing a massive lag spike and an actual exploiter or even a person who's being flung at high velocities
could use thresholds and reset them after a duration
no like as soon as the game starts it lags the player
i need help w that
i think this is the only valid way to do it
For these, aren't you just better off using :GetPropertyChangedSignal("CFrame") instead of a heartbeat?
all movements made by the player don't trigger that
I see
you can use movedirection though on the humanoid
does teleporting change movedirection on the humanoid?
dude i remade gag with CFRAMES
and i barely used those
it was for the tool system
for the seed planting
the plantedparts position would go to the mouses position if the mouse clicked within the planting hitbox part
because you've sent multiple screenshots of ur code with ai comments included lmfao
and i doubt anyone like you could actually learn and comprehend anything you see in these channels
ur a 14 year old little boy who likes making jokes about shooting up schools
and then gets mad at other people when they get mad at you for it
i dont know how to do math with cframe and shit, nor velocities
Also @glossy wave no it doesnt trigger it when teleporting
dude the "ai comments" are notes i made, you dug in my message history js to find that shooting up school joke i made like 7 MONTHS AGO
so only walk
yeah
chill
diving into my message history in a code help channel
over a piece of code i needed help on
does that change what you said lol
💔
who cares?? its 7 months lil bro
or wait
what about the screenshot i just sent
ur an unc
2 days ago
thats bc i said it again to prove how it meant nothing
it just proves that you're not matured after turning 14 lol.
you kept mentioning it and shit
so funny
wrap it up
unc
❤️🩹