Fast player collision detection

Hi!

I’m working on a project where platforms despawn when a player touches them. I tried using .Touched events on the platforms using server scripts, but this introduces a delay between the player hitting the platform and the server detecting it.

Is there an existing alternative that introduces less delay? Thought about doing the detection client-side with the player boundaries as a hitbox, but this introduces the need for remote events (to make the platform dissapear) and makes the system more exploitable.

Thanks in advance

2 Likes

Raycasting is an alternative or hitscanning; then again I have no clue how to use either but as far as I can tell they can be used to detect impact.

Hmmm maybe I can use that, thanks for the suggestion.

For anyone having the same problem: I fixed it by restricting avatars to R6 avatars only. The R15 avatars have some collision problems where they collide later with objects under them and holding space enables the player to jump before collision actually happens.

2 Likes

Oh; I didn’t know you were using R15 lol. Yeah, due to the fact there are more moving parts it adds a slight delay to the event.

1 Like