Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Prefix = ";"
- Notifications = true
- local ClientSound = Instance.new("Sound")
- ClientSound.SoundId = "http://www.roblox.com/asset/?id=2741270504"
- ClientSound.Volume = 2
- ClientSound.Parent = workspace
- ClientSound.PlaybackSpeed = 1
- ClientSound:Play()
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local TextButton = Instance.new("TextButton")
- local TextButton_2 = Instance.new("TextButton")
- -- Properties
- ScreenGui.Parent = game.CoreGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
- Frame.BorderColor3 = Color3.new(0, 0, 0)
- Frame.Position = UDim2.new(0.342884421, 0, 0.194006309, 0)
- Frame.Size = UDim2.new(0, 311, 0, 134)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
- TextLabel.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel.Size = UDim2.new(0, 311, 0, 50)
- TextLabel.Font = Enum.Font.GothamSemibold
- TextLabel.Text = "Ragdoll Engine Admin Loaded"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton.BorderColor3 = Color3.new(0, 0, 0)
- TextButton.Position = UDim2.new(0.530546606, 0, 0.626865685, 0)
- TextButton.Size = UDim2.new(0, 146, 0, 50)
- TextButton.Font = Enum.Font.GothamSemibold
- TextButton.Text = "OK"
- TextButton.TextColor3 = Color3.new(1, 1, 1)
- TextButton.TextScaled = true
- TextButton.TextSize = 14
- TextButton.TextWrapped = true
- TextButton_2.Parent = Frame
- TextButton_2.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton_2.BorderColor3 = Color3.new(0, 0, 0)
- TextButton_2.Position = UDim2.new(0, 0, 0.626865685, 0)
- TextButton_2.Size = UDim2.new(0, 146, 0, 50)
- TextButton_2.Font = Enum.Font.GothamSemibold
- TextButton_2.Text = "Commands"
- TextButton_2.TextColor3 = Color3.new(1, 1, 1)
- TextButton_2.TextScaled = true
- TextButton_2.TextSize = 14
- TextButton_2.TextWrapped = true
- TextButton.MouseButton1Click:connect(function()
- local ClientSound2 = Instance.new("Sound")
- ClientSound2.SoundId = "http://www.roblox.com/asset/?id=142916958"
- ClientSound2.Volume = 1
- ClientSound2.Parent = workspace
- ClientSound2.PlaybackSpeed = .94125
- ClientSound2:Play()
- for i=1,math.random(6,9) do
- Frame.BackgroundTransparency = Frame.BackgroundTransparency + .1
- TextButton.TextTransparency = TextButton.TextTransparency + .1
- TextButton_2.TextTransparency = TextButton_2.TextTransparency + .1
- wait()
- end
- game.CoreGui.ScreenGui:Destroy()
- end)
- TextButton_2.MouseButton1Click:connect(function()
- local ClientSound3 = Instance.new("Sound")
- ClientSound3.SoundId = "http://www.roblox.com/asset/?id=142916958"
- ClientSound3.Volume = 1
- ClientSound3.Parent = workspace
- ClientSound3.PlaybackSpeed = .94125
- ClientSound3:Play()
- print("Admin Commands")
- print(Prefix.."ban [Player]")
- print(Prefix.."fakeadmin [Player]")
- print(Prefix.."banreason [Reason]")
- print(Prefix.."mod [Player]")
- print(Prefix.."clearbans")
- print(Prefix.."shutdown")
- print(" ")
- print("Mod Commands")
- print(Prefix.."fakeadmin [Player]")
- print(Prefix.."banreason [Reason]")
- print(Prefix.."clearbans")
- print(" ")
- print("Player Commands")
- print(Prefix.."commands")
- print(" ")
- print("Local Commands")
- print(Prefix.."admin [Player")
- print(Prefix.."tp me [Player]")
- print(Prefix.."to [Player]")
- print(Prefix.."prefix [Prefix]")
- print(Prefix.."invisible me")
- print(Prefix.."visible me")
- print(Prefix.."dance me")
- print(Prefix.."flicker me")
- game:GetService("StarterGui"):SetCore("DeveloperConsoleVisible", true)
- end)
- game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players.LocalPlayer)
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Admin Loaded!";
- Text = "Say "..Prefix.."cmds to see the list of commands.";
- Icon = "rbxassetid://3069336086";
- Duration = 5;
- })
- --Credit to timeless for this part V
- function GetPlayer(String)
- local Found = {}
- local strl = String:lower()
- if strl == "all" then
- for i,v in pairs(game.Players:GetPlayers()) do
- table.insert(Found,v)
- end
- elseif strl == "others" then
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Name ~= game.Players.LocalPlayer.Name then
- table.insert(Found,v)
- end
- end
- elseif strl == "me" then
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Name == game.Players.LocalPlayer.Name then
- table.insert(Found,v)
- end
- end
- else
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Name:lower():sub(1, #String) == String:lower() then
- table.insert(Found,v)
- end
- end
- end
- return Found
- end
- function GetPlayer_Event(String)
- local Found = {}
- local strl = String:lower()
- if strl == "all" then
- for i,v in pairs(game.Players:GetPlayers()) do
- table.insert(Found,v.Name)
- end
- elseif strl == "others" then
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Name ~= game.Players.LocalPlayer.Name then
- table.insert(Found,v.Name)
- end
- end
- elseif strl == "me" then
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Name == game.Players.LocalPlayer.Name then
- table.insert(Found,v.Name)
- end
- end
- else
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Name:lower():sub(1, #String) == String:lower() then
- table.insert(Found,v.Name)
- end
- end
- end
- return Found
- end
- --End of credit ^
- Ban_Reason = ""
- for i,c in pairs(game.Players:GetChildren()) do
- c.Chatted:connect(function(msg)
- if msg == Prefix.."cmds" or msg == Prefix.."commands" then
- game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Mod Commands: "..Prefix.."banreason [Reason] | "..Prefix.."clearbans | "..Prefix.."fakeadmin [Player] | ".."Admin Commands | "..Prefix.."ban [Player] | "..Prefix.."shutdown | "..Prefix.."mod [Player]", "All")
- end
- end)
- end
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if string.sub(msg,1,12) == (Prefix.."banreason ") then
- local BanReason = msg:sub(13, #msg)
- Ban_Reason = BanReason
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "";
- Text = "The ban reason is now ".."`"..Ban_Reason.."`.";
- Icon = "rbxassetid://3069336086";
- Duration = 5;
- })
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if string.sub(msg,1,8) == (Prefix.."prefix ") then
- local xprefix = msg:sub(9, #msg)
- Prefix = xprefix
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "";
- Text = "The prefix is now "..Prefix;
- Icon = "rbxassetid://3069336086";
- Duration = 5;
- })
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg == Prefix.."invisible" or msg == Prefix.."invisible me" then
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "";
- Text = "You are now invisible.";
- Icon = "rbxassetid://3069336086";
- Duration = 5;
- })
- game.ReplicatedStorage.Events.Invisible:FireServer(true)
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg == Prefix.."visible" or msg == Prefix.."visible me" then
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "";
- Text = "You are now visible.";
- Icon = "rbxassetid://3069336086";
- Duration = 5;
- })
- game.ReplicatedStorage.Events.Invisible:FireServer(false)
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg == Prefix.."flicker" or msg == Prefix.."flicker me" then
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "";
- Text = "Reset to stop flickering.";
- Icon = "rbxassetid://3069336086";
- Duration = 10;
- Button1 = "Okay"
- })
- repeat
- game.ReplicatedStorage.Events.Invisible:FireServer(true)
- game:GetService("RunService").Stepped:wait()
- game.ReplicatedStorage.Events.Invisible:FireServer(false)
- game:GetService("RunService").Stepped:wait()
- until game.Players.LocalPlayer.Character.Humanoid.Health == 0
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg == Prefix.."dance" or msg == Prefix.."dance me" then
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "";
- Text = "Reset to stop dancing.";
- Icon = "rbxassetid://3069336086";
- Duration = 10;
- Button1 = "Okay"
- })
- repeat
- game.ReplicatedStorage.Events.RagdollState:FireServer(false)
- game:GetService("RunService").Stepped:wait()
- game.ReplicatedStorage.Events.RagdollState:FireServer(true)
- game:GetService("RunService").Stepped:wait()
- until game.Players.LocalPlayer.Character.Humanoid.Health == 0
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if string.sub(msg,1,11) == (Prefix.."fakeadmin ") then
- for i,v in pairs(GetPlayer_Event(string.sub(msg, 12))) do
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "";
- Text = "You have gave "..v.." a fake admin nametag.";
- Icon = "rbxassetid://3069336086";
- Duration = 5;
- })
- game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players[v])
- end
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if string.sub(msg,1,5) == (Prefix.."ban ") then
- for i,v in pairs(GetPlayer_Event(string.sub(msg, 6))) do
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "";
- Text = "You have banned "..v.." from the game.";
- Icon = "rbxassetid://3069336086";
- Duration = 5;
- })
- game.ReplicatedStorage.Events.KickCommand:FireServer(game.Players[v], Ban_Reason)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg == Prefix.."shutdown" then
- game.Players:Chat(Prefix.."banreason This game has shutdown")
- game.Players:Chat(Prefix.."ban all")
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg == Prefix.."clearbans" then
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "";
- Text = "Bans successfully cleared.";
- Icon = "rbxassetid://3069336086";
- Duration = 5;
- })
- clearedbans = true
- game:GetService("RunService").Stepped:wait()
- clearedbans = false
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if string.sub(msg,1,7) == (Prefix.."tp me ") then
- for i,v in pairs(GetPlayer_Event(string.sub(msg, 8))) do
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "";
- Text = "You have teleported to "..v..".";
- Icon = "rbxassetid://3069336086";
- Duration = 5;
- })
- game.ReplicatedStorage.Events.TeleportToPlayer:FireServer(game.Players[v])
- end
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if string.sub(msg,1,4) == (Prefix.."to ") then
- for i,v in pairs(GetPlayer_Event(string.sub(msg, 5))) do
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "";
- Text = "You have teleported to "..v..".";
- Icon = "rbxassetid://3069336086";
- Duration = 5;
- })
- game.ReplicatedStorage.Events.TeleportToPlayer:FireServer(game.Players[v])
- end
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg == Prefix.."cmds" or msg == Prefix.."commands" then
- print("Admin Commands")
- print(Prefix.."ban [Player]")
- print(Prefix.."fakeadmin [Player]")
- print(Prefix.."BanReason [Reason]")
- print(Prefix.."mod [Player]")
- print(Prefix.."clearbans")
- print(Prefix.."shutdown")
- print(" ")
- print("Mod Commands")
- print(Prefix.."fakeadmin [Player]")
- print(Prefix.."banreason [Reason]")
- print(Prefix.."clearbans")
- print(" ")
- print("Player Commands")
- print(Prefix.."commands")
- print(" ")
- print("Local Commands")
- print(Prefix.."admin [Player")
- print(Prefix.."tp me [Player]")
- print(Prefix.."to [Player]")
- print(Prefix.."prefix [Prefix]")
- print(Prefix.."invisible me")
- print(Prefix.."visible me")
- print(Prefix.."dance me")
- print(Prefix.."flicker me")
- game:GetService("StarterGui"):SetCore("DeveloperConsoleVisible", true)
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if string.sub(msg,1,5) == (Prefix.."mod ") then
- for i,b in pairs(GetPlayer(string.sub(msg, 6))) do
- game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(b)
- b.Chatted:connect(function(msg)
- if msg == Prefix.."clearbans" then
- clearedbans = true
- game:GetService("RunService").Stepped:wait()
- clearedbans = false
- end
- end)
- b.Chatted:connect(function(msg)
- if string.sub(msg,1,11) == (Prefix.."fakeadmin ") then
- for i,v in pairs(GetPlayer_Event(string.sub(msg, 12))) do
- game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players[v])
- end
- end
- end)
- b.Chatted:connect(function(msg)
- if string.sub(msg,1,12) == (Prefix.."banreason ") then
- local BanReason = msg:sub(13, #msg)
- Ban_Reason = BanReason
- end
- end)
- end
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if string.sub(msg,1,7) == (Prefix.."admin ") then
- for i,a in pairs(GetPlayer(string.sub(msg, 8))) do
- game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(a)
- a.Chatted:connect(function(msg)
- if msg == Prefix.."shutdown" then
- game.Players:Chat(Prefix.."banreason This game has shutdown")
- game.Players:Chat(Prefix.."ban all")
- end
- end)
- a.Chatted:connect(function(msg)
- if msg == Prefix.."clearbans" then
- clearedbans = true
- game:GetService("RunService").Stepped:wait()
- clearedbans = false
- end
- end)
- a.Chatted:connect(function(msg)
- if string.sub(msg,1,11) == (Prefix.."fakeadmin ") then
- for i,v in pairs(GetPlayer_Event(string.sub(msg, 12))) do
- game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players[v])
- end
- end
- end)
- a.Chatted:connect(function(msg)
- if string.sub(msg,1,5) == (Prefix.."ban ") then
- for i,v in pairs(GetPlayer_Event(string.sub(msg, 6))) do
- game.ReplicatedStorage.Events.KickCommand:FireServer(game.Players[v], Ban_Reason)
- end
- end
- end)
- a.Chatted:connect(function(msg)
- if string.sub(msg,1,12) == (Prefix.."banreason ") then
- local BanReason = msg:sub(13, #msg)
- Ban_Reason = BanReason
- end
- end)
- a.Chatted:connect(function(msg)
- if string.sub(msg,1,5) == (Prefix.."mod ") then
- for i,n in pairs(GetPlayer(string.sub(msg, 6))) do
- game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(n)
- n.Chatted:connect(function(msg)
- if msg == Prefix.."clearbans" then
- clearedbans = true
- game:GetService("RunService").Stepped:wait()
- clearedbans = false
- end
- end)
- n.Chatted:connect(function(msg)
- if string.sub(msg,1,11) == (Prefix.."fakeadmin ") then
- for i,v in pairs(GetPlayer_Event(string.sub(msg, 12))) do
- game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players[v])
- end
- end
- end)
- n.Chatted:connect(function(msg)
- if string.sub(msg,1,12) == (Prefix.."banreason ") then
- local BanReason = msg:sub(13, #msg)
- Ban_Reason = BanReason
- end
- end)
- end
- end
- end)
- end
- elseif Notifications == false then
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if string.sub(msg,1,12) == (Prefix.."banreason ") then
- local BanReason = msg:sub(13, #msg)
- Ban_Reason = BanReason
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if string.sub(msg,1,8) == (Prefix.."prefix ") then
- local xprefix = msg:sub(9, #msg)
- Prefix = xprefix
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg == Prefix.."invisible" or msg == Prefix.."invisible me" then
- game.ReplicatedStorage.Events.Invisible:FireServer(true)
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg == Prefix.."visible" or msg == Prefix.."visible me" then
- game.ReplicatedStorage.Events.Invisible:FireServer(false)
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg == Prefix.."flicker" or msg == Prefix.."flicker me" then
- repeat
- game.ReplicatedStorage.Events.Invisible:FireServer(true)
- game:GetService("RunService").Stepped:wait()
- game.ReplicatedStorage.Events.Invisible:FireServer(false)
- game:GetService("RunService").Stepped:wait()
- until game.Players.LocalPlayer.Character.Humanoid.Health == 0
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg == Prefix.."dance" or msg == Prefix.."dance me" then
- repeat
- game.ReplicatedStorage.Events.RagdollState:FireServer(false)
- game:GetService("RunService").Stepped:wait()
- game.ReplicatedStorage.Events.RagdollState:FireServer(true)
- game:GetService("RunService").Stepped:wait()
- until game.Players.LocalPlayer.Character.Humanoid.Health == 0
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if string.sub(msg,1,11) == (Prefix.."fakeadmin ") then
- for i,v in pairs(GetPlayer_Event(string.sub(msg, 12))) do
- game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players[v])
- end
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if string.sub(msg,1,5) == (Prefix.."ban ") then
- for i,v in pairs(GetPlayer_Event(string.sub(msg, 6))) do
- game.ReplicatedStorage.Events.KickCommand:FireServer(game.Players[v], Ban_Reason)
- end
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg == Prefix.."shutdown" then
- game.Players:Chat(Prefix.."banreason This game has shutdown")
- game.Players:Chat(Prefix.."ban all")
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg == Prefix.."clearbans" then
- clearedbans = true
- game:GetService("RunService").Stepped:wait()
- clearedbans = false
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if string.sub(msg,1,7) == (Prefix.."tp me ") then
- for i,v in pairs(GetPlayer_Event(string.sub(msg, 8))) do
- game.ReplicatedStorage.Events.TeleportToPlayer:FireServer(game.Players[v])
- end
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if string.sub(msg,1,4) == (Prefix.."to ") then
- for i,v in pairs(GetPlayer_Event(string.sub(msg, 5))) do
- game.ReplicatedStorage.Events.TeleportToPlayer:FireServer(game.Players[v])
- end
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg == Prefix.."cmds" or msg == Prefix.."commands" then
- print("Admin Commands")
- print(Prefix.."ban [Player]")
- print(Prefix.."fakeadmin [Player]")
- print(Prefix.."BanReason [Reason]")
- print(Prefix.."mod [Player]")
- print(Prefix.."clearbans")
- print(Prefix.."shutdown")
- print(" ")
- print("Mod Commands")
- print(Prefix.."fakeadmin [Player]")
- print(Prefix.."BanReason [Reason]")
- print(Prefix.."clearbans")
- print(" ")
- print("Player Commands")
- print(Prefix.."commands")
- print(" ")
- print("Local Commands")
- print(Prefix.."admin [Player")
- print(Prefix.."tp me [Player]")
- print(Prefix.."to [Player]")
- print(Prefix.."prefix [Prefix]")
- print(Prefix.."invisible me")
- print(Prefix.."visible me")
- print(Prefix.."dance me")
- print(Prefix.."flicker me")
- game:GetService("StarterGui"):SetCore("DeveloperConsoleVisible", true)
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if string.sub(msg,1,5) == (Prefix.."mod ") then
- for i,b in pairs(GetPlayer(string.sub(msg, 6))) do
- game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(b)
- b.Chatted:connect(function(msg)
- if msg == Prefix.."clearbans" then
- clearedbans = true
- game:GetService("RunService").Stepped:wait()
- clearedbans = false
- end
- end)
- b.Chatted:connect(function(msg)
- if string.sub(msg,1,11) == (Prefix.."fakeadmin ") then
- for i,v in pairs(GetPlayer_Event(string.sub(msg, 12))) do
- game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players[v])
- end
- end
- end)
- b.Chatted:connect(function(msg)
- if string.sub(msg,1,12) == (Prefix.."banreason ") then
- local BanReason = msg:sub(13, #msg)
- Ban_Reason = BanReason
- end
- end)
- end
- end
- end)
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if string.sub(msg,1,7) == (Prefix.."admin ") then
- for i,a in pairs(GetPlayer(string.sub(msg, 8))) do
- game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(a)
- a.Chatted:connect(function(msg)
- if msg == Prefix.."shutdown" then
- game.Players:Chat(Prefix.."banreason This game has shutdown")
- game.Players:Chat(Prefix.."ban all")
- end
- end)
- a.Chatted:connect(function(msg)
- if msg == Prefix.."clearbans" then
- clearedbans = true
- game:GetService("RunService").Stepped:wait()
- clearedbans = false
- end
- end)
- a.Chatted:connect(function(msg)
- if string.sub(msg,1,11) == (Prefix.."fakeadmin ") then
- for i,v in pairs(GetPlayer_Event(string.sub(msg, 12))) do
- game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players[v])
- end
- end
- end)
- a.Chatted:connect(function(msg)
- if string.sub(msg,1,5) == (Prefix.."ban ") then
- for i,v in pairs(GetPlayer_Event(string.sub(msg, 6))) do
- game.ReplicatedStorage.Events.KickCommand:FireServer(game.Players[v], Ban_Reason)
- end
- end
- end)
- a.Chatted:connect(function(msg)
- if string.sub(msg,1,12) == (Prefix.."banreason ") then
- local BanReason = msg:sub(13, #msg)
- Ban_Reason = BanReason
- end
- end)
- a.Chatted:connect(function(msg)
- if string.sub(msg,1,5) == (Prefix.."mod ") then
- for i,n in pairs(GetPlayer(string.sub(msg, 6))) do
- game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(n)
- n.Chatted:connect(function(msg)
- if msg == Prefix.."clearbans" then
- clearedbans = true
- game:GetService("RunService").Stepped:wait()
- clearedbans = false
- end
- end)
- n.Chatted:connect(function(msg)
- if string.sub(msg,1,11) == (Prefix.."fakeadmin ") then
- for i,v in pairs(GetPlayer_Event(string.sub(msg, 12))) do
- game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players[v])
- end
- end
- end)
- n.Chatted:connect(function(msg)
- if string.sub(msg,1,12) == (Prefix.."banreason ") then
- local BanReason = msg:sub(13, #msg)
- Ban_Reason = BanReason
- end
- end)
- end
- end
- end)
- end
- end
- end)
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement