Attacking Hitboxes | Roblox Essentials #2

  Рет қаралды 10,275

Solepsus

Solepsus

3 ай бұрын

Пікірлер: 47
@glegolas5008
@glegolas5008 3 күн бұрын
I know this is old but I recommend calculating what targets are hit by the hitbox on the client because its more responsive and it puts less of a load on the performance of the server. From there, you can just run sanity checks on the server to make sure the target is actually in a reasonable position to hit the target through magnitudes and dot products.
@SolepsusYT
@SolepsusYT 3 күн бұрын
thats true but the point of the video was to show the mechanism behind hitboxes and method of use. It's better to have client side hitboxes but then I would have to cover sanity checks / anti cheat and i didnt wanna go in that direction yet, would be too long to cover in the vid
@glegolas5008
@glegolas5008 2 күн бұрын
@@SolepsusYT ye i see where you are coming from!
@verdox0
@verdox0 3 ай бұрын
one thing that i will mention is that using touch event will make it so its super easy for hackers to control how big the hitbox is and they can hit anyone on the map if they wanted to, so to prevent that you can add a check that checks how far away the attacker is from the victim and based on that the server has to decide on if the attack should be allowed or not, so the max distance that the server allows the attack to be from has to be decided by you based on how far away the attack usually goes. you should also make the distance a bit longer than expected so that laggy players can still hit people, but the down side of doing that is that hackers can now hit players from further away so you really need to balance the max attack distance value
@SolepsusYT
@SolepsusYT 3 ай бұрын
it should be mostly fine since the hitbox is created in the server, but this could be bypassed by teleporting the player to the enemy but at that point its a whole nother' issue
@epixerty
@epixerty 3 ай бұрын
that doesn't even matter, exploiters can teleport anyways
@kaiser9199
@kaiser9199 3 ай бұрын
@@SolepsusYTvery true if anyone is interested i'd recommend watching suphi kaner's video on anti-cheat, he's one of the best roblox tutorial channels there is he talks about checking position with respect to character speed and doing an action based on the outcome, this battles instant teleportation to an object
@galicate
@galicate 3 ай бұрын
The Touched Event is really unreliable too, shouldnt be used for anything honestly.
@verdox0
@verdox0 3 ай бұрын
​@@SolepsusYT if the part is a parent of the player(hacker) then the touch event works based on how the player detects it as in it wont matter if its a server script because the detection is client sided either way. so touch event should never be fully trusted. an example of this is that classic swords have a server script and it uses a touch event but any time you join a game like sword fights on the heights there are hackers who make their sword hitbox size 1024(the biggest part size) and then they kill everyone on the map
@TopicalHat
@TopicalHat 2 ай бұрын
You can use a combination of a hitbox and a raycast to detect for walls and whatnot by the way
@lui2330
@lui2330 2 ай бұрын
for a more advanced hitbox, i suggest when the input is detected send it to server, then on server play the animation with a marker, and use invoke to get the hitbox from client, checking if it is valid, then doing a sanity check with magnitude, regardless this is great for someone just learning, a follow up video on a more advanced hitbox would be sick
@SolepsusYT
@SolepsusYT 2 ай бұрын
i dont understand why the hitbox has to be instantiated from the client. It doesnt make a lot of sense to have the sanity check either, if the only way to "cheat" the hitbox is by teleporting the player to the enemy, you would be making useless calculations by grabbing the magnitude (as teleporting the plr with hacks would result in the cottect magnitude anyway)
@lui2330
@lui2330 2 ай бұрын
@@SolepsusYT client hitboxes detect quicker than server hitboxes, responsiveness from clients are way better than server
@Jayy-Nice
@Jayy-Nice 2 ай бұрын
@@SolepsusYTalways use hitboxes on the client. It makes the game much more smoother. Same with animations. You just need damage on the server. Yes it will be more exploitable tho
@Musab_YB
@Musab_YB Ай бұрын
​@@SolepsusYT Assuming your hitbox is server-sided as it should always be You should NEVER play animations on server
@SolepsusYT
@SolepsusYT Ай бұрын
well i dont know about NEVER. But it does reduce lag, albeit not that much.@@Musab_YB
@couldyouwin
@couldyouwin 3 ай бұрын
great tutorial for beginners but for any beginners that want to make it more advanced and less exploitable try using shapecasts instead
@NovaWolf_
@NovaWolf_ 2 ай бұрын
Currently shapecasting is pretty new and is not recomended for hitboxes due to how collison detection works, if you wanna make a good hitbox use raycasting and attachment points.
@leki_beerri
@leki_beerri 3 ай бұрын
nice
@--Neptune-
@--Neptune- 3 ай бұрын
also when u move objects using the move arrows, you have the position for that axis displaying, how can i do that? thanks
@SolepsusYT
@SolepsusYT 3 ай бұрын
do you mean the cube thing at the top right?
@user-tu6we6nw9m
@user-tu6we6nw9m 4 күн бұрын
Bro, may i get that model? I like that bro.
@--Neptune-
@--Neptune- 3 ай бұрын
I really fw ur work style bless bro im subbing
@NotChron
@NotChron 2 ай бұрын
that thumbnail is giving me byteblox flashbacks.,.,.,... if you end up making a community please care for it.,,.,.,....... regardless good video!
@byteblox100
@byteblox100 2 ай бұрын
Lmao
@Elite_CMDO
@Elite_CMDO 2 ай бұрын
@@byteblox100 yooooooooooooooooooo
@ExoticFoxy
@ExoticFoxy 2 ай бұрын
babe byteblox dropped
@FlyinC4T
@FlyinC4T Ай бұрын
I now know how to weld a part to a player... by basically welding the part to a player, man I'm stupid 😭
@otterryy
@otterryy Ай бұрын
what
@kinqoh
@kinqoh 2 ай бұрын
dawg thanks for this, how long have you been scripting for?
@SolepsusYT
@SolepsusYT 2 ай бұрын
a little over 3 years!
@user-tu6we6nw9m
@user-tu6we6nw9m 4 күн бұрын
May i hire you as scripter bro? I'll give you an reward.
@SolepsusYT
@SolepsusYT 3 күн бұрын
Depends on what work
@mithunns128
@mithunns128 3 ай бұрын
can u send me the code pls
@shubaponcr341
@shubaponcr341 2 ай бұрын
0:51
Making Tycoon Droppers | Roblox Essentials #3
17:15
Solepsus
Рет қаралды 305
Evolution of Roblox (2004-2024)
18:08
SLYX
Рет қаралды 1,3 МЛН
I Need Your Help..
00:33
Stokes Twins
Рет қаралды 137 МЛН
ПЕЙ МОЛОКО КАК ФОКУСНИК
00:37
Masomka
Рет қаралды 10 МЛН
Making a Roblox game Using ONLY AI!!!
7:39
BlueBoi
Рет қаралды 604 М.
The Most ACCURATE Projectile in ROBLOX!!
25:37
fidgetspinner71
Рет қаралды 28 М.
Roblox VFX | Emerald Tracers
0:44
Zonito
Рет қаралды 729
I Made my First Roblox Simulator to Prove I Can Code
10:09
Why do Roblox hitboxes suck?
6:38
Copper Cog Studio
Рет қаралды 196 М.
The ONLY Raycasting Tutorial You'll EVER NEED
23:54
script_ing
Рет қаралды 9 М.
How to make a simple cutscene in Roblox Studio
9:10
RKGAM3ZS
Рет қаралды 62 М.
New to Studio? Get These FREE Plugins!
9:40
RoBuilder
Рет қаралды 258 М.
WHO IS THE SPY IS ACTUALLY FUN
8:14
Sketch
Рет қаралды 164 М.
Проиграл свою душу Голландцу #шортс
1:00
Bling Bang Bang Born fight: Aaron Vs Zane #minecraftshorts
0:13
BigBlockCraft
Рет қаралды 13 МЛН
Lips are Red or Blue? #shorts
0:45
RKoirala02
Рет қаралды 8 МЛН