Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Say "-cmds" for commands. Change 0Care to your name.
- local Admino = "0Care"
- game.Players[Admino].Chatted:Connect(function(Message)
- if Message ~= nil then
- if Message == "-shutdown" then
- for i,v in pairs(game.Players:GetPlayers()) do
- if v:IsA("Player") then
- v:Kick("Server Shutdown")
- end
- end
- end
- end
- end)
- game.Players[Admino].Chatted:Connect(function(Message)
- if Message ~= nil then
- if Message == "-kickothers" then
- for i,v in pairs(game.Players:GetPlayers()) do
- if v:IsA("Player") then
- if v.Name ~= game.Players[Admino].Name then
- v:Kick("Kicked")
- end
- end
- end
- end
- end
- end)
- game.Players[Admino].Chatted:Connect(function(Message)
- if Message ~= nil then
- if Message == "-lock" then
- local m = Instance.new("Message" , workspace)
- m.Text = "Server Locked"
- repeat
- for i,v in pairs(game.Players:GetPlayers()) do
- if v:IsA("Player") then
- if v.Name ~= Admino then
- v:Kick("Server Locked")
- end end end
- wait(0.3)
- until false
- end
- end
- end)
- game.Players[Admino].Chatted:Connect(function(Message)
- if Message ~= nil then
- if Message.lower(string.sub(Message, 1, 5)) == "-kick" then
- local Target = game.Players:FindFirstChild(string.sub(Message, 7))
- Target:Kick()
- end
- end
- end)
- game.Players[Admino].Chatted:Connect(function(Message)
- if Message ~= nil then
- if Message.lower(string.sub(Message, 1, 4)) == "-ban" then
- local Target = game.Players:FindFirstChild(string.sub(Message, 6))
- repeat
- for i,v in pairs(game.Players:GetPlayers()) do
- if v:IsA("Player") then
- if v.Name == Target.Name then
- v:Kick("Banned!")
- end end end
- wait(0.3)
- until false
- end
- end
- end)
- game.Players[Admino].Chatted:Connect(function(Message)
- if Message ~= nil then
- if Message.lower(string.sub(Message, 1, 4)) == "-kill" then
- local Target = game.Players:FindFirstChild(string.sub(Message, 6))
- Target.Character.Humanoid.Health = 0
- end
- end
- end)
- game.Players[Admino].Chatted:Connect(function(Message)
- if Message ~= nil then
- if Message == "-cmds" then
- local ScreenGui = Instance.new("ScreenGui")
- local TextLabel = Instance.new("TextLabel")
- local TextLabel_2 = Instance.new("TextButton")
- ScreenGui.Parent = game.Players[Admino].PlayerGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- TextLabel.Parent = ScreenGui
- TextLabel.BackgroundColor3 = Color3.new(0.101961, 0.101961, 0.101961)
- TextLabel.BackgroundTransparency = 0.5
- TextLabel.Position = UDim2.new(0.200601801, 0, 0.192878336, 0)
- TextLabel.Size = UDim2.new(0, 373, 0, 419)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "You MUST use full name. The command prefix is - , The commands are -kill {player}, -ban {player}, -kick {player}, -kickothers , -lock , -shutdown"
- TextLabel.TextColor3 = Color3.new(0, 0, 0)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- TextLabel_2.Parent = ScreenGui
- TextLabel_2.BackgroundColor3 = Color3.new(1, 0, 0)
- TextLabel_2.Position = UDim2.new(0.419558668, 0, 0.118694365, 0)
- TextLabel_2.Size = UDim2.new(0, 55, 0, 50)
- TextLabel_2.Font = Enum.Font.SourceSans
- TextLabel_2.Text = "X"
- TextLabel_2.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_2.TextScaled = true
- TextLabel_2.TextSize = 14
- TextLabel_2.TextWrapped = true
- TextLabel_2.MouseButton1Click:Connect(function()
- TextLabel_2:Remove()
- TextLabel:Remove()
- end)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement