Advertisement
Guest User

[Roblox Studio] Ultimate Trolling GUI Script

a guest
May 27th, 2020
13,324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. -- Settings
  2.  
  3. enabled = true -- an easy way of enabling/disabling the script
  4. everyoneAllowed = false -- if you want everyone to have the gui
  5.  
  6. local allowed_players = {} -- type your username here
  7.  
  8. local GUI = script.AccessUI
  9.  
  10. function onJoin(player)
  11.    
  12.     if enabled == true then
  13.    
  14.         if everyoneAllowed == true then
  15.        
  16.             local clonedGui = GUI:Clone()
  17.             clonedGui.Parent = player.PlayerGui
  18.        
  19.         else
  20.        
  21.             for i,v in pairs(allowed_players) do
  22.            
  23.                 if player.Name == v then
  24.                
  25.                     local clonedGui = GUI:Clone()
  26.                     clonedGui.Parent = player.PlayerGui
  27.                
  28.                 end
  29.            
  30.             end
  31.        
  32.         end
  33.        
  34.     end
  35.    
  36. end
  37.  
  38. game.Players.PlayerAdded:Connect(onJoin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement