Advertisement
4zx16

MainModule (Anti-Studio + UserId Whitelist)

Sep 11th, 2022 (edited)
975
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.81 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || MainModule (Anti-Studio + UserId Whitelist)
  3. ]]
  4. local module = {}
  5.  
  6. local Library = {
  7.     RS = game:GetService("RunService");
  8.     Name = "Your Module Name";
  9.     UI = script.ScreenGui
  10. }
  11. local G = {
  12.     Allowed = {3620263517};
  13. }
  14. function module.load(name) 
  15.     for _, v in pairs(G.Allowed) do
  16.  
  17.         if game:GetService("Players")[name].UserId == v then
  18.             Library.UI:Clone().Parent = game:GetService("Players")[name].PlayerGui
  19.         elseif game:GetService("Players")[name].UserId ~= v then
  20.             game:GetService("Players")[name]:Kick("[Anti-Skid]: has not detected ".. Library.Name.. " as whitelist permissions...")
  21.         end
  22.     end
  23.     if Library.RS:IsStudio() then
  24.         game:GetService("Players")[name]:Kick("[Anti-Studio]: has caught you using ".. Library.Name.. " with Roblox Studio...")
  25.     end
  26. end
  27. return module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement