#code-discussion
1 messages · Page 263 of 1
Those who use next for iteration….
only real reason to use it would be if you thought it made the code seem more readable to differentiate between tables with known keys
aka in most cases translate it to people who only use lua
i havent used next once in all my years
not really
It’s goated I use it for all my loops
i could see the being pretty decent for readability, especially since alot of table manipulation gets kinda messy
fix plz
👍
Hello.
Are there any scripters here?
0.1:1 that shit looks ass 😭
why not just click play, kick yourself, go into the explorer -> CoreGui -> KickScreen
copy that and paste it into StarterGui
anyone down to fully recreate roblox chat but without the age block and filters
against roblox tos lol
most definitely against tos
even pre chat restrictions
just for like 18+ experiences then
have you played roblox bedwars before? asking out of curiosity
idk
used vape?
that wouldnt even make sense
idk man
still against tos + no age restrictions there
it’s a small world
just wanna remake it fuck roblox atp 🥀
you dont understand any of the context, the errorprompt is not scaled alone across devices, and the point was to showcase tha api that generates it. read the room
omg someone knows what my username is based off
i was a private member
never bought it 😭
it wasn’t paid lmao
no 😭
u wanna do a collab project
hell no 😭
why nottt
got a lot of stuff i’m working on dude
oof
Anyone wanna help me script game I’m making
i made emote wheel look
i made one a few months ago but it was bad both visually and in terms of code and this new one is better
buffer module with resizable buffers 🥴 i don't mind if anyone wants to use it as its nothing more than a utility
export type struct_field = "u8" | "u16" | "u32" | "i8" | "i16" | "i32" | "f32" | "f64" | "string"
local size: {[struct_field?]: number} = {
u8 = 1,
u16 = 2,
u32 = 4,
i8 = 1,
i16 = 2,
i32 = 4,
f32 = 4,
f64 = 8
}
local struct = {}
struct.__index = struct
export type struct = setmetatable<{
_b: buffer,
_f: {struct_field},
_o: {number}
}, typeof(struct)>
function struct.len(self: struct)
return buffer.len(self._b)
end
function struct.expand(self: struct, positive_field: {struct_field})
local additional_size = 0
for i,v in positive_field do
table.insert(self._f, v)
additional_size += size[v]
end
local new_len = buffer.len(self._b) + additional_size
local new_buffer = buffer.create(new_len)
buffer.copy(new_buffer, 0, self._b, 0)
self._b = new_buffer
end
function struct.shrink(self: struct, negative_field: {struct_field})
local subtract_size = 0
local field_size = 0
local new_field: {struct_field} = {}
for i,v in negative_field do
subtract_size += size[v]
end
local new_len = buffer.len(self._b) - subtract_size
local new_buffer = buffer.create(new_len)
buffer.copy(new_buffer, 0, self._b, 0, new_len)
for i,v in self._f do
if field_size + size[v] > new_len then
break
end
table.insert(new_field, v)
field_size += size[v]
end
self._f = new_field
self._b = new_buffer
end
function struct.read(self: struct, index: number)
local current_field = self._f[index]
local current_offset = self._o[index]
local len
if current_field == "string" then
len = buffer.readu8(self._b, self._o[index-1])
end
return buffer["read"..current_field](self._b, current_offset, len)
end
function struct.write(self: struct, index: number, value: any)
local current_field = self._f[index]
local current_offset = self._o[index]
local len
if current_field == "string" then
len = buffer.readu8(self._b, self._o[index-1])
end
buffer["write"..current_field](self._b, current_offset, value, len)
end
function struct.buffer(self: struct)
return self._b
end
return function(args: {struct_field})
local buff_size = 0
for i,v in args do
if v == "string" then
buff_size += size[args[i-1]]
else
buff_size += size[v]
end
end
return function(data: {any}): struct
local buff = buffer.create(buff_size)
local o = {}
local offset = 0
for i,v in data do
local len = i >= 2 and args[i-1] or nil
buffer["write"..args[i]](buff,offset,v,len)
table.insert(o, offset)
offset += size[args[i]]
end
return setmetatable({
_b = buff,
_o = o,
_f = args
}, struct)
end
end
nvm don't use it 😭 i forgot to account for something in the expand and shrink function
unless you wanna fork it and fix it urself that is. i dont mind if you do that
lowkirkenuenly tuf
thank you ❤️
honest question, why is buffering data better than using spmething like string.pack?
i dont know the exact measurements but i know strings in luau take up more space in memory than buffers
hm okay
both that and they are easier to read from and write to
so you can store all types of data easily
im still learning about it myself; can you put other data types like tables and numbers in a buffer aswell?
only numbers and strings
if you have like a custom character or a custom physics object that you wanna replicate to other clients, buffers are the way to go
they are just raw bytes of memory so they will travel across the client and server lightning fast
ok i see
thanks so much for actually helping me understand and not just redirecting me to google or calling me a larp
this is what i fucking hate about this server. people can be so annoying for no reason
i know. like gosh forbid im not on the same level as you
@slow hull @vernal lynx
Let’s make a tower defense game
@slow hull I see your YouTube videos
I’m an builder gag not an scripter
Keep up the dev vlog
But I can build like low poly stuff
is BridgeNet2 recommended nowadays? like should people still be using it
I can help out with maps
U can’t
Ok
Your style don’t quite match
Ahh ok
@slow hull
who said i was gonna accept
I DO NOT know you
Gng ik
you do NOT have my consent
i just hearted your video bro i dont wanna work on a whole other project
i have other projects to deal with
projects that arent brainrot related
i said im working on my projects and they arent brainrot related
Wait is that Master Wu
Okay man
this guy 🥀
inconsistent or new
me changing readme.md 10 times a month to make it look like I'm doing something
how do i create a round system
wait for players
load the map
spawn players and set up some logic to get them out of the round when they die or something
wait till one of the players reaches a winning condition
end the round (teleport players outside, destroy map, save scores, give rewards)
repeat
repeat as in an actual while true do end
if anyone wants a free scripter for their game just dm me
wait for players
load the map
spawn players and set up some logic to get them out of the round when they die or something
wait till one of the players reaches a winning condition
end the round (teleport players outside, destroy map, save scores, give rewards)
repeat
Make state manager and then link it with a map manager to yk load n unload maps, thena simple player manager that spawns players in map, and can also decide which players can join the round and so
With state manager u can lowk add a map selection
Or diff thing u want
Ig
Hi guys
anyone want me to help with something
I have something I would like to sell copies of if anyone want to know more, dm me
try being more vague
are you asking what vague means?
yeah no one is messaging you
Ik it means something like dry
lol what
dang-
wild, you need to read more
true
at least give more info
I will n dms
"hey guys, i have something to tell u about something, dm if u want to know what it is"
LMAO
that pfp so fire
thanks twin he’s my favorite Shia
anyone interested now?
there are max 20 ppl that are gonna read that
take a video of it it post it in #⭐creations
dont mention that you're selling it tho, it will get taken down
pretty unlikely someone will reach out tho
just: dm me for more about it?
?
if anyone wants a free scripter for their game just dm me
si
is there a way to quickly disable all other scripts instead of having to select each one and did it one by one?
why u do for free
Explorer and search up
Classname: script
Then select all and disable in properties
thanks bro
Who wants to work on a game TOGETHER
2015 account
anyone wanna remake roblox chat w me
Banned speedrun
fr
me
Isnt that against roblox TOS?
hachimi hachimi hachimi
hey guys
hachimi
its against TOS if you don't follow the guidelines around it, namely filtering and age group verification
Yea that was what i meant
though that person is trying to remove the chat filter and age group restrictions
if you attempt to make a Chat that can bypass The Age groups isnt that against TOS?
yup
Ah got it 👍
yo guys how do u even build up a portfolio when u dont have one and no games wants to hire you
Make ur own stuff
start by making projects and systems for yourself to add to it, then use that to find jobs
Novinity a little random but im selling a game for a new project im working on what does fully working games sell for atm?
i mean look at my portfolio lol
i'm not sure, i haven't looked into it before
ah no worries
9 years unity? Did u make more money off Unity games or roblox games
roblox so far
but i havent really released anything monetized with unity
i intend to but making games is hard 😔
Wow your an experienced scripter
do you make good from the Minecraft Thumbnails?
Is roblox easier to use than Unity? And is it better?
eh not really honestly, dont get many commissions for them
easier? yes
better? that depends
if you want a platform that's easier to reach a large number of players, roblox is where you want to be
unity is significantly more capable and less strict on what you're allowed to do though, since you're distributing to any store you want, so if roblox feels too limiting for you then unity (or another game engine of choice) is probably the better option
Roblox is unity for kids
does anybody know how to exclude instances from packages lol
hi
guys im trying to make a raycasting gun and it's nothing but just one straight raycast from the head towards the camera's lookvector but the problem is it's delayed like crazy. How would you fix this except making player's hitbox bigger, or is making the hitbox bigger actually works well? I wonder how does other FPS games fix this
i don't think that's a hitbox issue, raycasts are instant. could you show the code?
I raycast on serverside, so i already came to conclusion that i will raycast from client and if client thinks that it's a hit it will send info about the shot to the server and server will validate it. Gotta keep in mind that i can't trust the info that client gives tho.
i already do that it's delayed asf
rays from that in a straight line unless u directed it
should be instant
it becomes really noticeable with moving targets or moving shooter
client:
local UIS = game:GetService("UserInputService")
local ReplicatedStor = game:GetService("ReplicatedStorage")
local plr = game:GetService("Players").LocalPlayer
local cam = workspace.CurrentCamera
UIS.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.UserInputType == Enum.UserInputType.MouseButton1 then
ReplicatedStor.ShootEvent:FireServer(cam.CFrame.LookVector)
end
end)
server:
local ReplicatedStor = game:GetService("ReplicatedStorage")
local RunServ = game:GetService("RunService")
local Players = game:GetService("Players")
ReplicatedStor.ShootEvent.OnServerEvent:Connect(function(plr, lookDir)
local char = plr.Character
local hum : Humanoid = char:FindFirstChildWhichIsA("Humanoid")
if hum.Health <= 0 then return end
local head : BasePart = char:FindFirstChild("Head")
if not head then
warn("didn't found ",plr.Name,"'s head")
return
end
local rcOrigin = head.Position
local rcDir = lookDir * 10000
local rcParams = RaycastParams.new()
rcParams.FilterDescendantsInstances = {char}
local raycast = workspace:Raycast(rcOrigin, rcDir, rcParams)
if raycast then
print(raycast.Instance)
end
end)
i also tried raycasting from client and most of the shots on moving target clent says that it's a hit but server says it's not
hm
Dm me if you can teach me how to use blender and make avatar related stuff, I will pay through crypto/paypal/robux
who can help me beat my wife
Cpp >> Luau, kids can learn cpp or luau
guys whats wrong with my code?
Yo gng There’s a problem with the removeSkis() function you have to declare it before and some small errors to make it more easy and confortable to use
❌
Can't even larp these days
Without frostfall's personal army pulls up
POCHINKA BANNER W W W
is vuuk academy worth it?
no
nah
aight
???
He has an academy 💀
What
ig, @scenic cove a better way to actually script is to learn using OSS stuff
Stop making wrappers, custom modules when oss exists, people there have spent 10+ years with Luau, C, working at companies, projects etc.
And it's a 99% chance their module is better than urs
Just use api and script ur game
If ur not making a game, why else are u learning luau 😭
son what
those are bloat
🤣
mfw this guy glazing oss
Blink, Zap, Chrono (unless npc and for some reason it's breaking anims)
son im crine
I'm not, it's filled with larpers, I'm saying he needs to use existing libraries than wasting time on wrappers
ur not wasting time son
But oss actually a good server imo
invite me
Okay brotato, frostfall's right hand
wut is this blud saying 🤣
Is looking through open source modules a good place to start learning some essential practices in coding?
no
Cause I feel like I always keep practicing terrible coding habits that might make working with actual proper programmers hard
you can fix anims breaking by setting the primarypart to the hrp
iirc
if it is set to head
such a larp
Yes and no
contradiction
The lot of Roblox programmers are unprofessional. They can deliver functionally relevant APIs, but their implementations can be lacklustre
true my code be lacking some lustre lately
Can you give examples?
lucifer johnny michaelson
cool name
so whos the father
fuck is that ai generated shit
Like using Query Descendants twice for two types then inserting them into two tables when I could just use Get descendants to just run through it once and separate it into the two tables during the run.
guys can someone tell me their story abt how you learned scripting. even small story would be enough. i want to listen to others and decide what should i do. please and thank you
quit
i think i just got born with that knowledge
who lied to bro
WE yes WE were all born with roblox documentation uploaded straight into our brains
on soebs soul we were
On everyone but mine*
Pings
Try anchoring your script
Might help
Does anyone have any other ideas on how to optimize this code?
--!strict
--!native
local ws = game:GetService("Workspace")
local run = game:GetService("RunService")
local plrs = game:GetService("Players")
local p: BasePart = script.Parent :: BasePart
local active: boolean = false
local cf: CFrame = p.CFrame
local pos: Vector3 = p.Position
local CFG_RAD: number = 15
local CFG_DMG: number = 100
local CFG_TIME: number = 2.5
local CFG_SHRAPNEL: number = 8
local CFG_DEBRIS_TIME: number = 3
local ovp: OverlapParams = OverlapParams.new()
ovp.FilterType = Enum.RaycastFilterType.Exclude
ovp.FilterDescendantsInstances = {p}
local function spawnShrapnel(center: Vector3): ()
local pieces: {BasePart} = table.create(CFG_SHRAPNEL)
local rnd = math.random
for i = 1, CFG_SHRAPNEL do
local part = Instance.new("Part")
part.Size = Vector3.new(1, 1, 1)
part.Position = center + Vector3.new(rnd() * 2 - 1, rnd() * 2 - 1, rnd() * 2 - 1)
part.Color = Color3.new(0.2, 0.2, 0.2)
part.Material = Enum.Material.CorrodedMetal
part.CanCollide = true
part.Anchored = false
part.AssemblyLinearVelocity = Vector3.new((rnd() - 0.5) * 100, (rnd() + 0.5) * 80, (rnd() - 0.5) * 100)
part.Parent = ws
pieces[i] = part
end
task.delay(CFG_DEBRIS_TIME, function()
for i = 1, #pieces do
pieces[i]:Destroy()
end
end)
end
local function detonate(): ()
local exp = Instance.new("Explosion")
exp.Position = p.Position
exp.BlastPressure = 0
exp.BlastRadius = 0
exp.DestroyJointRadiusPercent = 0
exp.Parent = ws
local hits = ws:GetPartBoundsInRadius(p.Position, CFG_RAD, ovp)
local checked = {}
for i = 1, #hits do
local hit = hits[i]
local hum = hit.Parent:FindFirstChild("Humanoid") :: Humanoid
if hum and hum.Health > 0 then
local root = hit.Parent:FindFirstChild("HumanoidRootPart") :: BasePart
if root and not checked[hum] then
checked[hum] = true
hum:TakeDamage(CFG_DMG)
end
end
end
spawnShrapnel(p.Position)
p:Destroy()
end
local function loop(): ()
local start = os.clock()
local c_base = p.Color
local c_end = Color3.new(1, 0, 0)
while true do
local now = os.clock()
local el = now - start
local alpha = math.clamp(el / CFG_TIME, 0, 1)
p.Color = c_base:Lerp(c_end, alpha)
if alpha >= 1 then
break
end
task.wait()
end
detonate()
end
local function onTouch(hit: BasePart): ()
if active then return end
local hum = hit.Parent:FindFirstChild("Humanoid")
if not hum then return end
if (hit.Position - pos).Magnitude > 8 then return end
active = true
task.spawn(loop)
end
p.Touched:Connect(onTouch)
Holy cow
?
ur using touched
Ur built different
I'm new to coding. :_
if i wanna replicate gui like a loadingscreen do i putin replicatedStorage or still in starterGUI
im banning you from chrono
Hi
🤫 thats supposed to be a secret you shouldn't say that out loud
Ur not pari
Son
ohok
Paris
Pari and hao a thing?
hello, I made my own working car and i want to add a honking system to it, there isnt any tutorial on youtube. does anyone know how to do this or know a tutorial??
interesting
can make a car but cant get client interaction to make honk
I mean I used a tutorial for a car
I did t really make it yeah
But you get the point
Like keybind is H
rsc so ahhhhh
use uis
i saw that
Me too
google Roblox UserInputService
Alr
I want a tutorial vid or something (i’d rather have that for now then learn allot for 1 thingy)
another brainrot
its never too late to get a job
alr bro hag1
watch brawldev
anyone know if a 3 dimensional frequency table be used to hold more complex data sets?
Does he have tuts for making a honking system😭
guys my ae doesnt detect rspys and idk why
say it in simple terms
@guy speak up!
💔💔💔
Brawl dev outa all 💔
who is better
Book.
A BOOK.
Or forums.
No way ur telling me u didn't learn python at school
If uk python, uk 90% of luau and any high level lang
? do you think everyone learns python at school
I learnt luau at school
Even if they don't, luau is as easy as english
Y'all complicating it like it's some low level lang like embed
Or smth
english isn’t an easy language to learn
Not to learn, but a majority of people know it
that doesn’t make it easy
Or know the keywords luau uses
can you speak any type of chinese
do
print("hi")
end
lots of people know it
A majority of people know Hindi according to ur logic, but wrong, majority know english
Yeah but that's a subset of english
?
the majority of people do not speak english
Like, most people who speak Chinese, also know a bit of English, but most english speakers don't know chinese
They do understand the basic terms of English, compared to other languages
Like "ok"
"yes"
"then"
"do"
"no"
somehow that means everyone should know how to script
They should
They are just lazy
wheres your 1000 ccu game at
It all starts with a simple problem and a solution to it
1000 ccu is an insult to me 💔
any other copes
nah
R u one of frostfall's army
Or smth
U kinda give off the vibes of not knowing luau
the vibes of thinking print(a+0) is slower than print(a)
no idea what that is
did i hurt your feelings
if so, sorry
?
omg is it you advaya619
use roblox docs and luau website
watch tutorials if you dont know any other language
Like I'm beginner level
I used to take classes b4
I was making real games yk those blocks scripts
scratch
Yea
i dont think scratch is really that efficient
Any similarities?
just learn actual code
Alr cuz I needa code since I got no money to hire
learn expressions vs statements, memory, variables, functions, arrays, loops, logic (if statements)
actually ignore the memory part its not really that important for roblox scripting
the knowledge of those things can be applied to all programming languages tho
if u know those things u can learn any language
why would you give him an entire list like that
he probably doesnt know what half of it means
just tell him to start with a youtube tutorial
and i did
and these are like the basics
of every language
honestly i dont use google that much
the devforum is like
the luau google
but better
or just use the docs
I wanna switch to profile service but if it works it works do Ym agree
So there’s no point
"if it works it works"
function IsHi(String)
if String == "Hi" then
return true
elseif String == "hi" then
return true
elseif String == "hI" then
return true
elseif String == "HI" then
return true
else
return false
end
end
print(IsHi("hi")) -- It works!
Interesting which is which
if anyone wants a free scripter for their game just dm me
It’s over…
💔
local age= 18
if age > 18 then
too old
elseif age < 18 then
perfect age
end
you should change age > 18 to age >= 18 so it includes 18 yr olds
I thought it should’ve been age <= 18
I swear this server has no good scripters bro
Truthnuke
Go to OSS
whats that
Don’t expect them to be hirable tho
they the guys who make ur packages
Like knit, signal, etc…
A lot of them there
But they all do CS stuff outside of Roblox
anyone wanna help me make a one piece game?
How much estimated visits will I get for two day 25 ad credits each? (My game is a donation game if that affects anything)
I got 2900 visits for 11 ad credits, at that rate it would be around 13000 visits for 50 ad credits but it very much depends on your thumbnail, title and the type of game. I don't know how well donation games do, the game I advertised was a minigames game
bro was your thumbnail good cus i feel all the bad thumbnails do good and all the good ones do bad so idk what to do
ohh and then the for loop came by and changed the variable
I sent it in #dev-discussion
You said that already 😢
I got banned from there lol
use profile store instead hemmy
Define a generic type
how wtf
profileservice is mid
They have very strict moderation and a bunch of minimods
true but all u gotta do is just not act like a deepwoken player and ur fine
I got banned for reacting 🫃 to a message
thats kinda cringe tho
It’s just a habit yknow
When I see something stupid that’s what I react
What does that even mean bro
I don’t play deepwoken
well surely you've heard of the community right
I’ve seen funny videos of deeepwoken ban appeals but that’s it
They can get pretty bad tho ig
whats wrong with deepwoken 🥺
idk they like ur type soul players
just how they act honestly
maybe I should just say gamer
instead of deepwoken player
Gamer?
just dont be a gamer and ur fine
What an insane generalization
yea u know league of legends emerald player
Anyone who plays a game is bad now?
is that ringing a bell yet?
stop larping
how am i larping
That’s more like an insane sweat
yea but they are also goblins too yknow
Gamer is so broad
ok wait
Ig
what about locked in gamer
u think OSS is allat
and u think people who play games are gona get banned
it kinda is though they cracked bro i've met people there and seen the stuff they work on
whos cracked
You’ve never locked in for a ranked match before?
big ol quenty
quenty 💔
like literally all famous game scripters talk there
I have an alt for Ross tho so I’m chilling
u don't read enough messages in oss to understand the skidding that goes on there
theres boss spax works for fisch grow a garden steal a brainrot
crazyblox, flood escape 2 owner
who does 😭
tampered reality, the zo creator
many people.
Unemployed behavior
no i mean who READS the messages
me.
i could keep going but like theres also sleitnick
Who sits down just to read Ross messages
me.
idk it kinda deserves galze
Lock in bruh
i need to keep up with the ross meta
Not with its moderation
like fs+
yea but u wanna keep the goblins out
Ik someone that got banned for saying piss
crazyblox starred my repo
ye hes goat, but like all famous people r there just dont act dumb and ur fine
The moderation is so bad and it’s completely based off your reputation in the server
what is a repo
It would be so much better with decent moderation
why dont u just appeal
if ur that concerned abt it
repository
I gotta wait 30 days but I have an alt anyways
whats that
I’m not that concerned I’m just stating the facts that Ross has bad moderation
its not bad its just anti goblin
Nah it’s bad
it has the best moderation out of any public discord for roblox dev
hiddendevs moderation is non existent
and look at this server
Holy glaze bruh
They should at least do warns
They never warn
The closest thing they have is a minimod telling you not to do something
But even then they just report to mods immediately most of the time
Lowkey I would rather be a LoL player than a Ross mod
🥺
they do
but if ur entire history has been just trolling then ur cooked
My entire history wasn’t trolling
let me review your history
My theory is that they thought 🫃 was transphobic
Cause they’re pretty strict about that typa stuff
yea but being a bigot pretty bad
like really bad
I’m not a bigot tho
Did you review my history
yes
You didn’t see anything right
yeah
I gotta wait 30 days
I have an alt tho so I’m chilling
Only reason I need Ross is to talk to Marcus
Who is also the guy who banned me
redwolf are u a pro oss goat
no
😢
why is it goated
Cause it prevents most if not all hacks
no it doesn't
It does
nope
It adds an extra layer of security without hindering smoothness
Which is why most fps games use it
it hinders smoothness
If I were making a fighting game I might not use it tho cause that could get pretty complex
Not if you do it correctly
roblox's system currently hinders smoothness
and also cost massive perf loss
when u have more players
I’ll just limit server size then
you can do that
I might even switch to pure mouse deltas
you can do that
So it’s worth it then
does it stop aimbot
"most if not all hacks"
it stops a minority of exploits
that you can mostly mitigate with server side checks
Doesn’t rivals use server auth
That’s one of its only weaknesses
when they talk about server auth in fps games theyre talking about server auth projectiles
No rivals and cs2 are fully server auth
Movement and everything
Also you can probably prevent aimbot with some player sens checks
Like if a player hits 2 shots when the opponents are in opposite directions
Within a certain amount of time
Since this is technically possible you can just not register the hit
no you can't
this is just wrong
Btw not rivals I meant valorant
its client sided prediction + reconciliation which does not prevent most if not all exploits
thats just impossible
Name one
Besides aimbot
depends on the game
and how stuff is implemented
for example you can exploit the networking of a game, or their method of lag compensation
or stuff like auto parry
there are a lot of things you can do outside of just teleporting
XD
ESP
That’s basically the rpg equivalent of aimbot so that doesn’t count
ok what about esp
That’s like a subcategory of aimbot
what about anti recoil
Aimbot is just a better version of esp
Also a sub category
you can't just say everything is a sub category
the stuff server auth movement prevents is a sub category
ok?
I mean they kind of are
its just movement
Aim hacks are literally impossible to fix without kernel anti cheat like riot games so it’s not really a fair argument
Server auth makes it like 10x easier and more efficient to prevent stuff like no clipping etc
you can fix esp & auto parry
maybe 1.5x easier
How would you fix esp? Just hiding characters not in sight?
name 1 thing that server auth movement fixes outside of no clipping
Teleporting, speeding,
those are sub categories of no clipping
Stuff of that nature
so doesn't count
Speeding could be a sub category of teleporting of they have nothing to do with clipping
what about kill aura
what about auto bridging
What’s that
those are different categories
Gng that’s Minecraft 😭
automatically detects nearby enemies and aims for u to auto attack them depending on some config u choose
its not a fps game thing
Thats definitely a subcategory of aimbot
Player reports can prevent all these things anyways
aim bot is just for aiming but kill aura auto selects ur weapons and does skills for u
player reports can prevent all the stuff server auth movement prevented
as well
Yes but they’re less reliable
It’s like a hierarchy
Of exploit prevention
its pretty blatant if someone is gonna be flying/teleporting/no clipping
and thats stuff that can easily be checked as well from the server
Sometimes it can get a little weird
unlike things like autoparry/esp/kill aura which u have to write dedicated preventions for
if people are like closet cheating
Like what if your game has an ability that allows for teleportation
for example for auto parry we use invisible enemies that are indisguinshable from players that attacks u every once a while
blud..
this is a non issue
Do they deal damage
But it makes it a bit harder
With served with it doesn’t
maybe 0.01% harder
Server auth you can literally ignore anti cheat for movement
why would it do damage
it doesn't prevent most if not all hacks
Is it like an npc or are they invisible
maybe 5% of hacks
That’s just disrespectful bruh
blud..
It’s like at least 70%
You said indistinguishable so that implies that they look like players
if you have a dynamic map
u would have to have like 50 attributes
that synchronize the state of ur map
they are function calls..
it is indisguishable to an exploit that is detecting an attack
Valorant and cs2 are doing just fine
roblox isn't doing too fine
That’s smart I’ll just copy this
they have massive infra compared to u
What’s infra
in roblox to synchronize a state u need to use an attribute which replicates to everyone. and its quite unoptimized the way they have implemented it. its also a generalized solution and a specialized solution would be even harder to optimize
and in that time u couldve done more important stuff for ur game
tldr they don't have to deal with roblox's engine's skiddedness and also have massive budgets
Doesn’t change the fact that implementing server auth especially for fps games is a good idea
the reason im not reviewing ur implementation is that i know its skidded
It’s pretty hard to implement a 100% reliable anti cheat
But server auth lets you not worry about that
its pretty easy to implement stuff that counters movement exploits without server auth movement
its not pretty hard
But it’s like a lot harder
its a lot easier
Especially flying stuff
than implementing working server auth movement that accounts for mispredictions via resimulation
whats hard about it
it’s like an extra 1000 lines of code
its 5 lines of code
I meant anti cheat in general
I take that back but still
not hard
Server auth jitter isn’t noticeable unless you have super high ping
thats just for walking around normally
And in that case Roblox default replication would also be pretty laggy
im new to coding, is there any difference in putting a script into workspace then putting it into serverscriptservice?
Only stuff my game really has is jumping, running, and grappling
And possibly pendulum physics which could get a little tricky but nothing too crazy
mispredictions happen all the time where client/server states diverge for example if u have a bridge that is activated through an eventt
and u must handle that gracefully
not very easy to do
compared to this
Just make the bridge server authoritive
?
Do you mean an actual physical bridge or a connection
a physical bridge
Yeah then just make it server authoritive
It can only be seen if explicitly told by the server
Not predicted
its already seen
Idk what you’re trying to say here tbh
lets say you already walk on the bridge and ur client is predicting just fine. then the bridge disappears because of an event. the server will receive that event first and compute that the client is falling while the client is still walking forward so now theres desync. and once the authoritative snapshot comes its gonna rubberband the player. and its not easy to solve this because you need to simulate the client on both the server & client so you can do resimulation later on which means you also need to do ur own collision detection system which is way more engineering effort than needed
when u gave an example saying its way easier u were comparing a finished server auth movement system with all the edge cases accounted for to an unfinished anticheat
This is a very niche scenario that probably won’t occur in most games using server auth
so obviously at that point, its gonna be easier
it occurs in my game
Then don’t use server auth
i didn't
But in my case server auth is very useful
you can do that
how do i make heartbeat functions trigger at the same rate no matter the framerate (client side)
while task.wait(your_rate) do ?
by your rate you mean the time between frames i assume
i dont really get your question
RunService.Heartbeat will connect whenever a frame is rendered on the client sidr
so if i do while task.wait(1/60) it should trigger 60 time a second right
https://fxtwitter.com/pwkc_ui/status/2021431582687625434?s=20 coders can the seaweed animation be done with a spritesheet
Collect The Starfish ⭐️
︀︀
︀︀Looking to elevate your project with stunning Ul design? Let's connect! Reach out to me on Discord or X to commission!
︀︀
︀︀#UIDesign #RobloxDev #UserInterface #RobloxUl #UIUX
︀︀ DM "pwkc" on discord for commissions
**👁️ 2 **
consider this maybe
ok so this solves everything thank youuu
do i use it like i use heartbeat and renderstepped and allat or do i need to change something
its a method so no connect
you pass the method the function and frequency as seen above
and I guess you get a connection back for disconnecting
so something like runservice.BindToSimulation(function()
end)
:
not .
and after end, if you need a different rate than 60 hz, pass that
these are the options
ok thank you
hey dude
i got an error that says
RunService:BindToSimulation() is not supported in this version yet.
what do i do about that
Hey, dont mind if I can ask but do you know any niche scripting servers or roblox dev servers
roblox oss
roblox networking
?
Do you have the server link
Hidden devs
Scripting helpers
Paris academy
Quenty.org: A portfolio for James Onnen
Nvm thanks
I was wondering the server tag that you have if I could u join it
im banned from inviting people to that server sorry
How did you get invited
Can other people invite you
bro
Join oss and ask a someone named frostfall
She’ll give it to you probably
Loleris is pretty goated
ok so i'm thinking of making a mechanism for large scale melee battles where people can join shields and form a testudo sorta formation and im considering the best way to go about this
my idea at the moment:
- Player 1 starts a formation, each player is allocated 3 slots, one to their left, one to their right, and one behind.
- Player 2 can join the formation by a popup that appears on Player 1s character, where they can press to join left, right, or behind the player 1.
- Players are locked in place when they join shields, and are only able to do overhead attacks
- If enough (>70%) in the formation press their "Advance" button or keybind, or retreat, the formation is pushed forward/backwards by a step by playing an animation and moving the players forward.
thoughts? is this a sound way to go about this?
is this going to be as simple for me to implement as it sounds
it won't be easy :_
Not at all
😭
Seems quite interesting. I think you are able to pull it off.
Good luck.
When I clone my players character in a script and i try to apply velocity on the hrp, its delayed by like 0.6 seconds before the velocity moves, any reason why and how to fix?
i need help in #interface
ai ❤️
can someone help me with camera scripting thing
some guy made cool thing im trying to recreate but idk how he made that camera thingy
What do you guys think of code assist
Chill yo i just asked 😭
it doenst do the specific effect i want to use
im trying to look for the name, thats it i can code it if i see how it works
it can barely ever understand context of what you're trying to write, randomly triggers and keeps you paranoid because it just happens, annoying when it does happen, need to give in inputs to stop the preview from showing which completely distracts you from what you were writing, preview is most likely not even related to what you are writing, and overall sucks out all the feeling of joy and accomplishment from using your brains to solve a problem (e.g. ternary logic)
personally I have all 3 code assist options turned off
the built in assistant is good enough to explain some of the worst API imaginable (like datastores)
it's that kinda stuff that you're more prone to forgetting than not understanding which the AI is arguably useful for (not code assist though)
I used code assist like predictive text, thats it really
I think code assist just makes you dumber
instead of being forced to understand common but difficult math (like vector math in vehicles or projectiles) it takes the common solution and shoves it in your face without giving any reason as to why it works (and overall saps away any benefit of code assist and makes you a skid instead of a scripter)
AI isn't bad but like don't let it do your work for you, it's a tool
it feels much better to know what each component of a formula or equation does than just asserting "it works because it works", like that linear interpolation formula (most simple tween formula)
whats the best way to learn luaU
almost done with the basics but i still feel like there is alot i am confused about
🙏
I'm building a incremental game that spawns models with a floating animation that you would collect as currency. Would spawning them with animation be more effective than tweening the position for a script-built animation and if not how would i go about making them spawn in locally for just you with a floating animation
spawn them on server and animate them locally
the server sees a static model that can still be interacted with by the player but the heavy processing is handled via the client (making it jump jiggle bounce or whatever u wanna do with yo freak models)
Ik thats why im using it like autocomplete
what does that even mean bruh
I mean auto complete
it's bad for that too
whenever I use code assist, it keeps trying to make variables and references of things that don't exist
I never made a workspace.Part that it wants to use so bad
You can just not accept what its giving to you, its literally called code-assist for a reason yo
it doesn't trigger when I want it to, works on its own and is generally annoying because I want to see what I'm writing and not what it wants me to write
Fair enough, but honestly i lowk wish code assist is just an auto-complete thing not some "program" that let you "code" without typing it (as it was advertised)
Actually if so was there something like an autocomplete in studio, the only thing i remember is ;require
(Btw a must have plugin if you dont want to be miserable)
I have a rip off version of it but its not as good as I'd want it to be
I want to be able to give custom variable names to the services I want to call
like I don't do local ReplicatedService I do local RS
I don't like having to go back to the variable name to change it back to RS
Hey
that’s why i use vscode
advanced skidding
stop
i like coding
guys does anyone know how to make it so your right arm gets blown off (i know how to do that) and then you can't use any tools (you know that one thing that always happens when you're near an explosion). I assume it's joints just not which ones it is?
What the fuck is that
???
press insert key
shift insert
insert key only works too
any good programmers?
Yo guys, somebody know how to make an anti-cheat system for game that has like explosion and stuff like that, I really don't know from where should I start
@deft coral
why?
i need some programmers for my game
which anti-cheat you mean?
then make a post
Against exploiters that fly/teleport
what the game and payment
in server side, check if the player has been in the air for too long if so, teleport back to the ground
anime simulator its way complex then normal games but pay is good according to the complexity of the systme*
How about teleportation?
did you search smthg about it on dev forum? I recommend do this
you gotta compare last position with the new position if its a great distance, snap back to last position
hm good idea
per task payment for a big game
looks weird
well i already got a few programmers but i need 1 more
so ima just make a post
I mean, big games need one team, not different people
the current programmer cant make chat alerts
cuz uae banned chat
😢
@fervent belfry
why you ping bot
click insert key
You don’t need chat access to make that 💀
if statement == true then error("statement not true") end
end```
How do I code?
print("Hello world!")
Chat alerts work even if you are unable to chat
I've tested this on alts that aren't verified
My game actually uses a script that notifies you by chat who you can talk with
Nice try
Another wrapper
Yay💔😋
I wasn't claiming I made it I took it off the dev forum
That's even worse
Dev forum is filled with weird larpers
I'm not making everything myself if someone's done soemthing I want to make ill just use that instead
I said
Whatever ur using is bad
It's a wrapper 💔
I did but she isnt responding, do you know other people that can invite
guys i have game have so much problem i want one to help me
whats up
hey
whats the issue son
is cframe.new relative to the origin point (0, 0, 0) or the object's position?
player not spawn
Frame.new(...) by itself depends on what you give it:
come in DM you can call me for watch my screen
relative to the origin point
how to lua
I was wondering if anyone can help me figure out a way of trying to handle like more than 7 click detector connections or connections in general and if its better to handle it on server or client?
Anyone got a good idea of a game like twenty one as in your on a conveyor belt and you have to spell a letter correctly for hangman
whether or not you handle it on the server or client depends on your use case. if you're running code on the client from the click, then handle it on the client, and vice versa
as for handling it better, if a lot of them do the same thing or something similar (e.g. running the same function with different parameters), then you could loop through all of them and run that function for each connection in one script rather than an individual script for each
guys i made a dash system
Anyone got a good idea of a game like twenty one as in your on a conveyor belt and you have to spell a letter correctly for hangman
yea thanks, I got the one script/individual as I have currently a module thats ran on server to handle everything, just worried about the tweening that I'm doing in the same module that's impacting bandwidth, probably memory too with all the connections but I'm not sure if I should go client client as I want the change to happen across all clients
previously before commenting, I was thinking if a client -> server -> all clients was possible but it seems unrealistic
we asking in every channel or
tweening should generally be done on the client as it tends to lag more on the server, just send a signal to the client to run it. that or use lerp instead
lerping might be the better option to keep sync
ok thanks
I need advice of how i could learn lua within like 3months to the point i can make a game
imo read lua.org docs and code while you read instead of only reading
Is there any free courses for learning lua
Roblox UI Development Plugins Just like AutoScale Plus but its Free.
DevForum: https://t.co/u4J7ta3KIV
Watch till the end if you are a Psyco or just read the devforum which tooks only 10secs :>
#RobloxDevs #RobloxPlugins #RobloxScript
Brawl dev?
If you want articles and text lessons then lua 5.1 docs may help
he overcomplicates stuff ngl isn't the Dev king better
anyone know how to make a coin that ups leader stats
Guys what’s the best way to make a terraria like hitbox? So like when something touches the hit blade not as soon as you swing it
ye
And what is the best way to detect the hit? Just .touched?
Wdym
Touched is so bad, only for simple things
Does this new teleport logic block gamejoin requests at the api level?
oh its not letting me send its the new teleport settings in the blog post ehre
We’re excited to announce a revamp to Teleport controls as well as an explicit control for enforcing server-side Teleports. This would be especially applicable for experiences where places are locked behind progress and you don’t want players to skip content (e.g., skip in-game dungeons to jump straight into a treasure vault place).
Previously, we had the “Direct Access to Places” control with an on or off state.
Off state- the place can be joined via teleports originating within the same Universe only, but allows for insecure client-initiated teleports.
On state- the place is further open to joins by all other methods - including teleports from other Universes. It continues to allow for insecure client-initiated teleports.
Allowing Teleports to be triggered directly from the client (via LocalScripts) is insecure because it allows for exploits to bypass in-game logic.
As such, we are replacing “Direct Access to Places” with 3 settings to give you more control and secure your experiences if you so chose:
Fully Open - Place is joinable by all means - including insecure client Teleports from any Universe, deep links, game invites, joining a user from their profile, and more.
This is equivalent to “Direct Access to Places” on-state - it will be the default setting.
Limited to same Universe- Place is joinable only via Teleports from within the same Universe - including both insecure client Teleports and secure server Teleports.
This is equivalent to “Direct Access to Places” off-state.
Secure within Universe only- Place is joinable only via secure server Teleports within the same Universe.```
Hi i wanna advertise my game.I only have 773 rubux what should i do?
Just try first with no robux and see how it works
Investors


