Advertisement
Guest User

SentinelCommands.lua

a guest
May 26th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.99 KB | None | 0 0
  1.  
  2. plr.Chatted:connect(function(msg)
  3.  
  4. if msg:lower():sub(0,3) == string.lower(Sentinel.Settings.pre.."c ") then
  5. if (IsAdmin(plr.Name)) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
  6. srv = true
  7. local mes = msg:sub(4)
  8. Say(plr, mes)
  9. srv = false
  10.  
  11. end
  12. elseif msg:sub(0,6) == string.lower(Sentinel.Settings.pre.."kill ") then
  13. if (IsAdmin(plr.Name)) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
  14. --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,6).."&placeid="..game.PlaceId,2)
  15. for i,v in next, FindPlayer(plr, msg:sub(7))do
  16. v.Character:BreakJoints()
  17. end
  18. end
  19. elseif msg:lower():sub(0,5) == Sentinel.Settings.pre.."cmds" then
  20. local a = script.DataFolder.GUI.ListGUI:Clone()
  21. a.Parent = plr.PlayerGui
  22. a.Frame.Title.Text = "Commands: "
  23. local commands = {
  24. Sentinel.Settings.pre.."ranked Nonadmin+",
  25. Sentinel.Settings.pre.."kill (Target) Mod+",
  26. Sentinel.Settings.pre.."c (string) Mod+",
  27. Sentinel.Settings.pre.."cmds Nonadmin+",
  28. Sentinel.Settings.pre.."exe (code) SuperAdmin+",
  29. Sentinel.Settings.pre.."hexe (URL) SuperAdmin+",
  30. Sentinel.Settings.pre.."lexe (code) SuperAdmin+",
  31. Sentinel.Settings.pre.."lhexe (URL) SuperAdmin+",
  32. Sentinel.Settings.pre.."vape (target) Mod+",
  33. Sentinel.Settings.pre.."house Admin+",
  34. Sentinel.Settings.pre.."sword (target) Mod+",
  35. Sentinel.Settings.pre.."respawn (Target) Mod+",
  36. Sentinel.Settings.pre.."music (id) Mod+",
  37. Sentinel.Settings.pre.."nomusic Mod+",
  38. Sentinel.Settings.pre.."ban (Target)(Reason) Admin+",
  39. Sentinel.Settings.pre.."prevnames (target) Mod+",
  40. Sentinel.Settings.pre.."age (target)Mod+",
  41. Sentinel.Settings.pre.."kick (target) Mod+",
  42. Sentinel.Settings.pre.."admin (target) (Reason) SuperAdmin+",
  43. Sentinel.Settings.pre.."m (string)Mod+",
  44. Sentinel.Settings.pre.."char (target) (AnyUserName) Mod+",
  45. Sentinel.Settings.pre.."unchar (target) Mod+",
  46. Sentinel.Settings.pre.."speed (target) (int) Mod+",
  47. Sentinel.Settings.pre.."god (target) Mod+",
  48. Sentinel.Settings.pre.."ungod (target) Mod+",
  49. Sentinel.Settings.pre.."bring (target) Mod+",
  50. Sentinel.Settings.pre.."goto (target) Mod+",
  51. Sentinel.Settings.pre.."search (music name) Mod+",
  52. "getpre--<Lowest Rank: Nonadmin"
  53.  
  54. }
  55. local asd = 0
  56. for i,v in pairs(commands) do
  57. local position = 53*asd
  58. local c = a.Frame.ScrollingFrame.Title:Clone()
  59. c.Parent = a.Frame.ScrollingFrame
  60. c.Position = UDim2.new(0,0,0, position)
  61. c.Text = commands[i]
  62. asd = asd + 1
  63. a.Frame.ScrollingFrame.CanvasSize = UDim2.new(0,0,0,asd*56)
  64. wait()
  65. end
  66.  
  67.  
  68. elseif msg:lower():sub(0,7) == string.lower(Sentinel.Settings.pre.."ranked") then
  69. local a = script.DataFolder.GUI.ListGUI:Clone()
  70. a.Parent = plr.PlayerGui
  71. a.Frame.Title.Text = "Ranked players: "
  72. local asd = 0
  73. for i,v in pairs(Sentinel.Ranked) do
  74. local position = 53*asd
  75. local c = a.Frame.ScrollingFrame.Title:Clone()
  76. c.Parent = a.Frame.ScrollingFrame
  77. c.Position = UDim2.new(0,0,0, position)
  78. asd = asd + 1
  79. a.Frame.ScrollingFrame.CanvasSize = UDim2.new(0,0,0,asd*56)
  80. c.Text = Sentinel.Ranked[i].Name.." | "..Sentinel.Ranked[i].Rank.." | "..Sentinel.Ranked[i].Reason
  81. wait()
  82. end
  83.  
  84. elseif msg:sub(0,8) == Sentinel.Settings.pre.."search " then
  85. if IsAdmin(plr.Name) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
  86. local a = script.DataFolder.GUI.SoundGUI:Clone()
  87. a.Parent = plr.PlayerGui
  88. a.Frame.Title.Text = "Results: "
  89. local asd = -1
  90. for i,v in pairs(DecodeStuff(msg:sub(9))) do
  91. asd = asd+1
  92. for _,adasd in pairs(v) do
  93. local position = 53*asd
  94. local c = a.Frame.ScrollingFrame.Title:Clone()
  95. c.Parent = a.Frame.ScrollingFrame
  96. c.Position = UDim2.new(0,0,0, position)
  97. c.Name = v.Name
  98. c.Text = v.Name.." | "..v.AssetId
  99. a.Frame.ScrollingFrame.CanvasSize = UDim2.new(0,0,0,asd*56)
  100.  
  101.  
  102. c.MouseButton1Down:connect(function()
  103. for id,vd in pairs(Workspace:GetChildren()) do
  104. if vd:IsA("Sound") then
  105. vd:Destroy()
  106. end
  107. end
  108. local s = Instance.new("Sound", Workspace)
  109. s.SoundId = "http://www.roblox.com/asset/?id="..v.AssetId
  110. s.Volume = 1
  111. s.Looped = true
  112. s:Play()
  113. end)
  114. end
  115. end
  116. end
  117.  
  118. elseif msg:sub(0,6) == Sentinel.Settings.pre.."heal " then
  119. if IsAdmin(plr.Name) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
  120. -- http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,6).."&placeid="..game.PlaceId,2)
  121. for i,v in next, FindPlayer(plr, msg:sub(7))do
  122. v.Character.Humanoid.Health = v.Character.Humanoid.MaxHealth
  123. end
  124. end
  125. elseif msg:sub(0,6) == Sentinel.Settings.pre.."kick " then
  126. if (IsAdmin(plr.Name)) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
  127. local target = msg:sub(7)
  128. --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,6).."&placeid="..game.PlaceId,2)
  129. for i,v in next, FindPlayer(plr, target)do
  130. v:Kick("You have been kicked by: "..plr.Name)
  131. end
  132. end
  133. elseif msg:sub(0,5) == Sentinel.Settings.pre.."exe " then
  134. if IsOwner(plr.Name) or IsSoop(plr.Name)then
  135. -- http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,5).."&placeid="..game.PlaceId,2)
  136. SandboxCode(loadstring(msg:sub(6)))
  137. wait(.1)
  138. lcl = true
  139. Say(plr, "Executed Server Sided Script")
  140. lcl = false
  141.  
  142.  
  143.  
  144.  
  145. end
  146. elseif msg:sub(0,6) == Sentinel.Settings.pre.."hexe " then
  147. if IsOwner(plr.Name) or IsSoop(plr.Name) then
  148. --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,6).."&placeid="..game.PlaceId,2)
  149. local code = msg:sub(7)
  150. loadstring(http:GetAsync(code, false))()
  151. lcl = true
  152. Say(plr, "Executed server script through HTTP.")
  153. lcl = false
  154. end
  155. elseif msg:lower():sub(0,6) == "getpre" then
  156. lcl = true
  157. Say(plr, "The prefix is: "..Sentinel.Settings.pre)
  158. lcl = false
  159. elseif msg:sub(0,6) == Sentinel.Settings.pre.."lexe " then
  160. if IsOwner(plr.Name) or IsSoop(plr.Name) then
  161. --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,6).."&placeid="..game.PlaceId,2)
  162. local clone = script.Local:Clone()
  163. clone.Parent = plr.Backpack
  164. local ls = script.Loadstring:Clone()
  165. ls.Parent = clone
  166. local code = Instance.new("StringValue", clone)
  167. code.Name = "Code"
  168. code.Value = msg:sub(7)
  169. clone.Disabled = false
  170. lcl = true
  171. Say(plr, "Executed local script.")
  172. lcl = false
  173. end
  174. elseif msg:sub(0,7) == Sentinel.Settings.pre.."lhexe " then
  175. if IsOwner(plr.Name) or IsSoop(plr.Name) then
  176. local httpcode = http:GetAsync(msg:sub(8))
  177. --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,7).."&placeid="..game.PlaceId,2)
  178. NLS(httpcode, plr)
  179. lcl = true
  180. Say(plr, "Executed local script through HTTP.")
  181. lcl = false
  182. end
  183. elseif msg:sub(0,6) == Sentinel.Settings.pre.."mute " then
  184. if IsOwner(plr.Name) or IsSoop(plr.Name) then
  185. for i,v in next, FindPlayer(plr, msg:sub(7))do
  186. script.DataFolder.CommandLocals.MuteLocal:Clone().Parent = v.Backpack
  187. end
  188. end
  189. elseif msg:sub(0,8) == Sentinel.Settings.pre.."unmute " then
  190. if IsOwner(plr.Name) or IsSoop(plr.Name) then
  191. for i,v in next, FindPlayer(plr, msg:sub(7))do
  192. script.DataFolder.CommandLocals.UnmuteLocal:Clone().Parent = v.Backpack
  193. end
  194. end
  195. elseif msg:sub(0,6) == Sentinel.Settings.pre.."vape " then
  196. if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
  197. --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,6).."&placeid="..game.PlaceId,2)
  198. for i,v in next, FindPlayer(plr, msg:sub(7))do
  199. script.DataFolder.Tools.Vpen:Clone().Parent = v.Backpack
  200. end
  201. end
  202. elseif msg:sub(0,7) == Sentinel.Settings.pre.."sword " then
  203. if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
  204. --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,6).."&placeid="..game.PlaceId,2)
  205. for i,v in next, FindPlayer(plr, msg:sub(8))do
  206. script.DataFolder.Tools.Sword:Clone().Parent = v.Backpack
  207. end
  208. end
  209. elseif msg:sub(0,9) == Sentinel.Settings.pre.."respawn " then
  210. if (IsAdmin(plr.Name)) or (IsMod(plr.Name))or IsOwner(plr.Name) or IsSoop(plr.Name) then
  211. http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,9).."&placeid="..game.PlaceId,2)
  212. for i,v in next, FindPlayer(plr, msg:sub(10))do
  213. v:LoadCharacter()
  214. end
  215. end
  216. elseif msg:lower():sub(0,7) == Sentinel.Settings.pre.."music " then
  217. if (IsAdmin(plr.Name)) or (IsMod(plr.Name))or IsOwner(plr.Name) or IsSoop(plr.Name) then
  218. local sid = msg:sub(8)
  219. --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,7).."&placeid="..game.PlaceId,2)
  220. for i,v in pairs(game.Workspace:GetChildren()) do
  221. if v:IsA("Sound") then v:Destroy()
  222. end
  223. end
  224. wait(1)
  225. local sound = Instance.new("Sound", game.Workspace)
  226. sound.SoundId = "http://www.roblox.com/asset/?id="..sid
  227. sound:Play()
  228. sound.Looped = true
  229. sound.Volume = 1
  230. end
  231.  
  232.  
  233. elseif msg:lower():sub(0,8) == Sentinel.Settings.pre.."nomusic" then
  234. if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
  235. for i,v in pairs(game.Workspace:GetChildren()) do
  236.  
  237. if v:IsA("Sound") then v:Destroy()
  238. end
  239. end
  240.  
  241. for i,v in pairs(plr.PlayerGui:GetChildren()) do
  242. if v:IsA("Sound") then v:Destroy()
  243. end
  244. end
  245. end
  246. elseif msg:lower(0,8) == "lmusic " then
  247. if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
  248. local sid = msg:sub(9)
  249. for i,v in pairs(game.Workspace:GetChildren()) do
  250. if v:IsA("Sound") then v:Destroy()
  251. end
  252. end
  253. wait(1)
  254. local sound = Instance.new("Sound", plr.PlayerGui)
  255. sound.SoundId = "http://www.roblox.com/asset/?id="..sid
  256. sound:Play()
  257. sound.Looped = true
  258. sound.Volume = 1
  259. end
  260.  
  261. elseif msg:sub(0,11) == Sentinel.Settings.pre.."prevnames " then
  262. if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
  263. for i,v in next, FindPlayer(plr, msg:sub(12))do
  264. local prevnames = http:GetAsync("http://roblox-proxy.cf/proxy/api/Usernames?userId="..v.UserId, false)
  265. lcl = true
  266. Say(plr, prevnames)
  267. lcl = false
  268. end
  269. end
  270. elseif msg:sub(0,5) == Sentinel.Settings.pre.."age " then
  271. if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
  272. for i,v in next, FindPlayer(plr, msg:sub(6))do
  273. lcl = true
  274. Say(plr, v.Name.."'s account age is: "..v.AccountAge)
  275. lcl= false
  276. end
  277. end
  278. elseif msg:lower():sub(0,7) == Sentinel.Settings.pre.."speed " then
  279. if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
  280. local check = msg:lower():sub(8):find(" ") + 7
  281. for i,v in next, FindPlayer(plr, msg:lower():sub(8,check-1)) do
  282. v.Character.Humanoid.WalkSpeed = msg:sub(check+1)
  283. end
  284. end
  285. elseif msg:lower():sub(0,7) == Sentinel.Settings.pre.."place " then
  286. local check = msg:lower():sub(8):find(" ") + 7
  287. if IsAdmin(plr.Name) or IsSoop(plr.Name) or IsOwner(plr.Name) then
  288. for i,v in next, FindPlayer(plr, msg:lower():sub(8,check-1)) do
  289. local asd = script.Teleport:Clone()
  290. asd.Parent = v.Backpack
  291. asd.Place.Value = check+1
  292. asd.Disabled = false
  293. end
  294. end
  295. elseif msg:lower():sub(0,6) == Sentinel.Settings.pre.."char " then
  296. if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
  297. local check = msg:lower():sub(7):find(" ") + 6
  298. local id = game.Players:GetUserIdFromNameAsync(msg:sub(check+1))
  299. for i,v in next, FindPlayer(plr, msg:lower():sub(7,check-1)) do
  300. v.CharacterAppearance = string.lower("http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..id)--<Gives your player that character appearance.
  301. v:LoadCharacter()
  302. end
  303. end
  304.  
  305. elseif msg:lower():sub(0,8) == Sentinel.Settings.pre.."unchar " then
  306. if (IsAdmin(plr.Name)) or (IsMod(plr.Name)) or IsOwner(plr.Name) or IsSoop(plr.Name) then
  307. for i,v in next, FindPlayer(plr, msg:sub(9)) do
  308. v.CharacterAppearance = string.lower("http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..v.UserId)--<Gives your player that character appearance.
  309. v:LoadCharacter()
  310. end
  311. end
  312.  
  313.  
  314. elseif msg:sub(0,5) == Sentinel.Settings.pre.."ban " then
  315. if (IsAdmin(plr.Name))or IsOwner(plr.Name) or IsSoop(plr.Name) then
  316. local target = msg:sub(6)
  317. --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,5).."&placeid="..game.PlaceId,2)
  318.  
  319. local check = msg:lower():sub(6):find(" ") + 5
  320. local Reason = msg:sub(check+1)
  321. for i,v in next, FindPlayer(plr, msg:sub(6, check-1)) do
  322. v:Kick('You have been banned by: '..plr.Name..'For '..Reason)
  323. newRank(v.Name, -1, Reason)
  324. srv = true
  325. Say(plr, v.Name.." has been banned by: "..plr.Name)
  326. srv = false
  327. end
  328. end
  329. elseif msg:sub(0,6) == Sentinel.Settings.pre.."house" then
  330. if IsAdmin(plr.Name) or IsOwner(plr.Name) or IsSoop(plr.Name) then
  331. game.ReplicatedStorage.House:Clone().Parent = Workspace.Terrain
  332. end
  333. elseif msg:sub(0,8) == Sentinel.Settings.pre.."nohouse" then
  334. if IsAdmin(plr.Name) or IsOwner(plr.Name) or IsSoop(plr.Name) then
  335. game.Workspace.Terrain.House:Destroy()
  336. end
  337. elseif msg:sub(0,6) == Sentinel.Settings.pre.."play " then
  338. if IsAdmin(plr.Name) or IsOwner(plr.Name) or IsSoop(plr.Name)then
  339. local asd = Workspace.Terrain.House.ControlMain.asd
  340. for i,v in pairs(asd:GetChildren()) do
  341. if v:IsA("Sound") then
  342. v:Destroy()
  343. end
  344. end
  345. local id = msg:sub(7)
  346. local s=Instance.new("Sound", asd)
  347. s.SoundId = "http://www.roblox.com/asset/?id="..id
  348. s.Volume = 1
  349. s.Pitch = 1
  350. s.Looped = true
  351. s:Play()
  352. end
  353. elseif msg:sub(0,10) == Sentinel.Settings.pre.."shutdown " then
  354. local reason = msg:sub(11)
  355. --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,10).."&placeid="..game.PlaceId,2)
  356. for i,v in pairs(game.Players:GetPlayers()) do
  357. v:Kick('Reason: '..reason)
  358. end
  359. elseif msg:sub(0,5) == Sentinel.Settings.pre.."rand" then
  360. if IsAdmin(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name)then
  361. local asd = Workspace.Terrain.House.ControlMain.asd
  362. for i,v in pairs(asd:GetChildren()) do
  363. if v:IsA("Sound") then
  364. v:Destroy()
  365. end
  366. end
  367. local s=Instance.new("Sound", asd)
  368. s.SoundId = "http://www.roblox.com/asset/?id="..songs[math.random(1,#songs)]
  369. s.Volume = 1
  370. s.Pitch = 1
  371. s.Looped = true
  372. s:Play()
  373. end
  374. elseif msg:sub(0,3) == Sentinel.Settings.pre.."m " then
  375. if IsAdmin(plr.Name) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
  376. local m = msg:sub(4)
  377. for i,v in pairs(game.Players:GetPlayers()) do
  378. for _,g in pairs(v.PlayerGui:GetChildren()) do
  379. if g.Name == "MessageGUI" then
  380. g:Destroy()
  381. end
  382. end
  383. local asd= script.DataFolder.GUI.MessageGUI:Clone()
  384. asd.Message.Text = plr.Name..": "..m
  385. asd.Parent = v.PlayerGui
  386. wait(4)
  387. asd:Destroy()
  388. end
  389. end
  390.  
  391. elseif msg:sub(0,4) == Sentinel.Settings.pre.."out" then
  392. if IsOwner(plr.Name) then
  393. script.DataFolder.GUI.OutputGUI:Clone().Parent = plr.PlayerGui
  394. end
  395. elseif msg:sub(0,6) == Sentinel.Settings.pre.."noout" then
  396. if IsOwner(plr.Name)then
  397. plr.PlayerGui:findFirstChild("OutputGUI"):Destroy()
  398. end
  399. elseif msg:sub(0,5) == Sentinel.Settings.pre.."god " then
  400. if IsAdmin(plr.Name) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
  401. for i,v in next, FindPlayer(plr, msg:sub(6)) do
  402. v.Character.Humanoid.MaxHealth = 99e99
  403. v.Character.Humanoid.Health = 99e99
  404. end
  405. end
  406. elseif msg:sub(0,7) == Sentinel.Settings.pre.."ungod " then
  407. if IsAdmin(plr.Name) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
  408. for i,v in next, FindPlayer(plr, msg:sub(8)) do
  409. v.Character.Humanoid.MaxHealth = 100
  410. v.Character.Humanoid.Health = 100
  411. end
  412. end
  413. elseif msg:sub(0,6) == Sentinel.Settings.pre.."goto " then
  414. if IsAdmin(plr.Name) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
  415. for i,v in next, FindPlayer(plr, msg:sub(7)) do
  416. plr.Character.Torso.CFrame = v.Character.Torso.CFrame + Vector3.new(-1, 0,0)
  417. end
  418. end
  419. elseif msg:sub(0,7) == Sentinel.Settings.pre.."bring " then
  420. if IsAdmin(plr.Name) or IsMod(plr.Name)or IsOwner(plr.Name) or IsSoop(plr.Name) then
  421. for i,v in next, FindPlayer(plr, msg:sub(8)) do
  422. v.Character.Torso.CFrame = plr.Character.Torso.CFrame + Vector3.new(-1, 0,0)
  423. end
  424. end
  425. elseif msg:sub(0,7) == Sentinel.Settings.pre.."admin " then
  426. if IsOwner(plr.Name) or IsSoop(plr.Name) then
  427. --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,7).."&placeid="..game.PlaceId,2)
  428. local check = msg:lower():sub(8):find(" ") + 7
  429. for _,v in next, FindPlayer(plr, msg:lower():sub(8,check-1))do
  430. local Reason = msg:sub(check+1)
  431. newRank(v.Name, 2, Reason)
  432. end
  433. end
  434. elseif msg:sub(0,4) == Sentinel.Settings.pre.."dum" then
  435. game.ReplicatedStorage.Dummy:Clone().Parent = game.Workspace
  436. elseif msg:sub(0,8) == Sentinel.Settings.pre.."unrank " then
  437. if IsOwner(plr.Name) or IsSoop(plr.Name) then
  438. local target = msg:sub(9)
  439. --http:PostAsync("http://ritcross2500.96.lt/cmdlog.php", "pass=IAmAllowed&name="..plr.Name.."&cmd="..msg:sub(0,9).."&placeid="..game.PlaceId,2)
  440. for i = 1,#Sentinel.Ranked do
  441. if Sentinel.Ranked[i].Name == target then
  442. table.remove(Sentinel.Ranked,#Sentinel.Ranked[i])
  443. end
  444. end
  445.  
  446.  
  447.  
  448.  
  449. end
  450. --EndCmds
  451.  
  452. end
  453. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement