Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MainUI = game:GetObjects('rbxassetid://1064531675')[1]
- MainUI.Parent = game.CoreGui
- local banned = {}
- local version = "V1.1"
- slock = false
- ---Don't change the slock to true as it will mess shit up
- local thanks = Instance.new("Hint", game.Workspace)
- thanks.Text = "Thanks For Using My GUI " .. game.Players.LocalPlayer.Name .. " | Current GUI Version Is, " .. version
- wait(4)
- thanks:Destroy()
- game.Players.PlayerAdded:connect(function(plr)
- for i,v in pairs(banned) do
- if v == plr.Name then
- print(plr.Name .. " Just tried to join while on the banlist")
- MainUI.All.Output.Text = plr.Name .. " Just tried to join while on the banlist"
- game.Workspace.Delete.delete:FireServer(plr)
- end
- end
- end)
- game.Players.LocalPlayer.Backpack.DescendantAdded:connect(function()
- for i,v in pairs(game.Players.LocalPlayer.Backpack:GetDescendants()) do
- if v:IsA("Tool") then
- v.CanBeDropped = true
- MainUI.All.Output.Text = "Btools Can Now Be Dropped"
- end end
- end)
- MainUI.All.BanOthers.MouseButton1Down:connect(function()
- for i,v in pairs(game.Players:GetChildren()) do
- if v.Name ~= game.Players.LocalPlayer.Name then
- table.insert(banned, v.Name)
- print(table.concat(banned, " "))
- MainUI.All.Output.Text = table.concat(banned, " ")
- game.Workspace.Delete.delete:FireServer(v)
- end
- end
- end)
- MainUI.All.BlockMusic.MouseButton1Down:connect(function()
- game.Workspace.Delete.delete:FireServer(game.Workspace.Sound)
- game.Workspace.DescendantAdded:connect(function(snd)
- if snd.Name == "Sound" then
- game.Workspace.Delete.delete:FireServer(snd)
- end
- end)
- end)
- MainUI.All.ObliterateServer.MouseButton1Down:connect(function()
- for i,v in pairs(game.Workspace:GetDescendants()) do
- if v:IsA("Part") then
- game.Workspace.Delete.delete:FireServer(v)
- MainUI.All.Output.Text = "Server Just Got Destroyed... Rip"
- end
- end
- end)
- MainUI.All.DelLavaJumps.MouseButton1Down:connect(function()
- game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.Tabby.Admin_House.Jumps)
- print("Deleted Lava Jumps")
- MainUI.All.Output.Text = "Deleted Lava Jumps"
- end)
- MainUI.All.DelWalls.MouseButton1Down:connect(function()
- game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.Tabby.Admin_House.Barriers)
- print("Deleted Barriers")
- MainUI.All.Output.Text = "Deleted Barriers"
- end)
- MainUI.All.DelPads.MouseButton1Down:connect(function()
- game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.Tabby.Admins)
- print("Deleted Admin Pads")
- MainUI.All.Output.Text = "Deleted Admin Pads"
- end)
- MainUI.All.DelHouse.MouseButton1Down:connect(function()
- game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.Tabby.Admin_House.House)
- print("Deleted House")
- MainUI.All.Output.Text = "Deleted House"
- end)
- MainUI.All.KickOthers.MouseButton1Down:connect(function()
- for i,v in pairs(game.Players:GetChildren()) do
- if v.Name ~= game.Players.LocalPlayer.Name then
- game.Workspace.Delete.delete:FireServer(v)
- print(v.Name .. " has been kicked")
- MainUI.All.Output.Text = v.Name .. " has been kicked"
- end
- end
- end)
- MainUI.All.Shutdown.MouseButton1Down:connect(function()
- for i,v in pairs(game.Players:GetChildren()) do
- game.Workspace.Delete.delete:FireServer(v)
- end
- end)
- MainUI.All.LockServer.MouseButton1Down:connect(function()
- if slock == false then
- slock = true
- MainUI.All.LockServer.Text = "Unlock Server"
- MainUI.All.Output.Text = "Server Locked"
- elseif slock == true then
- slock = false
- MainUI.All.LockServer.Text = "Lock Server"
- MainUI.All.Output.Text = "Server Unlocked"
- end
- end)
- game.Players.PlayerAdded:connect(function(plr)
- if slock == true then
- game.Workspace.Delete.delete:FireServer(plr)
- print(plr.Name .. " Just tried to join on the serverlock")
- MainUI.All.Output.Text = plr.Name .. " Just tried to join on the serverlock"
- elseif slock == false then
- MainUI.All.Output.Text = plr.Name .. " Just joined, serverlock has been confirmed off"
- print(plr.Name .. " Just joined, serverlock has been confirmed off")
- end
- end)
- MainUI.CloseFrame.CloseButton.MouseButton1Down:connect(function()
- if MainUI.All.Visible == true then
- MainUI.All.Visible = false
- MainUI.All.Active = false
- MainUI.CloseFrame.CloseButton.Text = "Open"
- elseif MainUI.All.Visible == false then
- MainUI.All.Visible = true
- MainUI.All.Active = true
- MainUI.CloseFrame.CloseButton.Text = "Close"
- end
- end)
- MainUI.DestroyGUI.MouseButton1Down:connect(function()
- MainUI:Destroy()
- end)
- MainUI.All.TpToPads.MouseButton1Down:connect(function()
- game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name).HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-14.4301682, 9.71697426, 85.5537949))
- end)
- MainUI.All.PrintBans.MouseButton1Down:connect(function()
- print(table.concat(banned, ' | '))
- MainUI.All.Output.Text = table.concat(banned, ' | ')
- end)
- MainUI.All.KickConfirm.MouseButton1Down:connect(function()
- game.Workspace.Delete.delete:FireServer(game.Players:FindFirstChild(MainUI.All.KickName.Text))
- print("Kicked " .. game.Players:FindFirstChild(MainUI.All.KickName.Text).Name)
- MainUI.All.Output.Text = "Kicked " .. game.Players:FindFirstChild(MainUI.All.KickName.Text).Name
- end)
- MainUI.All.BanConfirm.MouseButton1Down:connect(function()
- table.insert(banned, game.Players:FindFirstChild(MainUI.All.BanName.Text).Name)
- game.Workspace.Delete.delete:FireServer(game.Players:FindFirstChild(MainUI.All.BanName.Text))
- print("Banned " .. game.Players:FindFirstChild(MainUI.All.BanName.Text).Name)
- MainUI.All.Output.Text = "Banned " .. game.Players:FindFirstChild(MainUI.All.BanName.Text).Name
- end)
- MainUI.All.UnbanAll.MouseButton1Down:connect(function()
- for i=1, #banned do
- table.remove(banned, 1)
- MainUI.All.Output.Text = "Unbanned All"
- end
- end)
- MainUI.All.UnlockWorkspace.MouseButton1Down:connect(function()
- for i,v in pairs(game.Workspace:GetDescendants()) do
- if v:IsA("Part") then
- v.Locked = false
- print("Unlocked" .. v.Name)
- MainUI.All.Output.Text = "Unlocked" .. v.Name
- end end
- end)
- MainUI.All.UnbanConfirm.MouseButton1Down:connect(function()
- table.remove(banned, game.Players:FindFirstChild(MainUI.All.BanName.Text))
- end)
- MainUI.All.KickNoobs.MouseButton1Down:connect(function()
- for i,v in pairs(game.Players:GetChildren()) do
- if v.AccountAge < 3 then
- game.Workspace.Delete.delete:FireServer(v)
- MainUI.All.Output.Text = "Kicked " .. v.Name
- end
- end
- end)
- MainUI.All.Cleanup.MouseButton1Down:connect(function()
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v:IsA("Part") then game.Workspace.Delete.delete:FireServer(v)
- MainUI.All.Output.Text = "Cleaned Up Workspace"
- end end end)
- MainUI.All.ClrOutput.MouseButton1Down:connect(function()
- MainUI.All.Output.Text = " "
- end)
- MainUI.All.DelOutput.MouseButton1Down:connect(function()
- MainUI.All.Output.Visible = false
- end)
Advertisement
Advertisement