Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr.Chatted:connect(function(msg)
- if msg:lower():sub(0,3) == string.lower(Sentinel.Settings.pre.."c ") then
- if (IsAdmin(plr.Name)) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
- srv = true
- local mes = msg:sub(4)
- Say(plr, mes)
- srv = false
- end
- elseif msg:sub(0,6) == string.lower(Sentinel.Settings.pre.."kill ") then
- if (IsAdmin(plr.Name)) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
- --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,6).."&placeid="..game.PlaceId,2)
- for i,v in next, FindPlayer(plr, msg:sub(7))do
- v.Character:BreakJoints()
- end
- end
- elseif msg:lower():sub(0,5) == Sentinel.Settings.pre.."cmds" then
- local a = script.DataFolder.GUI.ListGUI:Clone()
- a.Parent = plr.PlayerGui
- a.Frame.Title.Text = "Commands: "
- local commands = {
- Sentinel.Settings.pre.."ranked Nonadmin+",
- Sentinel.Settings.pre.."kill (Target) Mod+",
- Sentinel.Settings.pre.."c (string) Mod+",
- Sentinel.Settings.pre.."cmds Nonadmin+",
- Sentinel.Settings.pre.."exe (code) SuperAdmin+",
- Sentinel.Settings.pre.."hexe (URL) SuperAdmin+",
- Sentinel.Settings.pre.."lexe (code) SuperAdmin+",
- Sentinel.Settings.pre.."lhexe (URL) SuperAdmin+",
- Sentinel.Settings.pre.."vape (target) Mod+",
- Sentinel.Settings.pre.."house Admin+",
- Sentinel.Settings.pre.."sword (target) Mod+",
- Sentinel.Settings.pre.."respawn (Target) Mod+",
- Sentinel.Settings.pre.."music (id) Mod+",
- Sentinel.Settings.pre.."nomusic Mod+",
- Sentinel.Settings.pre.."ban (Target)(Reason) Admin+",
- Sentinel.Settings.pre.."prevnames (target) Mod+",
- Sentinel.Settings.pre.."age (target)Mod+",
- Sentinel.Settings.pre.."kick (target) Mod+",
- Sentinel.Settings.pre.."admin (target) (Reason) SuperAdmin+",
- Sentinel.Settings.pre.."m (string)Mod+",
- Sentinel.Settings.pre.."char (target) (AnyUserName) Mod+",
- Sentinel.Settings.pre.."unchar (target) Mod+",
- Sentinel.Settings.pre.."speed (target) (int) Mod+",
- Sentinel.Settings.pre.."god (target) Mod+",
- Sentinel.Settings.pre.."ungod (target) Mod+",
- Sentinel.Settings.pre.."bring (target) Mod+",
- Sentinel.Settings.pre.."goto (target) Mod+",
- Sentinel.Settings.pre.."search (music name) Mod+",
- "getpre--<Lowest Rank: Nonadmin"
- }
- local asd = 0
- for i,v in pairs(commands) do
- local position = 53*asd
- local c = a.Frame.ScrollingFrame.Title:Clone()
- c.Parent = a.Frame.ScrollingFrame
- c.Position = UDim2.new(0,0,0, position)
- c.Text = commands[i]
- asd = asd + 1
- a.Frame.ScrollingFrame.CanvasSize = UDim2.new(0,0,0,asd*56)
- wait()
- end
- elseif msg:lower():sub(0,7) == string.lower(Sentinel.Settings.pre.."ranked") then
- local a = script.DataFolder.GUI.ListGUI:Clone()
- a.Parent = plr.PlayerGui
- a.Frame.Title.Text = "Ranked players: "
- local asd = 0
- for i,v in pairs(Sentinel.Ranked) do
- local position = 53*asd
- local c = a.Frame.ScrollingFrame.Title:Clone()
- c.Parent = a.Frame.ScrollingFrame
- c.Position = UDim2.new(0,0,0, position)
- asd = asd + 1
- a.Frame.ScrollingFrame.CanvasSize = UDim2.new(0,0,0,asd*56)
- c.Text = Sentinel.Ranked[i].Name.." | "..Sentinel.Ranked[i].Rank.." | "..Sentinel.Ranked[i].Reason
- wait()
- end
- elseif msg:sub(0,8) == Sentinel.Settings.pre.."search " then
- if IsAdmin(plr.Name) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
- local a = script.DataFolder.GUI.SoundGUI:Clone()
- a.Parent = plr.PlayerGui
- a.Frame.Title.Text = "Results: "
- local asd = -1
- for i,v in pairs(DecodeStuff(msg:sub(9))) do
- asd = asd+1
- for _,adasd in pairs(v) do
- local position = 53*asd
- local c = a.Frame.ScrollingFrame.Title:Clone()
- c.Parent = a.Frame.ScrollingFrame
- c.Position = UDim2.new(0,0,0, position)
- c.Name = v.Name
- c.Text = v.Name.." | "..v.AssetId
- a.Frame.ScrollingFrame.CanvasSize = UDim2.new(0,0,0,asd*56)
- c.MouseButton1Down:connect(function()
- for id,vd in pairs(Workspace:GetChildren()) do
- if vd:IsA("Sound") then
- vd:Destroy()
- end
- end
- local s = Instance.new("Sound", Workspace)
- s.SoundId = "http://www.roblox.com/asset/?id="..v.AssetId
- s.Volume = 1
- s.Looped = true
- s:Play()
- end)
- end
- end
- end
- elseif msg:sub(0,6) == Sentinel.Settings.pre.."heal " then
- if IsAdmin(plr.Name) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
- -- http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,6).."&placeid="..game.PlaceId,2)
- for i,v in next, FindPlayer(plr, msg:sub(7))do
- v.Character.Humanoid.Health = v.Character.Humanoid.MaxHealth
- end
- end
- elseif msg:sub(0,6) == Sentinel.Settings.pre.."kick " then
- if (IsAdmin(plr.Name)) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
- local target = msg:sub(7)
- --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,6).."&placeid="..game.PlaceId,2)
- for i,v in next, FindPlayer(plr, target)do
- v:Kick("You have been kicked by: "..plr.Name)
- end
- end
- elseif msg:sub(0,5) == Sentinel.Settings.pre.."exe " then
- if IsOwner(plr.Name) or IsSoop(plr.Name)then
- -- http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,5).."&placeid="..game.PlaceId,2)
- SandboxCode(loadstring(msg:sub(6)))
- wait(.1)
- lcl = true
- Say(plr, "Executed Server Sided Script")
- lcl = false
- end
- elseif msg:sub(0,6) == Sentinel.Settings.pre.."hexe " then
- if IsOwner(plr.Name) or IsSoop(plr.Name) then
- --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,6).."&placeid="..game.PlaceId,2)
- local code = msg:sub(7)
- loadstring(http:GetAsync(code, false))()
- lcl = true
- Say(plr, "Executed server script through HTTP.")
- lcl = false
- end
- elseif msg:lower():sub(0,6) == "getpre" then
- lcl = true
- Say(plr, "The prefix is: "..Sentinel.Settings.pre)
- lcl = false
- elseif msg:sub(0,6) == Sentinel.Settings.pre.."lexe " then
- if IsOwner(plr.Name) or IsSoop(plr.Name) then
- --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,6).."&placeid="..game.PlaceId,2)
- local clone = script.Local:Clone()
- clone.Parent = plr.Backpack
- local ls = script.Loadstring:Clone()
- ls.Parent = clone
- local code = Instance.new("StringValue", clone)
- code.Name = "Code"
- code.Value = msg:sub(7)
- clone.Disabled = false
- lcl = true
- Say(plr, "Executed local script.")
- lcl = false
- end
- elseif msg:sub(0,7) == Sentinel.Settings.pre.."lhexe " then
- if IsOwner(plr.Name) or IsSoop(plr.Name) then
- local httpcode = http:GetAsync(msg:sub(8))
- --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,7).."&placeid="..game.PlaceId,2)
- NLS(httpcode, plr)
- lcl = true
- Say(plr, "Executed local script through HTTP.")
- lcl = false
- end
- elseif msg:sub(0,6) == Sentinel.Settings.pre.."mute " then
- if IsOwner(plr.Name) or IsSoop(plr.Name) then
- for i,v in next, FindPlayer(plr, msg:sub(7))do
- script.DataFolder.CommandLocals.MuteLocal:Clone().Parent = v.Backpack
- end
- end
- elseif msg:sub(0,8) == Sentinel.Settings.pre.."unmute " then
- if IsOwner(plr.Name) or IsSoop(plr.Name) then
- for i,v in next, FindPlayer(plr, msg:sub(7))do
- script.DataFolder.CommandLocals.UnmuteLocal:Clone().Parent = v.Backpack
- end
- end
- elseif msg:sub(0,6) == Sentinel.Settings.pre.."vape " then
- if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
- --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,6).."&placeid="..game.PlaceId,2)
- for i,v in next, FindPlayer(plr, msg:sub(7))do
- script.DataFolder.Tools.Vpen:Clone().Parent = v.Backpack
- end
- end
- elseif msg:sub(0,7) == Sentinel.Settings.pre.."sword " then
- if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
- --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,6).."&placeid="..game.PlaceId,2)
- for i,v in next, FindPlayer(plr, msg:sub(8))do
- script.DataFolder.Tools.Sword:Clone().Parent = v.Backpack
- end
- end
- elseif msg:sub(0,9) == Sentinel.Settings.pre.."respawn " then
- if (IsAdmin(plr.Name)) or (IsMod(plr.Name))or IsOwner(plr.Name) or IsSoop(plr.Name) then
- http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,9).."&placeid="..game.PlaceId,2)
- for i,v in next, FindPlayer(plr, msg:sub(10))do
- v:LoadCharacter()
- end
- end
- elseif msg:lower():sub(0,7) == Sentinel.Settings.pre.."music " then
- if (IsAdmin(plr.Name)) or (IsMod(plr.Name))or IsOwner(plr.Name) or IsSoop(plr.Name) then
- local sid = msg:sub(8)
- --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,7).."&placeid="..game.PlaceId,2)
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v:IsA("Sound") then v:Destroy()
- end
- end
- wait(1)
- local sound = Instance.new("Sound", game.Workspace)
- sound.SoundId = "http://www.roblox.com/asset/?id="..sid
- sound:Play()
- sound.Looped = true
- sound.Volume = 1
- end
- elseif msg:lower():sub(0,8) == Sentinel.Settings.pre.."nomusic" then
- if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v:IsA("Sound") then v:Destroy()
- end
- end
- for i,v in pairs(plr.PlayerGui:GetChildren()) do
- if v:IsA("Sound") then v:Destroy()
- end
- end
- end
- elseif msg:lower(0,8) == "lmusic " then
- if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
- local sid = msg:sub(9)
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v:IsA("Sound") then v:Destroy()
- end
- end
- wait(1)
- local sound = Instance.new("Sound", plr.PlayerGui)
- sound.SoundId = "http://www.roblox.com/asset/?id="..sid
- sound:Play()
- sound.Looped = true
- sound.Volume = 1
- end
- elseif msg:sub(0,11) == Sentinel.Settings.pre.."prevnames " then
- if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
- for i,v in next, FindPlayer(plr, msg:sub(12))do
- local prevnames = http:GetAsync("http://roblox-proxy.cf/proxy/api/Usernames?userId="..v.UserId, false)
- lcl = true
- Say(plr, prevnames)
- lcl = false
- end
- end
- elseif msg:sub(0,5) == Sentinel.Settings.pre.."age " then
- if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
- for i,v in next, FindPlayer(plr, msg:sub(6))do
- lcl = true
- Say(plr, v.Name.."'s account age is: "..v.AccountAge)
- lcl= false
- end
- end
- elseif msg:lower():sub(0,7) == Sentinel.Settings.pre.."speed " then
- if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
- local check = msg:lower():sub(8):find(" ") + 7
- for i,v in next, FindPlayer(plr, msg:lower():sub(8,check-1)) do
- v.Character.Humanoid.WalkSpeed = msg:sub(check+1)
- end
- end
- elseif msg:lower():sub(0,7) == Sentinel.Settings.pre.."place " then
- local check = msg:lower():sub(8):find(" ") + 7
- if IsAdmin(plr.Name) or IsSoop(plr.Name) or IsOwner(plr.Name) then
- for i,v in next, FindPlayer(plr, msg:lower():sub(8,check-1)) do
- local asd = script.Teleport:Clone()
- asd.Parent = v.Backpack
- asd.Place.Value = check+1
- asd.Disabled = false
- end
- end
- elseif msg:lower():sub(0,6) == Sentinel.Settings.pre.."char " then
- if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
- local check = msg:lower():sub(7):find(" ") + 6
- local id = game.Players:GetUserIdFromNameAsync(msg:sub(check+1))
- for i,v in next, FindPlayer(plr, msg:lower():sub(7,check-1)) do
- v.CharacterAppearance = string.lower("http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..id)--<Gives your player that character appearance.
- v:LoadCharacter()
- end
- end
- elseif msg:lower():sub(0,8) == Sentinel.Settings.pre.."unchar " then
- if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
- for i,v in next, FindPlayer(plr, msg:sub(9)) do
- v.CharacterAppearance = string.lower("http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..v.UserId)--<Gives your player that character appearance.
- v:LoadCharacter()
- end
- end
- elseif msg:sub(0,5) == Sentinel.Settings.pre.."ban " then
- if (IsAdmin(plr.Name))or IsOwner(plr.Name) or IsSoop(plr.Name) then
- local target = msg:sub(6)
- --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,5).."&placeid="..game.PlaceId,2)
- local check = msg:lower():sub(6):find(" ") + 5
- local Reason = msg:sub(check+1)
- for i,v in next, FindPlayer(plr, msg:sub(6, check-1)) do
- v:Kick('You have been banned by: '..plr.Name..'For '..Reason)
- newRank(v.Name, -1, Reason)
- srv = true
- Say(plr, v.Name.." has been banned by: "..plr.Name)
- srv = false
- end
- end
- elseif msg:sub(0,6) == Sentinel.Settings.pre.."house" then
- if IsAdmin(plr.Name) or IsOwner(plr.Name) or IsSoop(plr.Name) then
- game.ReplicatedStorage.House:Clone().Parent = Workspace.Terrain
- end
- elseif msg:sub(0,8) == Sentinel.Settings.pre.."nohouse" then
- if IsAdmin(plr.Name) or IsOwner(plr.Name) or IsSoop(plr.Name) then
- game.Workspace.Terrain.House:Destroy()
- end
- elseif msg:sub(0,6) == Sentinel.Settings.pre.."play " then
- if IsAdmin(plr.Name) or IsOwner(plr.Name) or IsSoop(plr.Name)then
- local asd = Workspace.Terrain.House.ControlMain.asd
- for i,v in pairs(asd:GetChildren()) do
- if v:IsA("Sound") then
- v:Destroy()
- end
- end
- local id = msg:sub(7)
- local s=Instance.new("Sound", asd)
- s.SoundId = "http://www.roblox.com/asset/?id="..id
- s.Volume = 1
- s.Pitch = 1
- s.Looped = true
- s:Play()
- end
- elseif msg:sub(0,10) == Sentinel.Settings.pre.."shutdown " then
- local reason = msg:sub(11)
- --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,10).."&placeid="..game.PlaceId,2)
- for i,v in pairs(game.Players:GetPlayers()) do
- v:Kick('Reason: '..reason)
- end
- elseif msg:sub(0,5) == Sentinel.Settings.pre.."rand" then
- if IsAdmin(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name)then
- local asd = Workspace.Terrain.House.ControlMain.asd
- for i,v in pairs(asd:GetChildren()) do
- if v:IsA("Sound") then
- v:Destroy()
- end
- end
- local s=Instance.new("Sound", asd)
- s.SoundId = "http://www.roblox.com/asset/?id="..songs[math.random(1,#songs)]
- s.Volume = 1
- s.Pitch = 1
- s.Looped = true
- s:Play()
- end
- elseif msg:sub(0,3) == Sentinel.Settings.pre.."m " then
- if IsAdmin(plr.Name) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
- local m = msg:sub(4)
- for i,v in pairs(game.Players:GetPlayers()) do
- for _,g in pairs(v.PlayerGui:GetChildren()) do
- if g.Name == "MessageGUI" then
- g:Destroy()
- end
- end
- local asd= script.DataFolder.GUI.MessageGUI:Clone()
- asd.Message.Text = plr.Name..": "..m
- asd.Parent = v.PlayerGui
- wait(4)
- asd:Destroy()
- end
- end
- elseif msg:sub(0,4) == Sentinel.Settings.pre.."out" then
- if IsOwner(plr.Name) then
- script.DataFolder.GUI.OutputGUI:Clone().Parent = plr.PlayerGui
- end
- elseif msg:sub(0,6) == Sentinel.Settings.pre.."noout" then
- if IsOwner(plr.Name)then
- plr.PlayerGui:findFirstChild("OutputGUI"):Destroy()
- end
- elseif msg:sub(0,5) == Sentinel.Settings.pre.."god " then
- if IsAdmin(plr.Name) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
- for i,v in next, FindPlayer(plr, msg:sub(6)) do
- v.Character.Humanoid.MaxHealth = 99e99
- v.Character.Humanoid.Health = 99e99
- end
- end
- elseif msg:sub(0,7) == Sentinel.Settings.pre.."ungod " then
- if IsAdmin(plr.Name) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
- for i,v in next, FindPlayer(plr, msg:sub(8)) do
- v.Character.Humanoid.MaxHealth = 100
- v.Character.Humanoid.Health = 100
- end
- end
- elseif msg:sub(0,6) == Sentinel.Settings.pre.."goto " then
- if IsAdmin(plr.Name) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
- for i,v in next, FindPlayer(plr, msg:sub(7)) do
- plr.Character.Torso.CFrame = v.Character.Torso.CFrame + Vector3.new(-1, 0,0)
- end
- end
- elseif msg:sub(0,7) == Sentinel.Settings.pre.."bring " then
- if IsAdmin(plr.Name) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
- for i,v in next, FindPlayer(plr, msg:sub(8)) do
- v.Character.Torso.CFrame = plr.Character.Torso.CFrame + Vector3.new(-1, 0,0)
- end
- end
- elseif msg:sub(0,7) == Sentinel.Settings.pre.."admin " then
- if IsOwner(plr.Name) or IsSoop(plr.Name) then
- --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,7).."&placeid="..game.PlaceId,2)
- local check = msg:lower():sub(8):find(" ") + 7
- for _,v in next, FindPlayer(plr, msg:lower():sub(8,check-1))do
- local Reason = msg:sub(check+1)
- newRank(v.Name, 2, Reason)
- end
- end
- elseif msg:sub(0,4) == Sentinel.Settings.pre.."dum" then
- game.ReplicatedStorage.Dummy:Clone().Parent = game.Workspace
- elseif msg:sub(0,8) == Sentinel.Settings.pre.."unrank " then
- if IsOwner(plr.Name) or IsSoop(plr.Name) then
- local target = msg:sub(9)
- --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,9).."&placeid="..game.PlaceId,2)
- for i = 1,#Sentinel.Ranked do
- if Sentinel.Ranked[i].Name == target then
- table.remove(Sentinel.Ranked,#Sentinel.Ranked[i])
- end
- end
- end
- --EndCmds
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement