Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local plr = game.Players.SebTDZ500
- local Screen = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Title = Instance.new("TextButton")
- local Commands = Instance.new("Frame")
- local b1 = Instance.new("TextButton")
- local b2 = Instance.new("TextButton")
- -- Properties
- Screen.Name = "Screen"
- Screen.Parent = plr.PlayerGui
- Screen.ResetOnSpawn = false
- Frame.Parent = Screen
- Frame.BackgroundColor3 = Color3.new(0, 200, 200)
- Frame.BackgroundTransparency = 0
- Frame.Position = UDim2.new(0.25, 0, 0, 0)
- Frame.Size = UDim2.new(0.5, 0, 0.5, 0)
- Frame.BorderSizePixel = 5
- Frame.Active = false
- Title.Parent = Frame
- Title.Text = "Server Controls"
- Title.Font = Enum.Font.SciFi
- Title.TextSize = 35
- Title.BackgroundColor3 = Color3.new(0, 0, 200)
- Title.BackgroundTransparency = 0
- Title.Position = UDim2.new(0, 0, 0, 0)
- Title.Size = UDim2.new(1, 0, 0.1, 0)
- Title.BorderSizePixel = 3
- Title.Active = false
- --Commands
- Commands.Parent = Frame
- Commands.BackgroundColor3 = Color3.new(0, 0, 100)
- Commands.BackgroundTransparency = 0.5
- Commands.Position = UDim2.new(0, 0, 0.1, 0)
- Commands.Size = UDim2.new(1, 0, 0.9, 0)
- Commands.BorderSizePixel = 0
- Commands.Active = false
- b1.Parent = Commands
- b1.Text = "Freeze Others"
- b1.Font = Enum.Font.SciFi
- b1.TextSize = 35
- b1.BackgroundColor3 = Color3.new(0, 0, 200)
- b1.BackgroundTransparency = 0
- b1.Position = UDim2.new(0.025, 0, 0.05, 0)
- b1.Size = UDim2.new(0.3, 0, 0.1, 0)
- b1.BorderSizePixel = 1.5
- b1.Active = false
- b2.Parent = Commands
- b2.Text = "Remove Workspace"
- b2.Font = Enum.Font.SciFi
- b2.TextSize = 35
- b2.BackgroundColor3 = Color3.new(0, 0, 200)
- b2.BackgroundTransparency = 0
- b2.Position = UDim2.new(0.35, 0, 0.05, 0)
- b2.Size = UDim2.new(0.3, 0, 0.1, 0)
- b2.BorderSizePixel = 1.5
- b2.Active = false
- -- Scripts / Functions
- Title.MouseButton1Down:connect(function()
- if Commands.Visible == true then
- Commands.Visible = false
- Commands.Position = UDim2.new(0, 0, 0, 0)
- Commands.Size = UDim2.new(0, 0, 0, 0)
- Frame.Size = UDim2.new(0.5, 0, 0.05, 0)
- Title.Size = UDim2.new(1, 0, 1, 0)
- else
- Commands.Visible = true
- Commands.Position = UDim2.new(0, 0, 0.1, 0)
- Commands.Size = UDim2.new(1, 0, 0.9, 0)
- Title.Size = UDim2.new(1, 0, 0.1, 0)
- Frame.Size = UDim2.new(0.5, 0, 0.5, 0)
- Title.Size = UDim2.new(1, 0, 0.1, 0)
- end
- end)
- b1.MouseButton1Down:connect(function()
- for i, Player in pairs(game.Players:GetChildren()) do
- if Player.Name == plr.Name then
- print("Freezed Players")
- else
- if Player.Character:FindFirstChild("HumanoidRootPart") then
- Player.Character:FindFirstChild("HumanoidRootPart").Anchored = true
- end
- end
- end
- end)
- b2.MouseButton1Down:connect(function()
- for i, Child in pairs(game.Workspace:GetChildren()) do
- if Child.Name == "Terrain" then
- Child:Clear()
- else
- Child:Destroy()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment