Advertisement
4zx16

MainModule (Anti-Studio + Group Whitelist V1)

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