Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- by mate aa122294_0
- -- Anti backdoor
- local LoadStringModuleCheck = true -- RISK LEVEL IF MADE FALSE: High or Critical
- local RuntimeRemoteAddedCheck = true -- RISK LEVEL IF MADE FALSE: Mid or High
- local IsStudio = game:GetService("RunService"):IsStudio()
- if not IsStudio then
- if RuntimeRemoteAddedCheck then
- game.DescendantAdded:Connect(function(descendant)
- if descendant:IsA("RemoteEvent") or descendant:IsA("RemoteFunction") then
- descendant:Destroy()
- --[[
- It's pretty much impossible to detect
- if a selected remote is a chat remote
- since people can just fake a chat rem
- ote.
- It doesn't matter though because chat
- remotes can't be destroyed, you'll ju
- st have to deal with endless warn mes
- sages hence why this script will only
- work in non studio as to not spam the
- output. Feel free to remove the check
- but it will make it harder to debug e
- rrors.
- --]]
- end
- end)
- end
- if LoadStringModuleCheck then
- for _, v in pairs(game:GetDescendants()) do
- if v.Name == "Loadstring" and v:IsA("ModuleScript") then
- v:Destroy()
- end
- end
- game.DescendantAdded:Connect(function(descendant)
- if descendant.Name == "Loadstring" and descendant:IsA("ModuleScript") then
- descendant:Destroy()
- end
- end)
- --[[
- I know you can just rename the
- loadstring module to whatever,
- but I haven't seen anyone do t
- hat before.
- --]]
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment