#Basic LBM system

1 messages · Page 1 of 1 (latest)

supple notch
#

I have a question: which is better, using a raycast or a hitbox for a basic combat system like LMB?

And another question: do you recommend connecting everything with a remote event, remote function, or something else?

hardy roost
#

I don’t have much experience with making combat systems but I would say that using raycast would work for anything since you can get the distance and simply do a check to see if it’s close enough (in the case of a sword ofc or fists) and for any client severe communication you need remote events / functions, from what I understand, so once the player fires an attack a remote event is necessary so that the server can 1) check that the attack hit with the raycast distance and 2) check how much damage it needs to deal and subtract it from the one reviving the damage, I would always avoid doing game logic on the client since that’s easily exploitable, so no sending the distance from the client to the server or the damage vale or whatever

#

But as I said I have very little experience so this is just my opinion

#

I’d have to look into hotboxes hahah