#How to make Melee Hitboxes?

1 messages · Page 1 of 1 (latest)

candid gyro
#

I’m developing a sword-fighting game and want to implement hitboxes for sword swings. What are the best methods to do so that are fairly hack-proof?

delicate lotus
#

just create a part on the client and detect for collision with another player

#

if u wanna make it hack-proof you should check the initial position of the part as you spawn it in, then check for change in the hitbox size

#

if it changes u can make it revert back or even kick the player

#

or if the initial size isn't the supposed size u can revert it or kick the player

#

on the server add a threshold for the distance between the victim and the attacker

#

(this distance should be fairly large like 30 or 40 studs since some players are high ping)

#

or if u want u can do the hitbox on the server which will make it 99% hack proof but will also ghost 90% of the time

urban oar
#

On server is better