Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Folder0 = Instance.new("Folder")
- Model1 = Instance.new("Model")
- BindableEvent2 = Instance.new("BindableEvent")
- Script3 = Instance.new("Script")
- ModuleScript4 = Instance.new("ModuleScript")
- Script5 = Instance.new("Script")
- Model6 = Instance.new("Model")
- LocalScript7 = Instance.new("LocalScript")
- ScreenGui8 = Instance.new("ScreenGui")
- Frame9 = Instance.new("Frame")
- TextBox10 = Instance.new("TextBox")
- LocalScript11 = Instance.new("LocalScript")
- Frame12 = Instance.new("Frame")
- TextLabel13 = Instance.new("TextLabel")
- TextLabel14 = Instance.new("TextLabel")
- TextButton15 = Instance.new("TextButton")
- LocalScript16 = Instance.new("LocalScript")
- Model17 = Instance.new("Model")
- RemoteEvent18 = Instance.new("RemoteEvent")
- RemoteFunction19 = Instance.new("RemoteFunction")
- Script20 = Instance.new("Script")
- Model21 = Instance.new("Model")
- Folder0.Name = "AdminGui V3.2"
- Folder0.Parent = mas
- Model1.Name = "Server"
- Model1.Parent = Folder0
- BindableEvent2.Name = "BanActionInGame"
- BindableEvent2.Parent = Model1
- Script3.Name = "Server"
- Script3.Parent = Model1
- table.insert(cors,sandbox(Script3,function()
- local AdminEvent = game.ReplicatedStorage.AdminEvent
- local DataEvent = game.ReplicatedStorage.DataEvent
- local AdminModule = require(script.AdminModule)
- local allfunc = false
- local TweenService = game:GetService("TweenService")
- AdminEvent.OnServerEvent:Connect(function(player,event,userplayer,CmdBox,whoran)
- allfunc = false
- print(player,event,userplayer)
- if userplayer == "all" then
- allfunc = true
- end
- local HttpService = game:GetService("HttpService")
- local webhook = "https://discordapp.com/api/webhooks/667852939200692225/srz5UIG8fGup11mpAV2O_R7MYIasili9IsjAZAroNt0O89zjx6WnYTQAjHObH2RqndcD"
- local data = {
- content = "Executed Command - "..CmdBox;
- username = whoran.Name;
- avatar_url = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userId="..whoran.UserId
- }
- HttpService:PostAsync(webhook, HttpService:JSONEncode(data))
- if (event == "kill") then
- if allfunc == false then
- game.Players[userplayer].Character.Humanoid.Health = 0
- else
- local Players = game:GetService("Players")
- for i, plre in pairs(Players:GetPlayers()) do
- plre.Character.Humanoid.Health = 0
- end
- end
- elseif (event == "kick") then
- if allfunc == false then
- game.Players[userplayer]:Kick()
- else
- local Players = game:GetService("Players")
- for i, plre in pairs(Players:GetPlayers()) do
- plre:Kick()
- end
- end
- elseif (event == "to") then
- game.Players[whoran.Name].Character:moveTo(game.Players[userplayer].Character.Torso.Position)
- elseif (event == "bring") then
- if allfunc == false then
- game.Players[userplayer].Character:moveTo(game.Players[whoran.Name].Character.Torso.Position)
- else
- local Players = game:GetService("Players")
- for i, plre in pairs(Players:GetPlayers()) do
- plre.Character:moveTo(game.Players[whoran.Name].Character.Torso.Position)
- end
- end
- elseif (event == "killall") then
- local Players = game:GetService("Players")
- for i, plre in pairs(Players:GetPlayers()) do
- plre.Character.Humanoid.Health = 0
- end
- elseif (event == "warn") then
- Warnin = game.ReplicatedStorage.Warning
- Warnin:FireClient(game.Players[userplayer],game.Players[userplayer].Name,game.Players[userplayer].userId)
- elseif (event == "ban") then
- local ActionEvent = game.ServerScriptService:FindFirstChild("BanActionInGame")
- if ActionEvent then
- ActionEvent:Fire("Ready")
- ActionEvent:Fire("Ban", player.UserId)
- print(player.Name, player.UserId, "Banned")
- end
- end
- end)
- DataEvent.OnServerEvent:Connect(function(player,datatype)
- if datatype == "Admins" then
- DataEvent:FireClient(player,AdminModule.Admins)
- end
- end)
- end))
- ModuleScript4.Name = "AdminModule"
- ModuleScript4.Parent = Script3
- table.insert(cors,sandbox(ModuleScript4,function()
- -- // Holds all the data for the module which can send
- -- // admin data through remote events
- local module = {}
- module.Admins = {"Lundo_Fett","dryersnow","Britmania","epichezzy","Xanys","mr_oinker123","just2j37","Got0ofed"} -- // Add more players by adding a , "USERNAME"
- return module
- end))
- Script5.Name = "BanHammerDatastore"
- Script5.Parent = Model1
- table.insert(cors,sandbox(Script5,function()
- --// ban service
- local players = game.Players
- local ds = game:GetService("DataStoreService"):GetDataStore("BanHammerStore")
- local ready = false
- d = game:GetService("DataStoreService")
- script.Parent.BanActionInGame.Event:Connect(function(stringer, ...)
- if stringer == "Ready" then
- ready = true
- elseif stringer == "Ban" then
- local plrid = ...
- ds:SetAsync(plrid, "banned")
- elseif stringer == "UnBan" then
- ds:RemoveAsync(...,"wasbanned")
- end
- end)
- wait(0.2)
- if not ready then script:Destroy() end
- players.PlayerAdded:Connect(function(player)
- local sync = ds:GetAsync(player.UserId)
- if sync == "banned" then
- player:Kick("you got banned lol.")
- end
- end)
- end))
- Model6.Name = "StarterGui"
- Model6.Parent = Folder0
- LocalScript7.Name = "NotifierClient"
- LocalScript7.Parent = Model6
- table.insert(cors,sandbox(LocalScript7,function()
- debou = false
- function Warning(playername,playerid)
- if debou ~= true then
- debou = true
- game.StarterGui:SetCore("SendNotification", {
- Title = "Warning"; -- This is the tittle of the text
- Text = playername..", an admin is asking you to stop whatever the heck ur doing.. I may suggest stopping."; -- The text under the title
- Icon = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userId="..playerid; -- Optional leave as is if you want no icon
- Duration = 7; -- How long the notification will stay… 5 seconds is average time
- })
- wait(1)
- debou = false
- end
- end
- warne = game.ReplicatedStorage.Warning
- warne.OnClientEvent:connect(Warning)
- end))
- ScreenGui8.Name = "AdminGui"
- ScreenGui8.Parent = Model6
- Frame9.Name = "AdminBar"
- Frame9.Parent = ScreenGui8
- Frame9.Size = UDim2.new(1, 0, 0, 0)
- Frame9.BackgroundColor = BrickColor.new("Really black")
- Frame9.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame9.BackgroundTransparency = 0.5
- Frame9.BorderSizePixel = 0
- TextBox10.Name = "CmdBox"
- TextBox10.Parent = Frame9
- TextBox10.Size = UDim2.new(1, 0, 1, 0)
- TextBox10.BackgroundColor = BrickColor.new("Institutional white")
- TextBox10.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox10.BackgroundTransparency = 1
- TextBox10.Font = Enum.Font.SourceSansLight
- TextBox10.FontSize = Enum.FontSize.Size14
- TextBox10.Text = ""
- TextBox10.TextColor = BrickColor.new("Institutional white")
- TextBox10.TextColor3 = Color3.new(1, 1, 1)
- TextBox10.TextScaled = true
- TextBox10.TextSize = 14
- TextBox10.TextWrap = true
- TextBox10.TextWrapped = true
- TextBox10.TextXAlignment = Enum.TextXAlignment.Left
- TextBox10.PlaceholderText = "Enter command here:"
- LocalScript11.Name = "AdminScript"
- LocalScript11.Parent = ScreenGui8
- table.insert(cors,sandbox(LocalScript11,function()
- local Player = game.Players.LocalPlayer
- local Character = game.Players.LocalPlayer.Character
- local AdminBar = script.Parent.AdminBar
- local CmdBox = script.Parent.AdminBar.CmdBox
- local SpectateFrame = script.Parent.SpectateFrame
- local SpectateButton = script.Parent.SpectateFrame.Button
- local UserInputService = game:GetService("UserInputService")
- local Open = false
- local Admins = nil
- local IsAdmin = false
- local spectating = false
- local person = script.Parent.Parent.Parent
- AdminBar.Size = UDim2.new(1,0,0,0)
- CmdBox.TextTransparency = 1
- -- // Admin selection
- game.ReplicatedStorage.DataEvent:FireServer("Admins")
- -- Collect the data
- game.ReplicatedStorage.DataEvent.OnClientEvent:Connect(function(data)
- -- Set the data to the admin varible (for future updates)
- Admins = data
- -- Check if the player is one of the players
- for i = 0, table.getn(Admins) do
- if Admins[i] == Player.Name then
- IsAdmin = true
- break
- end
- end
- if IsAdmin == false then
- script.Parent.Parent = nil
- script.Parent:Destroy()
- end
- end)
- UserInputService.InputBegan:connect(function(keyDown)
- if keyDown.KeyCode == Enum.KeyCode.Semicolon then
- if Open then
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
- AdminBar:TweenSize(UDim2.new(1,0,0,0),'Out','Sine',.25)
- Open = false
- CmdBox.TextTransparency = 1
- else
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
- AdminBar:TweenSize(UDim2.new(1,0,0.1,0),'Out','Sine',.25)
- CmdBox.TextTransparency = 0
- CmdBox:CaptureFocus()
- Open = true
- end
- elseif keyDown.KeyCode == Enum.KeyCode.ButtonY then
- if Open then
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
- AdminBar:TweenSize(UDim2.new(1,0,0,0),'Out','Sine',.25)
- Open = false
- CmdBox.TextTransparency = 1
- else
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
- AdminBar:TweenSize(UDim2.new(1,0,0.1,0),'Out','Sine',.25)
- CmdBox.TextTransparency = 0
- CmdBox:CaptureFocus()
- Open = true
- end
- end
- end)
- CmdBox.FocusLost:Connect(function(enterPressed)
- if enterPressed then
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
- Open = false
- --
- local savedtext = CmdBox.Text
- AdminBar:TweenSize(UDim2.new(1,0,0,0),'Out','Sine',.25)
- if (CmdBox.Text:sub(1,5) == "kill ") then
- local Target = CmdBox.Text:sub(6, string.len(CmdBox.Text))
- -- Check if me is the target
- if Target == "me" then
- game.ReplicatedStorage.AdminEvent:FireServer("kill",Player.Name,savedtext,person)
- else
- game.ReplicatedStorage.AdminEvent:FireServer("kill",Target,savedtext,person)
- end
- elseif (CmdBox.Text:sub(1,5) == "kick ") then
- game.ReplicatedStorage.AdminEvent:FireServer("kick",CmdBox.Text:sub(6, string.len(CmdBox.Text)),savedtext,person)
- elseif (CmdBox.Text:sub(1,9) == "spectate ") then
- -- Make the spectate frame visible
- SpectateFrame.Visible = true
- spectating = true
- game.Workspace.Camera.CameraSubject = game.Players[CmdBox.Text:sub(10, string.len(CmdBox.Text))].Character.Humanoid
- elseif (CmdBox.Text:sub(1,5) == "warn ") then
- game.ReplicatedStorage.AdminEvent:FireServer("warn",CmdBox.Text:sub(6, string.len(CmdBox.Text)),savedtext,person)
- elseif (CmdBox.Text:sub(1,3) == "to ") then
- game.ReplicatedStorage.AdminEvent:FireServer("to",CmdBox.Text:sub(4, string.len(CmdBox.Text)),savedtext,person)
- elseif (CmdBox.Text:sub(1,6) == "bring ") then
- game.ReplicatedStorage.AdminEvent:FireServer("bring",CmdBox.Text:sub(7, string.len(CmdBox.Text)),savedtext,person)
- elseif (CmdBox.Text:sub(1,4) == "fly ") then
- game.ReplicatedStorage.AdminEvent:FireServer("fly",CmdBox.Text:sub(5, string.len(CmdBox.Text)),savedtext,person)
- elseif (CmdBox.Text:sub(1,4) == "ban ") then
- game.ReplicatedStorage.AdminEvent:FireServer("ban",CmdBox.Text:sub(5, string.len(CmdBox.Text)),savedtext,person)
- elseif (CmdBox.Text:sub(1,6) == "unban ") then
- game.ReplicatedStorage.AdminEvent:FireServer("noban",CmdBox.Text:sub(7, string.len(CmdBox.Text)),savedtext,person)
- end
- end
- end)
- SpectateButton.MouseButton1Down:Connect(function()
- if spectating ~= false then
- SpectateFrame.Visible = false
- game.Workspace.Camera.CameraSubject = Player.Character.Humanoid
- spectating = false
- end
- end)
- end))
- Frame12.Name = "SpectateFrame"
- Frame12.Parent = ScreenGui8
- Frame12.Position = UDim2.new(0.800000012, 0, 0.600000024, 0)
- Frame12.Visible = false
- Frame12.Size = UDim2.new(0.150000006, 0, 0.300000012, 0)
- Frame12.BackgroundColor = BrickColor.new("Really black")
- Frame12.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame12.BackgroundTransparency = 0.5
- Frame12.BorderSizePixel = 0
- TextLabel13.Name = "Title"
- TextLabel13.Parent = Frame12
- TextLabel13.Size = UDim2.new(1, 0, 0.200000003, 0)
- TextLabel13.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel13.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel13.BackgroundTransparency = 1
- TextLabel13.Font = Enum.Font.SourceSansLight
- TextLabel13.FontSize = Enum.FontSize.Size14
- TextLabel13.Text = "Spectate"
- TextLabel13.TextColor = BrickColor.new("Institutional white")
- TextLabel13.TextColor3 = Color3.new(1, 1, 1)
- TextLabel13.TextScaled = true
- TextLabel13.TextSize = 14
- TextLabel13.TextWrap = true
- TextLabel13.TextWrapped = true
- TextLabel14.Name = "Desc"
- TextLabel14.Parent = Frame12
- TextLabel14.Position = UDim2.new(0, 0, 0.200000003, 0)
- TextLabel14.Size = UDim2.new(1, 0, 0.400000006, 0)
- TextLabel14.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel14.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel14.BackgroundTransparency = 1
- TextLabel14.Font = Enum.Font.SourceSansLight
- TextLabel14.FontSize = Enum.FontSize.Size14
- TextLabel14.Text = "You are currently spectating. Click me to close spectating mode"
- TextLabel14.TextColor = BrickColor.new("Institutional white")
- TextLabel14.TextColor3 = Color3.new(1, 1, 1)
- TextLabel14.TextScaled = true
- TextLabel14.TextSize = 14
- TextLabel14.TextWrap = true
- TextLabel14.TextWrapped = true
- TextButton15.Name = "Button"
- TextButton15.Parent = Frame12
- TextButton15.Position = UDim2.new(0, 0, 0.800000012, 0)
- TextButton15.Size = UDim2.new(1, 0, 0.200000003, 0)
- TextButton15.BackgroundColor = BrickColor.new("Lime green")
- TextButton15.BackgroundColor3 = Color3.new(0, 1, 0)
- TextButton15.BorderSizePixel = 0
- TextButton15.Font = Enum.Font.SourceSansLight
- TextButton15.FontSize = Enum.FontSize.Size14
- TextButton15.Text = "Me"
- TextButton15.TextColor = BrickColor.new("Really black")
- TextButton15.TextColor3 = Color3.new(0, 0, 0)
- TextButton15.TextScaled = true
- TextButton15.TextSize = 14
- TextButton15.TextWrap = true
- TextButton15.TextWrapped = true
- LocalScript16.Name = "Drag"
- LocalScript16.Parent = Frame12
- table.insert(cors,sandbox(LocalScript16,function()
- local UserInputService = game:GetService("UserInputService")
- local gui = script.Parent
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- end))
- Model17.Name = "ReplicatedStorage"
- Model17.Parent = Folder0
- RemoteEvent18.Name = "Warning"
- RemoteEvent18.Parent = Model17
- RemoteFunction19.Name = "FilteringFunction"
- RemoteFunction19.Parent = Model17
- Script20.Name = "AutoInstaller"
- Script20.Parent = Folder0
- table.insert(cors,sandbox(Script20,function()
- script.Parent.ReplicatedStorage.FilteringFunction.Parent = game.ReplicatedStorage
- script.Parent.ReplicatedStorage.Warning.Parent = game.ReplicatedStorage
- script.Parent.Server.BanActionInGame.Parent = game.ServerScriptService
- script.Parent.Server.BanHammerDatastore.Parent = game.ServerScriptService
- script.Parent.Server.Server.Parent = game.ServerScriptService
- script.Parent.StarterGui.NotifierClient.Parent = game.StarterGui
- script.Parent.StarterGui.AdminGui.Parent = game.StarterGui
- end))
- Model21.Name = "Lighting"
- Model21.Parent = Folder0
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- script.Parent = Script20.Parent
- script.Parent.ReplicatedStorage.FilteringFunction.Parent = game.ReplicatedStorage
- script.Parent.ReplicatedStorage.Warning.Parent = game.ReplicatedStorage
- script.Parent.Server.BanActionInGame.Parent = game.ServerScriptService
- script.Parent.Server.BanHammerDatastore.Parent = game.ServerScriptService
- script.Parent.Server.Server.Parent = game.ServerScriptService
- script.Parent.StarterGui.NotifierClient.Parent = game.StarterGui
- script.Parent.StarterGui.AdminGui.Parent = game.StarterGui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement