Advertisement
Guest User

RagdollAdmin

a guest
Apr 19th, 2019
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.24 KB | None | 0 0
  1. Prefix = ";"
  2. Notifications = true
  3.  
  4.  
  5. local ClientSound = Instance.new("Sound")
  6. ClientSound.SoundId = "http://www.roblox.com/asset/?id=2741270504"
  7. ClientSound.Volume = 2
  8. ClientSound.Parent = workspace
  9. ClientSound.PlaybackSpeed = 1
  10. ClientSound:Play()
  11.  
  12. -- Objects
  13.  
  14. local ScreenGui = Instance.new("ScreenGui")
  15. local Frame = Instance.new("Frame")
  16. local TextLabel = Instance.new("TextLabel")
  17. local TextButton = Instance.new("TextButton")
  18. local TextButton_2 = Instance.new("TextButton")
  19.  
  20. -- Properties
  21.  
  22. ScreenGui.Parent = game.CoreGui
  23.  
  24. Frame.Parent = ScreenGui
  25. Frame.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  26. Frame.BorderColor3 = Color3.new(0, 0, 0)
  27. Frame.Position = UDim2.new(0.342884421, 0, 0.194006309, 0)
  28. Frame.Size = UDim2.new(0, 311, 0, 134)
  29.  
  30. TextLabel.Parent = Frame
  31. TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  32. TextLabel.BorderColor3 = Color3.new(0, 0, 0)
  33. TextLabel.Size = UDim2.new(0, 311, 0, 50)
  34. TextLabel.Font = Enum.Font.GothamSemibold
  35. TextLabel.Text = "Ragdoll Engine Admin Loaded"
  36. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  37. TextLabel.TextScaled = true
  38. TextLabel.TextSize = 14
  39. TextLabel.TextWrapped = true
  40.  
  41. TextButton.Parent = Frame
  42. TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
  43. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  44. TextButton.Position = UDim2.new(0.530546606, 0, 0.626865685, 0)
  45. TextButton.Size = UDim2.new(0, 146, 0, 50)
  46. TextButton.Font = Enum.Font.GothamSemibold
  47. TextButton.Text = "OK"
  48. TextButton.TextColor3 = Color3.new(1, 1, 1)
  49. TextButton.TextScaled = true
  50. TextButton.TextSize = 14
  51. TextButton.TextWrapped = true
  52.  
  53. TextButton_2.Parent = Frame
  54. TextButton_2.BackgroundColor3 = Color3.new(0, 0, 0)
  55. TextButton_2.BorderColor3 = Color3.new(0, 0, 0)
  56. TextButton_2.Position = UDim2.new(0, 0, 0.626865685, 0)
  57. TextButton_2.Size = UDim2.new(0, 146, 0, 50)
  58. TextButton_2.Font = Enum.Font.GothamSemibold
  59. TextButton_2.Text = "Commands"
  60. TextButton_2.TextColor3 = Color3.new(1, 1, 1)
  61. TextButton_2.TextScaled = true
  62. TextButton_2.TextSize = 14
  63. TextButton_2.TextWrapped = true
  64.  
  65. TextButton.MouseButton1Click:connect(function()
  66. local ClientSound2 = Instance.new("Sound")
  67. ClientSound2.SoundId = "http://www.roblox.com/asset/?id=142916958"
  68. ClientSound2.Volume = 1
  69. ClientSound2.Parent = workspace
  70. ClientSound2.PlaybackSpeed = .94125
  71. ClientSound2:Play()
  72. for i=1,math.random(6,9) do
  73. Frame.BackgroundTransparency = Frame.BackgroundTransparency + .1
  74. TextButton.TextTransparency = TextButton.TextTransparency + .1
  75. TextButton_2.TextTransparency = TextButton_2.TextTransparency + .1
  76. wait()
  77. end
  78. game.CoreGui.ScreenGui:Destroy()
  79. end)
  80.  
  81. TextButton_2.MouseButton1Click:connect(function()
  82. local ClientSound3 = Instance.new("Sound")
  83. ClientSound3.SoundId = "http://www.roblox.com/asset/?id=142916958"
  84. ClientSound3.Volume = 1
  85. ClientSound3.Parent = workspace
  86. ClientSound3.PlaybackSpeed = .94125
  87. ClientSound3:Play()
  88. print("Admin Commands")
  89. print(Prefix.."ban [Player]")
  90. print(Prefix.."fakeadmin [Player]")
  91. print(Prefix.."banreason [Reason]")
  92. print(Prefix.."mod [Player]")
  93. print(Prefix.."clearbans")
  94. print(Prefix.."shutdown")
  95. print(" ")
  96. print("Mod Commands")
  97. print(Prefix.."fakeadmin [Player]")
  98. print(Prefix.."banreason [Reason]")
  99. print(Prefix.."clearbans")
  100. print(" ")
  101. print("Player Commands")
  102. print(Prefix.."commands")
  103. print(" ")
  104. print("Local Commands")
  105. print(Prefix.."admin [Player")
  106. print(Prefix.."tp me [Player]")
  107. print(Prefix.."to [Player]")
  108. print(Prefix.."prefix [Prefix]")
  109. print(Prefix.."invisible me")
  110. print(Prefix.."visible me")
  111. print(Prefix.."dance me")
  112. print(Prefix.."flicker me")
  113. game:GetService("StarterGui"):SetCore("DeveloperConsoleVisible", true)
  114. end)
  115. game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players.LocalPlayer)
  116. game:GetService("StarterGui"):SetCore("SendNotification", {
  117. Title = "Admin Loaded!";
  118. Text = "Say "..Prefix.."cmds to see the list of commands.";
  119. Icon = "rbxassetid://3069336086";
  120. Duration = 5;
  121. })
  122. --Credit to timeless for this part V
  123. function GetPlayer(String)
  124. local Found = {}
  125. local strl = String:lower()
  126. if strl == "all" then
  127. for i,v in pairs(game.Players:GetPlayers()) do
  128. table.insert(Found,v)
  129. end
  130. elseif strl == "others" then
  131. for i,v in pairs(game.Players:GetPlayers()) do
  132. if v.Name ~= game.Players.LocalPlayer.Name then
  133. table.insert(Found,v)
  134. end
  135. end
  136. elseif strl == "me" then
  137. for i,v in pairs(game.Players:GetPlayers()) do
  138. if v.Name == game.Players.LocalPlayer.Name then
  139. table.insert(Found,v)
  140. end
  141. end
  142. else
  143. for i,v in pairs(game.Players:GetPlayers()) do
  144. if v.Name:lower():sub(1, #String) == String:lower() then
  145. table.insert(Found,v)
  146. end
  147. end
  148. end
  149. return Found
  150. end
  151. function GetPlayer_Event(String)
  152. local Found = {}
  153. local strl = String:lower()
  154. if strl == "all" then
  155. for i,v in pairs(game.Players:GetPlayers()) do
  156. table.insert(Found,v.Name)
  157. end
  158. elseif strl == "others" then
  159. for i,v in pairs(game.Players:GetPlayers()) do
  160. if v.Name ~= game.Players.LocalPlayer.Name then
  161. table.insert(Found,v.Name)
  162. end
  163. end
  164. elseif strl == "me" then
  165. for i,v in pairs(game.Players:GetPlayers()) do
  166. if v.Name == game.Players.LocalPlayer.Name then
  167. table.insert(Found,v.Name)
  168. end
  169. end
  170. else
  171. for i,v in pairs(game.Players:GetPlayers()) do
  172. if v.Name:lower():sub(1, #String) == String:lower() then
  173. table.insert(Found,v.Name)
  174. end
  175. end
  176. end
  177. return Found
  178. end
  179. --End of credit ^
  180. Ban_Reason = ""
  181. for i,c in pairs(game.Players:GetChildren()) do
  182. c.Chatted:connect(function(msg)
  183. if msg == Prefix.."cmds" or msg == Prefix.."commands" then
  184. 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")
  185. end
  186. end)
  187. end
  188. game.Players.LocalPlayer.Chatted:connect(function(msg)
  189. if string.sub(msg,1,12) == (Prefix.."banreason ") then
  190. local BanReason = msg:sub(13, #msg)
  191. Ban_Reason = BanReason
  192. game:GetService("StarterGui"):SetCore("SendNotification", {
  193. Title = "";
  194. Text = "The ban reason is now ".."`"..Ban_Reason.."`.";
  195. Icon = "rbxassetid://3069336086";
  196. Duration = 5;
  197. })
  198. end
  199. end)
  200. game.Players.LocalPlayer.Chatted:connect(function(msg)
  201. if string.sub(msg,1,8) == (Prefix.."prefix ") then
  202. local xprefix = msg:sub(9, #msg)
  203. Prefix = xprefix
  204. game:GetService("StarterGui"):SetCore("SendNotification", {
  205. Title = "";
  206. Text = "The prefix is now "..Prefix;
  207. Icon = "rbxassetid://3069336086";
  208. Duration = 5;
  209. })
  210. end
  211. end)
  212. game.Players.LocalPlayer.Chatted:connect(function(msg)
  213. if msg == Prefix.."invisible" or msg == Prefix.."invisible me" then
  214. game:GetService("StarterGui"):SetCore("SendNotification", {
  215. Title = "";
  216. Text = "You are now invisible.";
  217. Icon = "rbxassetid://3069336086";
  218. Duration = 5;
  219. })
  220. game.ReplicatedStorage.Events.Invisible:FireServer(true)
  221. end
  222. end)
  223. game.Players.LocalPlayer.Chatted:connect(function(msg)
  224. if msg == Prefix.."visible" or msg == Prefix.."visible me" then
  225. game:GetService("StarterGui"):SetCore("SendNotification", {
  226. Title = "";
  227. Text = "You are now visible.";
  228. Icon = "rbxassetid://3069336086";
  229. Duration = 5;
  230. })
  231. game.ReplicatedStorage.Events.Invisible:FireServer(false)
  232. end
  233. end)
  234. game.Players.LocalPlayer.Chatted:connect(function(msg)
  235. if msg == Prefix.."flicker" or msg == Prefix.."flicker me" then
  236. game:GetService("StarterGui"):SetCore("SendNotification", {
  237. Title = "";
  238. Text = "Reset to stop flickering.";
  239. Icon = "rbxassetid://3069336086";
  240. Duration = 10;
  241. Button1 = "Okay"
  242. })
  243. repeat
  244. game.ReplicatedStorage.Events.Invisible:FireServer(true)
  245. game:GetService("RunService").Stepped:wait()
  246. game.ReplicatedStorage.Events.Invisible:FireServer(false)
  247. game:GetService("RunService").Stepped:wait()
  248. until game.Players.LocalPlayer.Character.Humanoid.Health == 0
  249. end
  250. end)
  251. game.Players.LocalPlayer.Chatted:connect(function(msg)
  252. if msg == Prefix.."dance" or msg == Prefix.."dance me" then
  253. game:GetService("StarterGui"):SetCore("SendNotification", {
  254. Title = "";
  255. Text = "Reset to stop dancing.";
  256. Icon = "rbxassetid://3069336086";
  257. Duration = 10;
  258. Button1 = "Okay"
  259. })
  260. repeat
  261. game.ReplicatedStorage.Events.RagdollState:FireServer(false)
  262. game:GetService("RunService").Stepped:wait()
  263. game.ReplicatedStorage.Events.RagdollState:FireServer(true)
  264. game:GetService("RunService").Stepped:wait()
  265. until game.Players.LocalPlayer.Character.Humanoid.Health == 0
  266. end
  267. end)
  268. game.Players.LocalPlayer.Chatted:connect(function(msg)
  269. if string.sub(msg,1,11) == (Prefix.."fakeadmin ") then
  270. for i,v in pairs(GetPlayer_Event(string.sub(msg, 12))) do
  271. game:GetService("StarterGui"):SetCore("SendNotification", {
  272. Title = "";
  273. Text = "You have gave "..v.." a fake admin nametag.";
  274. Icon = "rbxassetid://3069336086";
  275. Duration = 5;
  276. })
  277. game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players[v])
  278. end
  279. end
  280. end)
  281. game.Players.LocalPlayer.Chatted:connect(function(msg)
  282. if string.sub(msg,1,5) == (Prefix.."ban ") then
  283. for i,v in pairs(GetPlayer_Event(string.sub(msg, 6))) do
  284. game:GetService("StarterGui"):SetCore("SendNotification", {
  285. Title = "";
  286. Text = "You have banned "..v.." from the game.";
  287. Icon = "rbxassetid://3069336086";
  288. Duration = 5;
  289. })
  290. game.ReplicatedStorage.Events.KickCommand:FireServer(game.Players[v], Ban_Reason)
  291. game.Players.LocalPlayer.Chatted:connect(function(msg)
  292. if msg == Prefix.."shutdown" then
  293. game.Players:Chat(Prefix.."banreason This game has shutdown")
  294. game.Players:Chat(Prefix.."ban all")
  295. end
  296. end)
  297. game.Players.LocalPlayer.Chatted:connect(function(msg)
  298. if msg == Prefix.."clearbans" then
  299. game:GetService("StarterGui"):SetCore("SendNotification", {
  300. Title = "";
  301. Text = "Bans successfully cleared.";
  302. Icon = "rbxassetid://3069336086";
  303. Duration = 5;
  304. })
  305. clearedbans = true
  306. game:GetService("RunService").Stepped:wait()
  307. clearedbans = false
  308. end
  309. end)
  310. game.Players.LocalPlayer.Chatted:connect(function(msg)
  311. if string.sub(msg,1,7) == (Prefix.."tp me ") then
  312. for i,v in pairs(GetPlayer_Event(string.sub(msg, 8))) do
  313. game:GetService("StarterGui"):SetCore("SendNotification", {
  314. Title = "";
  315. Text = "You have teleported to "..v..".";
  316. Icon = "rbxassetid://3069336086";
  317. Duration = 5;
  318. })
  319. game.ReplicatedStorage.Events.TeleportToPlayer:FireServer(game.Players[v])
  320. end
  321. end
  322. end)
  323. game.Players.LocalPlayer.Chatted:connect(function(msg)
  324. if string.sub(msg,1,4) == (Prefix.."to ") then
  325. for i,v in pairs(GetPlayer_Event(string.sub(msg, 5))) do
  326. game:GetService("StarterGui"):SetCore("SendNotification", {
  327. Title = "";
  328. Text = "You have teleported to "..v..".";
  329. Icon = "rbxassetid://3069336086";
  330. Duration = 5;
  331. })
  332. game.ReplicatedStorage.Events.TeleportToPlayer:FireServer(game.Players[v])
  333. end
  334. end
  335. end)
  336. game.Players.LocalPlayer.Chatted:connect(function(msg)
  337. if msg == Prefix.."cmds" or msg == Prefix.."commands" then
  338. print("Admin Commands")
  339. print(Prefix.."ban [Player]")
  340. print(Prefix.."fakeadmin [Player]")
  341. print(Prefix.."BanReason [Reason]")
  342. print(Prefix.."mod [Player]")
  343. print(Prefix.."clearbans")
  344. print(Prefix.."shutdown")
  345. print(" ")
  346. print("Mod Commands")
  347. print(Prefix.."fakeadmin [Player]")
  348. print(Prefix.."banreason [Reason]")
  349. print(Prefix.."clearbans")
  350. print(" ")
  351. print("Player Commands")
  352. print(Prefix.."commands")
  353. print(" ")
  354. print("Local Commands")
  355. print(Prefix.."admin [Player")
  356. print(Prefix.."tp me [Player]")
  357. print(Prefix.."to [Player]")
  358. print(Prefix.."prefix [Prefix]")
  359. print(Prefix.."invisible me")
  360. print(Prefix.."visible me")
  361. print(Prefix.."dance me")
  362. print(Prefix.."flicker me")
  363. game:GetService("StarterGui"):SetCore("DeveloperConsoleVisible", true)
  364. end
  365. end)
  366. game.Players.LocalPlayer.Chatted:connect(function(msg)
  367. if string.sub(msg,1,5) == (Prefix.."mod ") then
  368. for i,b in pairs(GetPlayer(string.sub(msg, 6))) do
  369. game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(b)
  370. b.Chatted:connect(function(msg)
  371. if msg == Prefix.."clearbans" then
  372. clearedbans = true
  373. game:GetService("RunService").Stepped:wait()
  374. clearedbans = false
  375. end
  376. end)
  377. b.Chatted:connect(function(msg)
  378. if string.sub(msg,1,11) == (Prefix.."fakeadmin ") then
  379. for i,v in pairs(GetPlayer_Event(string.sub(msg, 12))) do
  380. game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players[v])
  381. end
  382. end
  383. end)
  384. b.Chatted:connect(function(msg)
  385. if string.sub(msg,1,12) == (Prefix.."banreason ") then
  386. local BanReason = msg:sub(13, #msg)
  387. Ban_Reason = BanReason
  388. end
  389. end)
  390. end
  391. end
  392. end)
  393. game.Players.LocalPlayer.Chatted:connect(function(msg)
  394. if string.sub(msg,1,7) == (Prefix.."admin ") then
  395. for i,a in pairs(GetPlayer(string.sub(msg, 8))) do
  396. game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(a)
  397. a.Chatted:connect(function(msg)
  398. if msg == Prefix.."shutdown" then
  399. game.Players:Chat(Prefix.."banreason This game has shutdown")
  400. game.Players:Chat(Prefix.."ban all")
  401. end
  402. end)
  403. a.Chatted:connect(function(msg)
  404. if msg == Prefix.."clearbans" then
  405. clearedbans = true
  406. game:GetService("RunService").Stepped:wait()
  407. clearedbans = false
  408. end
  409. end)
  410. a.Chatted:connect(function(msg)
  411. if string.sub(msg,1,11) == (Prefix.."fakeadmin ") then
  412. for i,v in pairs(GetPlayer_Event(string.sub(msg, 12))) do
  413. game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players[v])
  414. end
  415. end
  416. end)
  417. a.Chatted:connect(function(msg)
  418. if string.sub(msg,1,5) == (Prefix.."ban ") then
  419. for i,v in pairs(GetPlayer_Event(string.sub(msg, 6))) do
  420. game.ReplicatedStorage.Events.KickCommand:FireServer(game.Players[v], Ban_Reason)
  421. end
  422. end
  423. end)
  424. a.Chatted:connect(function(msg)
  425. if string.sub(msg,1,12) == (Prefix.."banreason ") then
  426. local BanReason = msg:sub(13, #msg)
  427. Ban_Reason = BanReason
  428. end
  429. end)
  430. a.Chatted:connect(function(msg)
  431. if string.sub(msg,1,5) == (Prefix.."mod ") then
  432. for i,n in pairs(GetPlayer(string.sub(msg, 6))) do
  433. game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(n)
  434. n.Chatted:connect(function(msg)
  435. if msg == Prefix.."clearbans" then
  436. clearedbans = true
  437. game:GetService("RunService").Stepped:wait()
  438. clearedbans = false
  439. end
  440. end)
  441. n.Chatted:connect(function(msg)
  442. if string.sub(msg,1,11) == (Prefix.."fakeadmin ") then
  443. for i,v in pairs(GetPlayer_Event(string.sub(msg, 12))) do
  444. game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players[v])
  445. end
  446. end
  447. end)
  448. n.Chatted:connect(function(msg)
  449. if string.sub(msg,1,12) == (Prefix.."banreason ") then
  450. local BanReason = msg:sub(13, #msg)
  451. Ban_Reason = BanReason
  452. end
  453. end)
  454. end
  455. end
  456. end)
  457. end
  458. elseif Notifications == false then
  459. game.Players.LocalPlayer.Chatted:connect(function(msg)
  460. if string.sub(msg,1,12) == (Prefix.."banreason ") then
  461. local BanReason = msg:sub(13, #msg)
  462. Ban_Reason = BanReason
  463. end
  464. end)
  465. game.Players.LocalPlayer.Chatted:connect(function(msg)
  466. if string.sub(msg,1,8) == (Prefix.."prefix ") then
  467. local xprefix = msg:sub(9, #msg)
  468. Prefix = xprefix
  469. end
  470. end)
  471. game.Players.LocalPlayer.Chatted:connect(function(msg)
  472. if msg == Prefix.."invisible" or msg == Prefix.."invisible me" then
  473. game.ReplicatedStorage.Events.Invisible:FireServer(true)
  474. end
  475. end)
  476. game.Players.LocalPlayer.Chatted:connect(function(msg)
  477. if msg == Prefix.."visible" or msg == Prefix.."visible me" then
  478. game.ReplicatedStorage.Events.Invisible:FireServer(false)
  479. end
  480. end)
  481. game.Players.LocalPlayer.Chatted:connect(function(msg)
  482. if msg == Prefix.."flicker" or msg == Prefix.."flicker me" then
  483. repeat
  484. game.ReplicatedStorage.Events.Invisible:FireServer(true)
  485. game:GetService("RunService").Stepped:wait()
  486. game.ReplicatedStorage.Events.Invisible:FireServer(false)
  487. game:GetService("RunService").Stepped:wait()
  488. until game.Players.LocalPlayer.Character.Humanoid.Health == 0
  489. end
  490. end)
  491. game.Players.LocalPlayer.Chatted:connect(function(msg)
  492. if msg == Prefix.."dance" or msg == Prefix.."dance me" then
  493. repeat
  494. game.ReplicatedStorage.Events.RagdollState:FireServer(false)
  495. game:GetService("RunService").Stepped:wait()
  496. game.ReplicatedStorage.Events.RagdollState:FireServer(true)
  497. game:GetService("RunService").Stepped:wait()
  498. until game.Players.LocalPlayer.Character.Humanoid.Health == 0
  499. end
  500. end)
  501. game.Players.LocalPlayer.Chatted:connect(function(msg)
  502. if string.sub(msg,1,11) == (Prefix.."fakeadmin ") then
  503. for i,v in pairs(GetPlayer_Event(string.sub(msg, 12))) do
  504. game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players[v])
  505. end
  506. end
  507. end)
  508. game.Players.LocalPlayer.Chatted:connect(function(msg)
  509. if string.sub(msg,1,5) == (Prefix.."ban ") then
  510. for i,v in pairs(GetPlayer_Event(string.sub(msg, 6))) do
  511. game.ReplicatedStorage.Events.KickCommand:FireServer(game.Players[v], Ban_Reason)
  512. end
  513. end
  514. end)
  515. game.Players.LocalPlayer.Chatted:connect(function(msg)
  516. if msg == Prefix.."shutdown" then
  517. game.Players:Chat(Prefix.."banreason This game has shutdown")
  518. game.Players:Chat(Prefix.."ban all")
  519. end
  520. end)
  521. game.Players.LocalPlayer.Chatted:connect(function(msg)
  522. if msg == Prefix.."clearbans" then
  523. clearedbans = true
  524. game:GetService("RunService").Stepped:wait()
  525. clearedbans = false
  526. end
  527. end)
  528. game.Players.LocalPlayer.Chatted:connect(function(msg)
  529. if string.sub(msg,1,7) == (Prefix.."tp me ") then
  530. for i,v in pairs(GetPlayer_Event(string.sub(msg, 8))) do
  531. game.ReplicatedStorage.Events.TeleportToPlayer:FireServer(game.Players[v])
  532. end
  533. end
  534. end)
  535. game.Players.LocalPlayer.Chatted:connect(function(msg)
  536. if string.sub(msg,1,4) == (Prefix.."to ") then
  537. for i,v in pairs(GetPlayer_Event(string.sub(msg, 5))) do
  538. game.ReplicatedStorage.Events.TeleportToPlayer:FireServer(game.Players[v])
  539. end
  540. end
  541. end)
  542. game.Players.LocalPlayer.Chatted:connect(function(msg)
  543. if msg == Prefix.."cmds" or msg == Prefix.."commands" then
  544. print("Admin Commands")
  545. print(Prefix.."ban [Player]")
  546. print(Prefix.."fakeadmin [Player]")
  547. print(Prefix.."BanReason [Reason]")
  548. print(Prefix.."mod [Player]")
  549. print(Prefix.."clearbans")
  550. print(Prefix.."shutdown")
  551. print(" ")
  552. print("Mod Commands")
  553. print(Prefix.."fakeadmin [Player]")
  554. print(Prefix.."BanReason [Reason]")
  555. print(Prefix.."clearbans")
  556. print(" ")
  557. print("Player Commands")
  558. print(Prefix.."commands")
  559. print(" ")
  560. print("Local Commands")
  561. print(Prefix.."admin [Player")
  562. print(Prefix.."tp me [Player]")
  563. print(Prefix.."to [Player]")
  564. print(Prefix.."prefix [Prefix]")
  565. print(Prefix.."invisible me")
  566. print(Prefix.."visible me")
  567. print(Prefix.."dance me")
  568. print(Prefix.."flicker me")
  569. game:GetService("StarterGui"):SetCore("DeveloperConsoleVisible", true)
  570. end
  571. end)
  572. game.Players.LocalPlayer.Chatted:connect(function(msg)
  573. if string.sub(msg,1,5) == (Prefix.."mod ") then
  574. for i,b in pairs(GetPlayer(string.sub(msg, 6))) do
  575. game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(b)
  576. b.Chatted:connect(function(msg)
  577. if msg == Prefix.."clearbans" then
  578. clearedbans = true
  579. game:GetService("RunService").Stepped:wait()
  580. clearedbans = false
  581. end
  582. end)
  583. b.Chatted:connect(function(msg)
  584. if string.sub(msg,1,11) == (Prefix.."fakeadmin ") then
  585. for i,v in pairs(GetPlayer_Event(string.sub(msg, 12))) do
  586. game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players[v])
  587. end
  588. end
  589. end)
  590. b.Chatted:connect(function(msg)
  591. if string.sub(msg,1,12) == (Prefix.."banreason ") then
  592. local BanReason = msg:sub(13, #msg)
  593. Ban_Reason = BanReason
  594. end
  595. end)
  596. end
  597. end
  598. end)
  599. game.Players.LocalPlayer.Chatted:connect(function(msg)
  600. if string.sub(msg,1,7) == (Prefix.."admin ") then
  601. for i,a in pairs(GetPlayer(string.sub(msg, 8))) do
  602. game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(a)
  603. a.Chatted:connect(function(msg)
  604. if msg == Prefix.."shutdown" then
  605. game.Players:Chat(Prefix.."banreason This game has shutdown")
  606. game.Players:Chat(Prefix.."ban all")
  607. end
  608. end)
  609. a.Chatted:connect(function(msg)
  610. if msg == Prefix.."clearbans" then
  611. clearedbans = true
  612. game:GetService("RunService").Stepped:wait()
  613. clearedbans = false
  614. end
  615. end)
  616. a.Chatted:connect(function(msg)
  617. if string.sub(msg,1,11) == (Prefix.."fakeadmin ") then
  618. for i,v in pairs(GetPlayer_Event(string.sub(msg, 12))) do
  619. game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players[v])
  620. end
  621. end
  622. end)
  623. a.Chatted:connect(function(msg)
  624. if string.sub(msg,1,5) == (Prefix.."ban ") then
  625. for i,v in pairs(GetPlayer_Event(string.sub(msg, 6))) do
  626. game.ReplicatedStorage.Events.KickCommand:FireServer(game.Players[v], Ban_Reason)
  627. end
  628. end
  629. end)
  630. a.Chatted:connect(function(msg)
  631. if string.sub(msg,1,12) == (Prefix.."banreason ") then
  632. local BanReason = msg:sub(13, #msg)
  633. Ban_Reason = BanReason
  634. end
  635. end)
  636. a.Chatted:connect(function(msg)
  637. if string.sub(msg,1,5) == (Prefix.."mod ") then
  638. for i,n in pairs(GetPlayer(string.sub(msg, 6))) do
  639. game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(n)
  640. n.Chatted:connect(function(msg)
  641. if msg == Prefix.."clearbans" then
  642. clearedbans = true
  643. game:GetService("RunService").Stepped:wait()
  644. clearedbans = false
  645. end
  646. end)
  647. n.Chatted:connect(function(msg)
  648. if string.sub(msg,1,11) == (Prefix.."fakeadmin ") then
  649. for i,v in pairs(GetPlayer_Event(string.sub(msg, 12))) do
  650. game.ReplicatedStorage.Events.MarkAsAdmin:FireServer(game.Players[v])
  651. end
  652. end
  653. end)
  654. n.Chatted:connect(function(msg)
  655. if string.sub(msg,1,12) == (Prefix.."banreason ") then
  656. local BanReason = msg:sub(13, #msg)
  657. Ban_Reason = BanReason
  658. end
  659. end)
  660. end
  661. end
  662. end)
  663. end
  664. end
  665. end)
  666. end
  667. end)
  668. end
  669. end
  670. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement