How to stop cornerglitching: A guide by an experienced corner glitcher

 Corner glitching can be the bane for many developers who intend to create a game with areas locked off from access. Highly experienced players who have mastered the art of corner glitching gain the ability to pass straight through your well scripted group only doors, walls, etc. A lot of developers, however, fail to realize the very simple and useful methods that can be used to prevent players from breaking in to your building.

First, an explanation on what corner glitching is:
First, you need to have a goal, something that you want broken in to. For the purpose of this guide, we are going to be using this room.
image

Corner glitching simply works by making a 180 degree turn while hugging an exterior facing corner, as shown.


While very powerful, cornerglitching can be stopped by a large amount of methods, in which I will rank from top to bottom in terms of usability, features, etc.

Method 1: Cylinders
When you use a cylinder, you make it so that there is no longer a sharp corner for the player to perform the corner glitch on. For this reason, you can create very small, transparent cylinders that just barely cover the corners of your building, and this in itself will suffice in preventing this exploit.
image
The result of this, (after hiding it,) looks like this:


This method is extremely simple, and is very powerful in stopping corner glitchers from breaking into your buildings.

Method 2: Scripted Restricted Areas
While one of the first ideas that may come to mind to prevent players from breaking into an area is to write a complex system using Region3 that tracks the positions of all player and moves them outside of areas if they are inside of them, there is a much, much simpler solution: clientsided blocks!

With something like this, we can then write some code to simply delete this part on authorized clients.

if game.Players.LocalPlayer.Name ~= “Player2” then – Make something like this that checks group ranks, etc.

game.Workspace:WaitForChild(“SecureArea”):Destroy() – You’d likely want to set up a loop here, but this is good for demonstration.

end

The effect of this is very simple, but extremely effective.



Method 3: Not having exterior facing corners
This method is not applicable to all areas, and will work only in doorways in hallways or other such places where you can otherwise not cornerglitch, but it is still very useful. By using transparent (or visible) changes to make outer surfaces flat, we can make it impossible to cornerglitch.

Method 4: Unions, lol!
Unions seem to operate with collisions differently, and therefore are immune to cornerglitching. This is probably the easiest method, but generally union spam is seen as a negative, and should be avoided unless if other solutions are not ideal.


Besides the methods mentioned in this topic, there are a variety of other methods, some more or less complex, that you can use to prevent players from corner glitching in your games.














Comments