For my game I need to make a system where players of a higher level are able to damage players of a lower level just by touching them. I do not know the best way to do that. I know it is possible to do it by making a script in the starter character, but what would be the best way to do it? Any feedback is appreciated!
Using touch functions to handle damage?? Don’t do that, that’s very insecure, touch events aren’t necessarily the best to go about with these things. They don’t always connect, and are not very reliable.
Instead, why not use something like Region3’s? Or Ray-casting?
I know that this person made an entire hitbox library dedicated for being accurate by using raycasting, maybe you could implement this instead into your game.
1 Like