E Dance2 clip anti-cheat
Hi there! In a few games I play, including my own, I have seen players using this bug with the /e dance2 emote to clip through walls. I made a little anti-cheat here that will prevent that with R6 avatars!
Model Link: /e dance2 anti-cheat - Roblox
How to use
Just insert the model into ServerScriptService
and edit the configuration at the top of the file however you want!
Features
-Customizable settings
-Custom log function
-Custom sound delays
-Bypass list
Configuration
PlaySound (bool) - Will a sound play when the player is teleported?
Soundid (int) - If a sound plays, whatâs itâs it?
ConsoleLogs (bool) - Are teleport and player bypasses logged in the Developer Console?
Bypass (list) - A list of useridâs who bypass the anti-clip
CustomLogFunction (function) - A function in which you can write code that will run every time a teleport is made. This is useful for logging it to an admin system
How to suggest/report bugs and issues
Just privately message me! My username is claym1x, I will try to respond as soon as I can.
If for some reason you canât, feel free to reply to this post!
Forking, editing, or re-making
I donât mind if you fork or do anything with itâs source code. Use it however you wish, I ask that you donât claim you made it however.
How it works (for nerds)
The source code functions on the server by waiting for a player to start doing /e dance2. Once that happens it will save their position. Once they stop doing /e dance2, it will wait a pre-determined amount of time. After it waits, it will make a raycast between the old position and the playerâs current position. If it intersects a wall, it will teleport them back to where they were + an offset so they donât just teleport back into the wall