How exactly would you prevent No-Clipping?

Hello everyone! I’m working on a murder-esque game, and navigating the map, along with hiding behind objects, are major components of these game styles.

My one question is, how could you prevent no-clipping? I would assume doing a sanity check every interval and seeing if their torso’s canCollide is set to true, but I’m just checking to see if anyone has any better options or ideas.

1 Like

Please search before posting, i.e: Search results for 'prevent noclip' - Developer Forum | Roblox

I personally haven’t tried this but I have seen instances of raycasting being used. If the ray goes inside of a part then a player MIGHT be noclipping.

1 Like

I want to quickly make it clear that I did search the forums before-hand. The two top posts that are relevant to this seems to actually have less-productive ways of handling the situation than I do, and I wanted to double check to see if there are more efficient ways, given that both posts were also 6 years ago.

1 Like

As for the ray idea, although that could work, many maps do have non-collideable parts that players can walk through.

For now I’ll just use the torso sanity-check until a better way arises. Thanks for the input though!

1 Like

I use Region3 on certain areas which shouldn’t be able to be noclipped through.

2 Likes

I’ll look into using Region3 to detect NoClipping! Do you use .Touched for that?

No, I just do a loop or use RunService.

1 Like