Тёмный

Attacking Hitboxes | Roblox Essentials #2 

Solepsus
Подписаться 333
Просмотров 10 тыс.
50% 1

Игры

Опубликовано:

 

22 фев 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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 3 дня назад
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 3 дня назад
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
Далее
Infiltrating Roblox’s Fake Middleman Scam
18:57
Просмотров 163 тыс.
Tragic Moments 😥 #2
00:30
Просмотров 2 млн
How I Did The Mcdonalds Drink Trick 🤯🥤#shorts
00:16
Carbonara under PRESSURE @Lionfield
00:44
Просмотров 3,5 млн
Roblox Released The BEST Update Yesterday...
9:38
Просмотров 118 тыс.
playing phighting(3/3)
11:24
Просмотров 3
Why do Roblox hitboxes suck?
6:38
Просмотров 196 тыс.
The ONLY Raycasting Tutorial You'll EVER NEED
23:54
Просмотров 9 тыс.
The Most Famous Flamingo Incidents EXPLAINED
5:38
Просмотров 166 тыс.
I Used AI to Make a ROBLOX Game…
8:13
Просмотров 1,1 млн
Roblox Isle: The Florida Hunger Game Experience
22:03
I Made my First Roblox Simulator to Prove I Can Code
10:09
Апаю Драко на 25 ранг!!!😎😎😎
0:52
▼ОНИ ЩУПАЛИ МЕНЯ 👽🥴
32:00
Просмотров 531 тыс.