#code-discussion
1 messages · Page 99 of 1
Hey guys I’m kinda stuck right now I learned the basics of coding and I don’t know where to go from their k know their is a lot more to learn but where should I go to learn it and where do I go to learn the terms and stuff used for scripting like variables and stuff I’m just so lost and don’t know what to do
stop learning
jk umm
just read docs
and api refs
and practice a ton
Where are the docs at
"The Ultimate Scripting Mastery" 👌 🔥
Hey!✋ Welcome to 🌟GameDeveloperStudio🌟 we are a new Dev Team that want to create unique expiriences
Currently we are making a footbual game like rf24
We need:
1)Scripters 1/3💻
2)Modelers 1/2🧱
3)Builders 0/2🛠️
4)Ui designers 0/2
5)Animators 1/2
Thats all! if you are interested dm me ill give you more information and introduce you to the team!
any scripters can do a gun system 1:1 to rivals for 750k (not for me for a friend)
You ain't got 750k
yeah you never seen this in your life + its not for me for a friend
What is the username of your friend?
Lol forget it if you wanna talk about that
aint gonna send all infos
to someone who say i dont got 750k
You said it's for your friend, I want his username
no thanks
Who made that?
what is it?
oh k
Oh look squid game trailer just released
i binge watched squid game season 1 and 2 in one day
What is that?
What does "binge" mean?
?
binge watching is basically watching something none stop
like getting in the zone
Cool
That's like 12 hours
ik
Who is this Mr fire guy?
💀
I don't know, but the course is just videos, I think it'll be worth your money
Alright I think I’ll buy it but where did you find the course at
I don't know, I just used Google, you can also see BrawlDev's scripting course on YouTube
That's good too
Alr but what did you do to learn
Okay
can someone help me on how to make a punching system
Thank you
its not a decompile its legit from scratch
Never said that it was a decompiled version
y'all got trust issues
i've done bigger deals never signed a contract with my clients
just work with established developers
not some random guy off the street promising to pay you alot for some sketchy project
yes
send me your friends username
is there a contract or some sort of down payment?
Grow a Hatchery is looking for devs!
Grow a hatchery will be a game like grow a garden but instead of buying seeds you buy eggs which can hatch into cute pets!
you can also buy items such as cushions which you can place in you're plot and earn more money from you're pets! if u don't like a pet you can also sell it for more money!
ui 0/1
scipters 0/1
builder 1/1
Modeler 0/1
payment: 15%to each dev
dm if interested
no
stfu
I love creating new problems for myself by fixing old problems
There is already game like this called Grow a Pet
yo can someone tell me why people use "hit" in all scripts that relates to the players character
I have a scripter friend and when he shows his code to me, I see Waitforchild()
Seeing it in others codes, I wonder. What does it do actually? It's used alot so it seems useful
💀 💀 💀
go ask chatgpt
hello everyone, why does getasync return nil while getsortedasync returns data from the same datastore? i deleted the data from it -_-
pay 100% to yourself and you do it
are coroutines used often?
pretty sure this already exists dawg
lil late 😔
@quiet stream dms
any serializers you suggest?
im looking for some
instancestore is iffy
doesnt save the useful stuff i want
RBXSerialize v0.1 A All-In-One Roblox instance and datatype serializer Supports the majority of ROBLOX instances and datatypes. Version Notes This is an early version! Some things may not work as expected. I’m releasing it semi-unfinished because of how long its taking me to complete the rewrite. What is serialization? RBXSerialize ...
this looks promising but ive seen some criticism
Does an instancestore allow u to save objects?
its a module 😭
that yes, converts instances into tables
which then can be stored in datastores by turning it into a string with json encode
couldnt u make your own?
thats not how it works 😭
damn.
i mean technically i could make my own serializer
but thats
not something i want to do today for slop 😭
slop game
slop game 😭 ??!??!?!
so for some reason a local script that handles firing an event and updating the player sounds doesnt work after I reset my character, anyone know why?
totally normal lighting
Because of kids
yo guys im working on a game now its like a rivals game but with a twist how hard is it actually to script the game ?
i think you steal sm stuff off a conveyor belt and put it in your tycoon
It says "Earn Cash Offline"
It might be inspired by "Grow A Garden"
offline earning only returns players
but whats the point of even playing if you can join once and come back a few months later
unless they added a cap to it
most games i’ve seen haven’t had a cap to offline earning
yeah you probably get a lot of players immidiately but then slowly lose retention
like yeah they'll come back to check, buy something, put it down, and then come back later
whats the best way to dectect if player is touching something
if you want to be simple use .touched
but be aware its going to fail with anything more complex than static parts
.touched for non moving objects, region3 ray casting or query for everything else
Query is provably the easiest
isnt it part.Touched:Connect (function()
Yes I believe
forgot it was that simple
Roblox makes coding so much easier
Is it ok to have particle emitters on the server that are disabled
Then emit them on the client
Or should server sided particle emitters be completely avoided
if you’re thinking about adding a setting to disable particle emitters on the client side then do it locally
damn thxs what games have you made?
Is that an option
Oh nvm
No but like
if you make a localscript that disables the particles with a button then it disables it clientside
Can I have the instance on the server
Where do I insert the WaitForChild command? Whenever I place it somewhere the script breaks
Or not
Ok thanks
you can either disable it server side or locally
Cuz output says this
camera1 is not a valid member of Folder "Workspace.Cameras"
anyone got my situation
i want to learn scripting but anytime i try to learn it,it gets boring
local camFolder = game.Workspace:WaitForChild(“Cameras”)
local camera = game.Workspace:WaitForChild(“CurrentCamera”)
do you have camera under the camfolder or do you have it just in the workspace
I’m still working on my first game
Don’t watch videos and brute force it like I do, I find it way more fun and you might too
do the stuff in the video while watching the video and then after watching the video, build something with what you know based off the video
how long have you been doing that game for?
In the camfolder
am I correct to say that in the big 25, pairs and ipairs don't have to be used anymore?
like 5 months
But where do I place it in the script? @real zealot
damn whats the game on?
tower defense
if its under the camfolder do
local camera = camFolder:WaitForChild(“CurrentCamera”)
do you do commisions for money or nah?
i will if its easy
But where in the script as I mentioned do I place it
switch out these
with what i put
im currently making a button simulator game with only ai and i have no experience at all or any knowledge and its going pretty well
nice
if all goes well i put 100k into sponsors and make bank
i used ai while learning and it put me in a motivational dip because it felt like i wasnt actually doing anything
you should test the waters first by putting like 3.5k for a week and seeing if it doe well before investing 100k
the games pretty much done tho
its good if you’re using it to find references to what you’re trying to put inside of your script
its only 100k tho ngl
buddy 100k is so much 😭
like 350
Doesnt work
350 USD is a lot more usd than you think bro
what does it say
only 100k
Fair
how did you get that much
dont worry about it
what tutorial were you using
so that i can atleast replicate the steps
it not my account but my brothers, im not that rich but he is
thats actually insane
i recommend using daily spending and trickling a few thousand a day rather than putting it all in at once
i guess bro didnt see
I'll send in DMs
i saw
money runs out faster than you think
not really
bros from a rich family 😭
he fraud being a developer for 9 year olds
huh?
yes
what does that mean gang
You scam 9 year olds telling em you are a pro developer and use self made assets
nice one
can i see the game
like my one thats still in production?
yeah
Could someone mentor me in scripting?
dont even need tutors
No one there mentors in scripting lua
just use ai
I'm good.
goodluck then
i learned scripting predominantly with the help of AI and youtube videos
you dont really need a mentor
I mean I don't need one I've been learning pretty good from scripting videos
and the docs
but a mentor could help you learn faster and better
its gonna cost you then
I'm currently watching brawldev's playlist on learning how to script, does anyone understand where the otherpart argument comes from?
its pretty much the part that connect the function of the touch event so he using it to get the Humanoid(he takes the part and then gets its parent which is your character and then find the child of it "Humanoid") using -- otherpart.Parent:FindFirstChild("Humanoid") from it to then reduce its health to 0 and kill the character hope im not mistaking and making sense
try to look in players into your character and its children to understand better
okay i got it thanks
Can someone help me configure this, i need to add my group ID and my brick color and I cant figure it out, im a modeler so I have no scripting experience
Quick question if u put streaming mode to default, and lets say ur rendering a map thats 3000 studs away but the client cant physically see the map but its still in the render distance will it still stream the models or na
Watch Simple combat system by Lunar_Frost11 and millions of other Roblox Studio videos on Medal. Tags: Roblox Studio, Roblox Studio
is it decent?
i made idle animation too
Could someone mentor me in scripting
can anyone help this guy out
If streaming mode is set to default, and the map is 3000 studs away but the player can’t actually see it (like it’s blocked or out of view), Roblox usually won’t stream those parts—even if they’re in render distance. It only loads stuff the player can see or is close to.
ok so i know pretty much the basics of lua roughly how everything works but i dont know what to do next like ive watched fundamentals video on like strings etc. does anyone have advice on what to do next??
slightly over complicated it, otherPart is the part that collided with the killbrick
Yeah basically I wanted to use that teaching to learn method so I found it the right occasion to share what I knew from it to understand it better and sorry if I misinformed
huh
Yeah I think I understand it
try to make something like a door or changing a part colour
😱
done that thru tutorials
I mean js like think of something cool you wana make and do that. It could be more 'advanced' js learn as you go
idk much about pcall but maybe boothowner isn't getting the other player?
Ai says it needs to be a local script for it to work.
try reading the documentation for pcall I mean it looks correct
at least yeah the second bit lol
r you getting the service startergui or just saying it
I was looking on forums and I think you only need pcall if its before the startergui has loaded.
it should work without it prob.
'**game:GetService("StarterGui"):**SetCore("PromptSendFriendRequest",otherPlayer)'
https://devforum.roblox.com/t/prompting-friend-requests/3095864/2
pcalls
examples
https://devforum.roblox.com/t/pcalls-when-and-how-to-use-them/393687
understanding pcalls
https://devforum.roblox.com/t/what-is-a-pcall-function-and-how-do-i-use-it-and-when-should-i-use-it/1710582/5
Use google omg. 😭 game:GetService("StarterGui"):SetCore("PromptSendFriendRequest",otherPlayer) No, thanks. Not a christian.
Introduction Protected calls, formally known as pcalls, can run functions without erroring and provide if your code was successfully ran but what’s the best way to use them and when should I? In this tutorial I will be covering the entirety of pcalls and where you’ll need them, so lets begin! Pcall basics First and foremost, we should lea...
https://developer.roblox.com/en-us/api-reference/lua-docs/Lua-Globals You can find additional information about the pcall() and xpcall() global functions here.
https://www.reddit.com/r/raytracing/comments/1krt4v5/ray_marching_fractal_rendering_for_performance/
bro this shit just ate my computer whole...
Maybe try to replicate a simple game mechanic you find cool
guys what is the best way to start scripting in LUA. i know OOP
I started by watching youtube tutorials but you could also check out the roadmap in the pinned messages
yo
do you know an effective way to send data from the client to the server not using remotes
i have a lot of npcs that are being moved on the client and i need to send their position to the server
Do you Mind explaining how your game works a bit
yeah sure
maybe you can send the end position only thru the remotes because apparently remotes are the only way to send data, idk of any other way
You can also try modules that serializes data before it is sent through remotes
the data is a vector3 value
Hmm okay how about your explanation how does the ame work
Maybe i could try helping with more context
its an interval based npc spawner that moves along a set of waypoints to an end goal with the movement being handled on the client
i need to send the current position of the npc to the server
If you need to send the current position of the npc to the server you have to update it from the client every tick then I think serializing is the only optimization possible unless you could cut down the usage
maybe someone else more knowledgeable than me could find a way that's all I know about it though
handling that much npcs with client to server communication seems a bit much, the server should handle all movement then you can use fire all clients to verify their position. the client can have its own smoothing so the visual aspect is still handled by clients. this way is also better for security
guys i need some help, im working on my game and this is the first time developing but im having a issue that i cant figure out, basically when i open the robux shop ingame it let me purchase the item but it doesnt give it to me, it only gives it to me if i buy it rlly quick. hope someone can help me have a great day!!
if it works sometimes that suggests something is stopping it from working other times. make a print when its supposed to give the item to verify if it actually works and check for errors in the f9 console
thx!!! ill try
I created a shadowpathing module script that follows the npc on the server too, im getting at max 100 ms ping for 1.16k npcs at the same time, would you say that's good
id say so, if you dont like it then all you can do is try to optimize more like only save npc position on the server in batches and handle everything else on the client - would solve the remotes issue your having. you could also try spawning npcs only when near a player so the npc isnt even there when not necessary
oh yeah I got rid of the remotes completely and it made a big improvement
im new to coding and confused about functions, can someone explain?
like does it call out a piece of code
and runs it
thats it?
it's basically just like math functions
f(x) = x+5
f(3) = 3+5 = 8
except this time it's not just for math use
but in the wya you put it, yeah
user id is 1367816151601512450
Watching brawldev scripting tut, why does he change the leader stats’s parent to player? What does it do?
Roblox's core-scripts look for a folder inside of the player named "leaderstats". When that folder appears, it renders its contents to a leaderboard on the player list
no data would appear in the leaderboard if you didnt
who decided leaderboard data shoudl be named leaderstats?
I mean I dont mind
but just weird
Are you making a game to teach stock market?
Thank you
it looks cool
how are you rendering these? is this like all seperate frames that make this curve?
editableimage
If it actually teaches I would be down to play
someone got a script for showcasing cutscenes in game? ill pay
huh?
script that plays camera and player animation if u click E or someshit
guys help im scripting something how do i make it so if you have a role in a group you spawn in a specific spawn point and you have a team i.e: Head staff
use Player:GetRoleInGroup(groupId)
im a beginner scripter idk what wym by use it, like just make a script and put that in?
no thats used to get the role of player in the group
can you put like the sample script of what you would put like the whole script that would go in
no
then how i do
It's a pretty simple request so AI could be of help
i used chat gpt and its not working
you lack knowledge of scripting so its very difficult to help you
i need it so once the role of the player in the grup it makes teams based on the ranks in the group and spawns for the team
oh alr
g
damn.
que
yo someone quick math
its copying primary part rotation how i make it not copy the y rotation
i tried multiplying by new cframe with 0 y but
dont help him help me
The best functions are the never ending ones🥀
Ok?
@gentle heart
this menu, is it package i see it on a few games
great menu bro far more better than mine xd
suggestions?
why's it update so fast
pretty good ui
is this your game?
why vs code?
do u recommend it
roblox studio
and why you would use something that you dont recommend?
why i would use linux?
why i would work?
why go outside when i can stay inside?
show me a video of urself doing it
depends on your pov
Is making a combat system difficult?
depends
Could you explain more
well it depends on what do you want to achieve. depends if you have knowledge or not...

Oh yeahh im brand new to coding 😭

Only you can see it if you wanna it's in the view tab
wanna see mine?
u will like it trust
no, the animations are the hardest part
Well then im okay on that part im probably just gonna hire someone for the coding part
um guys we might have lost
-86% 💔
animations are harder
but remote events come after that, you need to secure your remotes, know when something is exploited, and to compensate for ping
uh no
i'd like to see you try
same way that in fps games aimbots and silent aim and such cheats are made
remote key system 💔
all an exploiter needs is to check your client code
and copy what you do
it's not hard
no matter the security, even in phantom forces
we're not talking about script kiddies, i'm talking about people who actually know to exploit
which is why remote hashing is enough
you need speed, not just security
whats hidden nils
remote:FireServer(nil, nil, nil)
pretty sure remote spys don't show those
ohh
but if you do
nil, "hi"
the nil is shown
cuz nobody really uses them
i just use my own remote hashing module
what about
"hi", nil
bad thing is, it's just a modulescript, so exploiters can see both server and client code
im not sure but i don't think that nil is logged
alright
doesn't matter tho, the exploiters can't exploit the server code in any way
the client code doesn't really matter either, as you can just require the module yourself
which im working to fight against, tho not much luck
i use hashed remote paths so people using simplespy are clueless
why not?
the server code is not dangerous
icba to make this 2 separate modules
but better practice would be to put 1 in serverscriptservice and 1 in replicatedstorage
this is the server code, it's not dangerous
theres not much backend
huh
this is an example:
implemented typechecking aswell, so you can't exploit stuff that i don't want changed
but i can also disable typechecking, so anything can go through
good luck trying to exploit it
so i can pass nil
it's not, it allows me to detect nil, nil, "hi"
if i did not implement that, i would only get "hi"
which would be wrong and might create a false alarm
when grouping objects through model, is there anyway where I can create a new part that will automatically go into the model?
is this method commonplace? I wonder how you implement it
nope
what method
wouldn't the exploiters still be able to see when you send fireserver(nil nil nil) and stuff
because its written in the script
they can
that hidden nils protection is just against script kiddies, until a real exploiter joins
ohh rightt
what's your opinion on a "key system" that is based on a property of a certain part ingame
changes every few secs
I had that implemented for a while idk if it's effective
how come
nobody cares enough to make a new one
we just use simplespy, even tho it's really horrible
it's like from 2019 im not sure
I don't think it'd provide much latency as it's just a few lines but Sure i haven't tested it
i started making one but then got too bored lmao
doesn't really matter, all you need is:
spy correct values, such as buffers and nil,
spy what script fired the event, spy what function exactly
may i see?
i'm pretty sure mine is better
what changes from having a _ compared to index or just i
nothing, _ usually means that it's read only and never used
_ is the same as any variable, we just use it because we won't use the index
wtf gng
whats the difference between index and _
no difference
i wanna see you dump obf code
we just use _ because we wont use it in the script
ohh
think of it like a
@cedar moon
throwaway variable
and i is used within the script?
yes sure
_ is the same as i you can name it i or Index or whatever
devs just use _ because _ is the common throwaway variable
there you go
hidden dumper 💔
the dumper's really bad gang
mine has == detection, and, not, all metamethods
mine is pretty new
had to tamper with obfuscators to get and and not, == and if checks working
but i just gave up on if checks because when i spied their body it was either:
s[a] = s[a] + 1
or some other thing
that's why I didn't really ever tried using it
luaobfuscator is just bad
i don't do that
i obfuscate the code with a minify option, replace all not with NOT(a), and with AND(a), and so on
its not very fast though, which is why you can choose to enable hookop which does what i just said
or you can disable it
to run the code normally, with metamethods
thats what i do
i think
btw do these exploit prevention prevents the exploiters from running the remotes or does it act as a honeypot
what I mean by honeypot is it lets them run it anyway but their users are logged
none
what does it do then
which exploit prevention
its just there to detect
but you could make it a honeypot
yea but in some cases you'd have to sacrifice security for reliability like ui related stuff
BUTTT any sane exploiter can just block your event from firing
in my system the hackers gets no benefit from blocking an onclient however it provides a benefit if they can fire the server
as it bypasses the "minigame gui" system i have
@cedar moon Should i add something that makes sure my event isnt blocked?
I could make it so the client fires a remote every 5 seconds to check if remotes are blocked
true when you bypass that omega cool namecall detection
then don't let them bypass it
what 💔
i use 1 remote for everything
less fireservers, more organized
My current implementation is the aforementioned key system alongside the remote however it isn't necessary to run the remote, it just logs the uid of people who don't send it with the remote
thats bad
this way I can just edit my key system seed generation slightly and log a ton of skids who is using an old script
Player:GetPing()
Yeah lowkey I haven't tested it that much but I reckon there is a way to get ping
I thought of a system which works theoretically buuuut never really tested it yet so I hope it'd work
involves ping math and stuff
I couldn't think of any other way, that's why I was interested in that nil thing you guys talked about
I might learn it sometime later if the key system I made started becoming a problem
your key system's bad, people are just gonna laugh at you
Why is it bad though? I think it is good enough to deter skids
does anyone know how to run your code? i accidently closed it
because anybody with a decompiler can bypass it
i mean see that it actually works
ohh yeah I noticed that early on
that's why I decided to make the key system unnecessary
to run the remotes
but I log the players who send it without the key
nvm got it
so you'd have no way of checking if your key is right/wrong
it's a pretty clever system imo
also with the way it's made, I can change the rng at any time I want
therefore whenever a script is made and distributed to skids, I can change it slightly
the skids won't know they've been detected
I've given up trying to make it 100% foolproof so the next best thing is to trap them
am bored wut shud i do
won't matter if its cracked
they just crack it, next step is to bypass your traps
yeah thats why I added the rng thing
honestly ion know how smart exploiters can get but I'll probably adapt, this should be good enough for now while I learn of the other methods
Is it a bad practice for me to make a for loop inside a for loop?
I was about to but then you blocked me.
no if ur using the brute force solution
it might cause performance issues tho
depends on how much stuff you are looping
give
could be
what should i change
i love that
ty
remake the images to smt else, it will probably copyright, keep the style tho
Guys what does the FuzzyEq method of a vector3 do?
how to do it then
A question to experienced scripters that know how to organize scripts well: Is this a good way to organize scripts? 1 server script that requires all the module scripts for the server's side, and 1 local script that requires all the module scripts for the client's side.
do you approve of this style of organization?
it's fine but please use some more folders
the nice thing is you get to control the order at which all of those module scripts start unlike if you have them all being regular scripts but you can't use stuff like parallel lua
checks if two vector3s approximately equal each other https://create.roblox.com/docs/reference/engine/datatypes/Vector3#FuzzyEq
What do you think is the best approach to organizing scripts?
it uses magnitude tho right?
To ensure code readability and efficiency obviously
and avoid exploits
I have seen someone say this: "I wouldn't go for a modular approach. This is because, exploiters can read modulescripts, unless you keep most of your ModuleScripts in ServerScriptService or ServerStorage, exploiters could probably steal all the scripts in your game, and easily make a copy of your game. So if you are going to use a modular approach, you need to be careful and store ALL server scripts in ServerScriptService."
the one script approach is fine for most games but it can depend. Like I've made an rpg game where each player model had a corresponding actor in serverscriptservice which had a single script that required many module scripts
if you don't have 10k players and you don't have 100% of your scripts in replicatedStorage it's fine
anyone got any game ideas
From my time developing, I’ve had loads of projects I’ve cancelled due to laziness. So, I decided to put together a list of 30 free game/mechanic ideas for you to use however you want. You don’t need to credit me, it’s free real estate. However, there’s a rule - if you use one of these, you have to reply with your own free game idea be...
tysm
Here is a list of game ideas that I’ll probably never make myself 🙂 I’ll probably add more game ideas here, so if you need any inspirations/ideas, feel free to come back to this post whenever you want. You can also use these ideas if you’d like and if you are going to use one, please let me know so I can help you with ideas, suggestions...
hi how do i add datastores here?
anyone looking for a scripter tryna build port
i dont think anyone mgiht care 💔
yeah that's what Im hoping for lol
local plr = game.Players.LocalPlayer.Character
local plr2 = game.Players.LocalPlayer
local head = plr:WaitForChild("Fakehead")
local overheadui = head:WaitForChild("Information")
local userid = game.Players.LocalPlayer.UserId
local textlabel = overheadui:WaitForChild("Username")
local maskvalue = plr2:WaitForChild("Base"):WaitForChild("Mask")
local ogname = textlabel.Text
if not maskvalue then
print("cant find it")
else
print("found it")
end
local function ChangetoUserID()
textlabel.Text = "<i>*"..userid.."*</i>"
end
maskvalue.Changed:Connect(function(value)
if maskvalue.Value == true then
ChangetoUserID()
end
if maskvalue.Value == false then
textlabel.Text = ogname
end
end)```
making a mask system, im new to scripting, is that good?
--!native
local function GetMoveVec(InputVec: Vector2): Vector3
if InputVec.Magnitude == 0 then return Vector3_zero end
local camCF = cam.CFrame
local lv=camCF.LookVector
local rv=camCF.RightVector
--// treat it as a vec2 for optimisation. then return it as a vec3 in the end
local forward=vector_norm(vector_create(lv.X,lv.Z))
local right=vector_norm(vector_create(rv.X,rv.Z))
local raw=vector_norm((forward * -InputVec.Y)+(right * InputVec.X))
return Vector3_new(raw.x,0,raw.y)
end
challenge: optimise this even more
no
probably just throw in some types in there
sometimes makes it go faster
is there any way to make a game teleporter teleport to a game i dont own?
yes but it'll always be the starter place
guys my remote event not working
i cant find anything 
for real?
whats more efficinet
GetPartsInPart() or a custom collider
Commision open again, small task for 300 Robux, dm me for info
how do i open the frame data in studio
when you usually have to open it ingame
with shift+f2 or something
doesnt work in palytest
script.Parent.Parent.Frame.Visible=true
script.Parent.Parent.Frame.a.Visible=true
game:GetService("ReplicatedStorage").remotes.roll:FireServer()
task.wait(5)
script.Parent.Parent.Frame.a.Visible=false
end)
server-local chances={
["COMMON"]=500;
["UNCOMMON"]=250;
["EPIC"]=125;
["LEGENDARY"]=90;
["EXTREME"]=30;
["MESSI"]=5;
}
local function roll(player)
local results={}
local random=math.random(1,1000)
for count=1,6,1 do
local a=0
for i,v in pairs(chances) do
a+=v
if a<=random then
table.insert(results,i)
break
end
end
end
print(results)
game:GetService("ReplicatedStorage").remotes.rollresult:FireClient(player,results)
end
game:GetService("ReplicatedStorage").remotes.roll.OnServerEvent:Connect(roll) client-local target=UDim2.new(0.3,0,0.299,0)
local info=TweenInfo.new(0.25,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false)
local function result(player,results)
print(results)
for i,effect in ipairs(results) do
local clone=script.Parent.Effectsdisplay:WaitForChild(results[i]):Clone()
clone.Parent=script.Parent.currentdisplay
local tween=game:GetService("TweenService"):Create(clone,info,{Position=target})
clone.Visible=true
clone.BackGroudTransparency=0
tween:Play()
tween.Completed:Wait()
if i~=#results then
clone:Destroy()
else
task.wait(2)
clone:Destroy()
end
end
end
game:GetService("ReplicatedStorage").remotes.rollresult.OnClientEvent:Connect(result)```
guys 3rd script result is coming nil
wdym frame data
The thing at the top that shows fps. Just go through all the f keys lol
What do you mean 3rd script
i have said
Is it meant to be .a.visible?
local info=TweenInfo.new(0.25,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false)
local function result(player,results)
print(results)
for i,effect in ipairs(results) do
local clone=script.Parent.Effectsdisplay:WaitForChild(results[i]):Clone()
clone.Parent=script.Parent.currentdisplay
local tween=game:GetService("TweenService"):Create(clone,info,{Position=target})
clone.Visible=true
clone.BackGroudTransparency=0
tween:Play()
tween.Completed:Wait()
if i~=#results then
clone:Destroy()
else
task.wait(2)
clone:Destroy()
end
end
end
game:GetService("ReplicatedStorage").remotes.rollresult.OnClientEvent:Connect(result)
```this
you might be talking about performance stats, which are in the roblox settings if you press esc while in a game
here results is nil
rate #⭐creations message
Look dm
i like
thank
Who wants to join the dev team for my avatar the last airbdnwe game
pay?
how much 🤑🤑
No
smart-enough scripter
😭
the identation...
amazing name
Who tf knows
👯♀️
treat it as a table for optimization, infact treat it as normal numbers for no indexing with is quicker
thx
uh what
take 2 params, InputVecX, InputVecY
since all you do is index InputVec.Y and X once
ahh
how would i optimise this:
local function Vec3ToVec(vec3:Vector3):vector
return vector_create(vec3.X,vec3.Y,vec3.Z)
end
local function VecToVec3(vec:vector):Vector3
return Vector3_new(vec.x,vec.y,vec.z)
end
local function GetSlopeAlignedCF(intersect: Vector3): CFrame
--local rawIntersect:vector=Vec3ToVec(intersect) --faster with roblox's vector lib
local rawForward:vector = Vec3ToVec(cam.CFrame.LookVector)
local right: vector=vector_norm(vector_cross(rawForward,rawUpUnitVec))
local forwardAdjusted: vector=vector_norm(vector_cross(rawUpUnitVec,right))
right=VecToVec3(right)
forwardAdjusted=VecToVec3(forwardAdjusted)
return CFrame.fromMatrix(intersect, right,upUnitVec,forwardAdjusted)
end
why are you using normal vectors
it's to align the char with a slope
local function Vec3ToVec(vec3:Vector3):vector
return vector_create(vec3.X,vec3.Y,vec3.Z)
end
local function VecToVec3(vec:vector):Vector3
return Vector3_new(vec.x,vec.y,vec.z)
end
local function GetSlopeAlignedCF(intersect: Vector3): CFrame
--local rawIntersect:vector=Vec3ToVec(intersect) --faster with roblox's vector lib
local rawForward:vector = Vec3ToVec(cam.CFrame.LookVector)
return CFrame.fromMatrix(intersect, VecToVec3(vector_norm(vector_cross(rawForward,rawUpUnitVec))),upUnitVec,VecToVec3(vector_norm(vector_cross(rawUpUnitVec,right))))
end
might not look the best
Your actually a life saver thank youuuuu

local function GetRotBetween(rayResultNormal: Vector3, dotProd: number): CFrame --dotProduct between upUnitVec and v (ray normal)
if (dotProd < -0.99999) then return CFrame.fromAxisAngle(upUnitVec, math.pi) end
--// raw since it's faster
local rayResultNormal=Vec3ToVec(rayResultNormal)
local uxv=vector_cross(rawUpUnitVec,rayResultNormal)
return CFrame.new(0, 0, 0, uxv.x, uxv.y, uxv.z, 1 + dotProd)
end
@dense hull
Do I really need to sanity check on the server for a multiple jump system?
It might cause some lag and for me movement is really easy to exploit for a exploiter. Can it be compensed with a anti cheat i'll implement after ?
hello? why you ping me you need smt?
Ye can I dm you
why?
To talk to you
oki
anti cheats cant stop hackers perfect you should run checks no matter what, remember ANY remote event can be accessed by the client
can i see sample code for the scripter role? Anyone got any?
i wanna see what people used to pass the scripter role verification
read the guidelines lol
just write understand the roblox api engine for complex stuff or smt
I know, that's why I wanted to implement a sort of anti cheat that can detect exploiter watching their behavior
I know that I would never stop exploiter, but atleast try to reduce the number 🙂
wtv
its not posible to dectect that good
thanks mister
If I listen you, I should do not anti cheat :/ Anti cheat are here to reduce the number of exploiter or avoid a possible bug
you should but you should also run checks
how are you doing it currently?
Idk if i should sanity check for jump, for a server of 15 persons who almost constantly jump hmm
Server will burn yknow
your doing smt like remote event jump a client could just while loop jump:fireserver()
Just sanity check on the client
???
rate limits also how much stuff are you planing to check?
For the moment i'm just doing a sanity check with debounce on client :/
that can be abused easyly
💀
But that's movement yknow
shit died.
:D i added boss in rework
Change his name
no
no
Ok
Until first report gang
wth bruh
i used to name them for like 1-2 years.
koklam is the first boss that i made before the rework is today.
dont mess with the name.
You see I have experienced getting reported for absurd reasons
koklam is a name of bloodstone golem.
I don't wann you step up on my place
Roblox moderation is pure absurd
They banned like 5 of my games for "alcoholic or drug name .."
still is the old name i named it.
I'm not joking
im not joking too even you said that.
Your on your own then
even what you are saying, isnt becuase of some abuser can quickly blame the game.
even is just a name
that hasnt existed, and it was existed who named them and is not named for alcoholic or a drug thing.
even i named my self was already mine,
don't you understand, don't just feel the same?
even i was working, don't mess with the work who did in 1-2 years of development to try making best game.
for who did trying hard work they trying to achieve, for some other got failed just blaming themselves.
is not that you wanted us to change, is just our decision.
let them do it.
if a game is so laggy and not optimized sometimes server can send event and player can't catch right
yesterday happend to me when i was trying to fix a game
dont use too much event went firing
📢 Devs Wanted for New Roblox Game – Revshare Only
🎮 Project:
A unique [horror/simulator/story] game inspired by movie Alice In Borderland.
💡 Roles Needed:
Scripter (game systems, AI)
Builder (maps, assets)
UI/UX Designer (menus, HUD)
[Other roles as needed]
💰 Payment:
Revenue Share ONLY.
All team members will earn a fair % based on their contribution once the game launches and earns Robux.
📌 What I Have So Far:
Game concept doc
Roblox group set up
Small demo or map WIP
Discord server
🧠 My Role:
[Builder / Designer / Leader / Idea Creator – explain your part]
📞 Contact Me:
Discord: 7Certi.
if you used too much event, it can slow too much game.
actually u can fire events so quick roblox is really good about that
it's about other functions that slows the game
is just functions does but even does same.
you could try something like value changed or something or if value was changes ig.
i did search and tested myself i think u can send 1 event per 0.05 seconds and roblox can handle it
u can but
i recommended not to use much events like real time events.
if the value was changes, it should fire the event.
to make a good game u need so many events sadly since hackers can manipulate everything local sided u have to make so many things server sided and only visiual local sided
💀 well i already figured out even i made crafting and upgrading system
now that can prevent exploiting
i used client and server tho
the server used by tags which i did
the guy that i was talking about had so many scripts that was lagging the game which resulted to some events not going to server/player even if they fired
wtf
lot scripts.
yeah u had to see the fps drops
cant just focus in less script????
yeah he had 17 scripts in SSS just for a obby game
should just tell him not to use lot scripts
@tardy badge hold on
Running simultaneously right
best to work efficient and optimized instead of trying to do things easy way
he did put every script he saw online about admin commands etc xd
yeah ik ik but i couldn't save that game some scripts had 1.5k lines of code 😭
💀 is just normal
but having 1 script in 10k code aint normal
like parkour.
yeah he had heartbeats in some lines
oh god.
I was devving a very popular game of big group and they had around 60 server scripts in SSS only, I'm silent about RS and workspace, and game had around 80 errors a second, memory leak at maximum (4gb+) and constant failures & game freezes
Yet game held 600 CCU
atleast he had 10+ playeradded calls 😭
😭 why so many playeradded calls?
is it seperated?
yes
For an obby game btw
yeah optimization is the key for games
Even my as i thought large project wasn't that fucked up
like people thinking they can do a game using only AI and u guys can see the results
bro i am trying to build an system to detect if an conveyor is touching another conveyor becouse how should i do it
😭 bruh AI
like an part or something
I'll make a competitive game where players will get specific tools based on their class
For security purposes ill write a checking module to each tool, as an example when player equips a tool i'll let the server know they equip it or shoot it
is it a good approach to replicate all tools from the server
well touched event can also detect other parts and u can check by that way
can i see the code?
user
local CollectionService = game:GetService("CollectionService")
local folder = workspace.TowerPlacedInServer
local NatureFolder = workspace.NatureItems
local product = game.ReplicatedStorage.RandomCloning:FindFirstChild("Logs")
-- Get all parts of a model
local function getModelParts(model)
local parts = {}
for _, part in ipairs(model:GetDescendants()) do
if part:IsA("BasePart") then
if part.Name == "Con" then
table.insert(parts, part)
print(part)
end
end
end
return parts
end
-- Check if any part is touching a Conveyor (NOT from the same model)
local function isTouchingConveyor(model)
local modelParts = getModelParts(model)
for _, part in ipairs(modelParts) do
local touchingParts = part:GetTouchingParts()
for _, touchedPart in ipairs(touchingParts) do
if touchedPart:IsDescendantOf(model) then
continue -- Skip parts from the same model
end
if CollectionService:HasTag(touchedPart, "Conveyor") then
print("Connected to conveyor!")
return true
end
end
end
return false
end
folder.ChildAdded:Connect(towerplaced) i tried it when i was high so i don't even know what i did
-- What happens when a tower is placed
function towerplaced(object)
print("New object added:", object.Name)
if object.Name == "woodchopper" then
local circle = object:FindFirstChild("circle")
if circle then circle:Destroy() end
end
local logspawner = object:FindFirstChild("logspawner")
if not logspawner then return end
for _, tree in pairs(NatureFolder:GetChildren()) do
if tree.Name == "tree" then
local stam = tree:FindFirstChild("stam")
local wood = tree:FindFirstChild("wood")
if not stam or not wood then continue end
local distance = (object:WaitForChild("PrimaryPart").Position - stam.Position).Magnitude
while true do
task.wait(0.1)
local function isTouchingConveyor(model)
local modelParts = getModelParts(model)
for _, part in ipairs(modelParts) do
local touchingParts = part:GetTouchingParts()
print(touchingParts)
for _, touchedPart in ipairs(touchingParts) do
-- Ignore if it's part of the same model
if touchedPart:IsDescendantOf(model) then
continue
end
-- Get the model the part belongs to
local conveyorModel = touchedPart:FindFirstAncestorWhichIsA("Model")
if conveyorModel and CollectionService:HasTag(conveyorModel, "Conveyor") then
print("Connected to conveyor model!")
return true
end
end
end
return false
end
end
end
end
end
folder.ChildAdded:Connect(towerplaced)
dawg what did he do?
is a name not something inappriopriate
does anyone know why like when i open a ui and close it then die then try to open it up again it doesnt work?
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local button = script.Parent
-- Adjust this path based on your actual GUI hierarchy
local popup = button.Parent.Parent.Parent:WaitForChild("ShopGui"):WaitForChild("Frame")
local tweenInfo = TweenInfo.new(
0.5, -- seconds
Enum.EasingStyle.Quad,
Enum.EasingDirection.Out
)
local openPosition = UDim2.new(0.258, 0, 0.23, 0)
local closedPosition = UDim2.new(0.257, 0, 2, 0)
popup.Position = closedPosition
popup.Visible = false
local isOpen = false
-- Function to open
local function openPopup()
isOpen = true
popup.Visible = true
local tween = TweenService:Create(popup, tweenInfo, {Position = openPosition})
tween:Play()
end
-- Function to close
local function closePopup()
isOpen = false
local tween = TweenService:Create(popup, tweenInfo, {Position = closedPosition})
tween:Play()
tween.Completed:Wait()
popup.Visible = false
end
-- Handle button click
button.MouseButton1Click:Connect(function()
if isOpen then
closePopup()
else
openPopup()
end
end)
-- Reset GUI state after death/respawn
player.CharacterAdded:Connect(function()
isOpen = false
if popup then
popup.Visible = false
popup.Position = closedPosition
end
end)```
yeah checking server sided is a good way to approach for hacks
i would make a table that contains all the tools and also check if that tool even exist in game for so it doesn't break
he just tryna force me to rename it...
no
is 6 months and nothing happend as u said
wait ik the problem
wait since when can you check if an character died in a local script
lemme see the name of it
idk
chat gpt did it
for me
when mine didnt work
broo you know that it is very hard to make an working script with chatgpt
wdym
ive done a lot most of them works
ohh
any1 know where i can find a free shop ui so i can work with them
oh when i tried it it mostly doesn't work becouse i am very shutty at prompt generating
haha i had it uncheck and when i checked it now it works
or do i js make a bad 1 myself
thakn you man!
np 😅
make it
making a shop UI is not that hard if u got PS 2024
ui not really hard tho bro 😭
fair enough i mean if you understand a bit of coding then u can go check it a bit and play around with the codew
yeah no one expects a masterpiece from u
make a basic one and make the products looking good
for 75$ can i get a combat system like that?
-
client replicated effects
-
a clean framework
-
fast input response (i can add in a buffering system if you'd like)
-
profile service saving stats that certain weapon types scale off of
-
the combat system will have 5 m1s,block,perfect blockC
the block will have endurance so you cant block undefinitely
when block broken you will get stunned
when perfect blocked you'll get stunned -
every type of weapon has its own idle,run(walk),sprint and m1s
there will be knockback too after the last m1
and its distance is gonna depend on the weight of the weapon
air combos will be needed too
smooth and everything
overpaid, add raycast hitbox and some good hitbox stuff
all that for 50$
btw combat not really hard tho
wym
how long do you think smt like that would take you?
maybe 1-3 hours
i mean i dont wanna do it but ig ill do it
because i did it too much
ayo
oh
doing everything yourself is best hehee
yeah i try to make models,scripts,UI myself
lemme dm you
No
What
No but it's time consuming
do you think combat system takes 1 day 💀
You obviously just have tons of time
Blud has never implemented rollback netcode
combat system ain't that hard 💀
actually
it depends if you put more work into it
💀
oh...
instead of a basic one.
what are u tryna to get ;-;?
For me it would 😭
epic morph thing i made
quote of the day.
do yall think survival games can get up the charts?
cause booga booga used to be popular, still maintains 3k+ active players.
damn i love skateboard , show some trick
skateboard is w
can i see the movement then
ye same i want to see it
here
Acting like that's hard
euphoria ragdoll
frr
you dont know
Yes I do?
now why are we fighting.
it takes 1 day btw.
PS_LOL did it.
yes
this is cool
it can take more if its gonna be like a really tsb type comvat syste
or summmm
keep goin
i was gonna make it based from skate 2/skate 3 movement
Someone thinks they're hard
Ohh, did you use IK for the leg?
possible if can but
yep
well if its hard for someone then they cant change that bruh. people work differantly
😮 what about the slope?
ooo niceeee
bloodstone golem
a devastating truth nuke is that 90% of combat systems are bad
ur game?
ye
niceeee
problem is...
Other way round, I said a system takes a while and he said I couldn't do basic coding
reworking whole rpg game
well then hes in the wrong because why did he say that u cant do basic coding
😭 100+ accessories 30+ more materials and 100+ weapons
loll
yk what how much is gonna take lot?
ima make the flip tricks system right now rah
whos a scripter and wants to help with my incremental game? i alr have server for it and the game is done just wantr someone to script updates and manage it with me 50/50 cut
i have no game idea, besides making a survival.
@iron prawn takes about 1-2 months possibly becuase every update i was doing in old rpg game.
i was gonna follow the order where i start.
dang
rah
suureee?
kick player.
💀
i am gonna have to use cframevalue since tween
oh shit bruh
😭
i renamed it bruh 😭
meow
i forgot something...
"Value" on Tween
ay it works :D
i forgor to add linear rah
it finally works :D
it looks good now
Make him fall
gorgeous
LMAO
frr
I would invest fr
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
-- Replace this with your actual DevProductId
local TELEPORT_DEV_PRODUCT_ID = 3294515567
-- Table to store last death positions
local lastDeathPositions = {}
-- Listen for player deaths and store their last position
local function trackDeaths(player)
player.CharacterAdded:Connect(function(character)
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid.Died:Connect(function()
-- Store the position where the player died
lastDeathPositions[player.UserId] = character:GetPivot()
end)
end
end)
end
Players.PlayerAdded:Connect(function(player)
trackDeaths(player)
end)
for _, player in Players:GetPlayers() do
trackDeaths(player)
end
-- ProcessReceipt handler for DevProduct purchases
local function processReceipt(receiptInfo)
if receiptInfo.ProductId == TELEPORT_DEV_PRODUCT_ID then
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if player then
local deathCFrame = lastDeathPositions[player.UserId]
if deathCFrame then
if player.Character then
player.Character:PivotTo(deathCFrame)
end
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
-- For other products, let other scripts handle
return Enum.ProductPurchaseDecision.NotProcessedYet
end
-- Attach to MarketplaceService
local MarketplaceService = game:GetService("MarketplaceService")
MarketplaceService.ProcessReceipt = processReceipt
why does this script not send me to my position where i died when i purchase the dev product
if your generating code with gpt you should delete the comments so people dont laugh at you
and format it please
also go to code help
dm if u script and know what a button inc is and wnana make one i do scripting and gui too
Replace the GPT “TELEPORT_DEV_PRODUCTID =38473939” with your actual id
And maybe read the code that you generate using ai to actually learn the material and language lol
Lmao
subnautaical time
making a job application game
CENSOR THAT OR SOMETHING BRUH

To add salt in the wound, the ai tool did not catch that you are using two different local names for your product id
my code style kinda looks like chat gpt for some reason
Could someone mentor me in uh scripting
nah mentorship isn't going to work bc you finna depend on someone all the time go to studios and youtube and start making random sht
Watch his series
ikr
best series
i have beem watching for 4 days now
I thought you might say that
But he talks to me like I'm a baby
Because he’s making you understand it in the most low iq way possible
That’s why he is the best to learn from
oh then if you wanna learn watch code coach
or watch The unknown dev
am i the only one that create stupid services for no reason ( profile isn't mine )
how can I get or make like this admin panel thing is it plug-in or built-in roblox ?
wdym
Cmdr
Cmdr Website Cmdr is a fully extensible and type safe command console for Roblox developers. Great for admin commands, but does much more. Make commands that tie in specifically with your game systems. Intelligent autocompletion and instant validation. Run commands programmatically on behalf of the local user. Bind commands to user input. Se...
tysm
someone has script to showcase animation and cutscenes in game? ill pay
Is is possible to do lyrics on screen like this?
BLIND CHANNEL releases their new music video for the song ’Died Enough For You’. The band is predicted to be one of the hottest modern rock / metal bands of the decade with their new sound influenced by Bring Me The Horizon , I Prevail , Asking Alexandria & Many more. BLIND CHANNEL has been touring Europe with names like Hollywood Undead , A...
It's for a concert game
And I'm trying to figure out if I can add a GUI button where if you press it, it triggers the script and shows the lyrics on screen
any cscripter here likes making incremental games and want to partner with me? i can fund most projects
you should be more specific because theres a trillion ways to do this depending on your sitaution. Assuming the player is the one who is doing the concert, you could probably intercept waht they say in chat and send it to server and back to all other clients
I want to be something everyone can see at the same time, when the person in the control room presses a button
The Grand Final of Evovision Song Contest 12, hosted in Tórshavn, Faroe Islands!Streamed live on zyetv on April 11.Thanks for watching and I hope you enjoyed...
Like in here for example
You can see the on-screen animations for the country name and artist name
the method i mentioned works for that
Does anyone know a video that has recommended plugins for coding or just useful in general for Roblox studio
Derfor get stuff like Archimedes and more just search up 10 plugins you need on Roblox Studio
Okay thanks
No worries!
someone has script to showcase animation and cutscenes in game? ill pay
wdym, any ref
uh uh u click e cutscene anim plays and player anim too

