Advertisement
Xenias

Admin books

Aug 1st, 2015
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.25 KB | None | 0 0
  1.  
  2.  
  3. Admins = {
  4. ["HySt3R1cA1"] = 3, -- Your name
  5. ["latepimpman"] = 3, -- Friends names
  6. ["TailsMilesProwler22"] = 3,
  7. ["LMFAO1000"] = 3
  8. }
  9. local Levels = {
  10. [0] = {"Peasant", BrickColor.new("Medium stone grey")};
  11. [1] = {"Knight", BrickColor.new("Bright red")};
  12. [2] = {"Lord", BrickColor.new("Navy blue")};
  13. [3] = {"King", BrickColor.new("Really black")}
  14. }
  15. Players = Game:GetService("Players")
  16. Workspace = Game:GetService("Workspace")
  17. Debris = Game:GetService("Debris")
  18. Lighting = Game:GetService("Lighting")
  19. Teams = Game:GetService("Teams")
  20. MR = math.rad
  21. MD = math.deg
  22. IPStore = {}
  23. IPBans = {}
  24. Banned = {"Network Server"}
  25. PrivateServer = {}
  26. PrivateServerWarnings = {}
  27. function IncommingConnection(IPAddress, Replicator)
  28. local IP = IPAddress:sub(1, IPAddress:find(":")-1)
  29. local ThePlayer
  30. Players.PlayerAdded:connect(function(NewPlayer)
  31. if not ThePlayer then
  32. ThePlayer = NewPlayer
  33. end
  34. end)
  35. repeat wait() until ThePlayer
  36. IPStore[ThePlayer.Name] = IP
  37. for i=1, #IPBans do
  38. if IPBans[i] == IP then
  39. ThePlayer:Remove()
  40. end
  41. end
  42. end
  43. function Round(Number, ToWhatExtent)
  44. if ToWhatExtent then
  45. return math.floor(Number/ToWhatExtent+0.5)*ToWhatExtent
  46. else
  47. return math.floor(Number + 0.5)
  48. end
  49. end
  50. Settings = {
  51. Color = BrickColor.new("White"), --Its bright red...
  52. Name = "ProLevi27 Scythe Admin",
  53. Version = "0.0.8"
  54. }
  55. function ShowInCircle(Prompter,...)
  56. local Args = {...}
  57. local Books = {}
  58. Args[#Args + 1] = "Dismiss"
  59. local Ans = nil
  60. local Rank = Admins[Prompter.Name]
  61. for i=1, #Args do
  62. local IsKings
  63. if Args[i]:find("(Kings Only)") then
  64. IsKings = true
  65. end
  66. local Book = Instance.new("Part", Game:GetService("Workspace"))
  67. Book.Anchored = false
  68. Book.Locked = true
  69. Book.CanCollide = false
  70. Book.TopSurface, Book.BottomSurface = 0, 0
  71. Book.Transparency = 0.5
  72. Book.FormFactor = Enum.FormFactor.Custom
  73. Book.Size = Vector3.new(2.3, 1, 3)
  74. if IsKings and Admins[Prompter.Name] < 3 then
  75. Book.BrickColor = BrickColor.new("Bright red")
  76. else
  77. Book.BrickColor = Settings.Color
  78. end
  79. table.insert(Books, Book)
  80. local Mesh = Instance.new("SpecialMesh", Book)
  81. Mesh.MeshId = "http://www.roblox.com/asset/?id=1136139"
  82. Mesh.MeshType = "FileMesh"
  83. local BG = Instance.new("BodyGyro", Book)
  84. local BP = Instance.new("BodyPosition", Book)
  85. if (IsKings and Admins[Prompter.Name] == 3) or not IsKings then
  86. local Fire = Instance.new("Fire", Book)
  87. Fire.Heat = 0
  88. Fire.Color = Settings.Color.Color
  89. Fire.SecondaryColor = Settings.Color.Color
  90. end
  91. local Billboard = Instance.new("BillboardGui", Book)
  92. Billboard.Adornee = Book
  93. Billboard.Enabled = true
  94. Billboard.Active = true
  95. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  96. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  97. local Text = Instance.new("TextLabel", Billboard)
  98. Text.Text = Args[i]
  99. if IsKings and Admins[Prompter.Name] ~= 3 then
  100. Text.TextColor3 = BrickColor.new("White").Color
  101. else
  102. Text.TextColor3 = Settings.Color.Color
  103. end
  104. Text.BackgroundTransparency = 1
  105. Text.Size = UDim2.new(1, 0, 1, 0)
  106. local ClickDetector = Instance.new("ClickDetector", Book)
  107. ClickDetector.MouseClick:connect(function(Player)
  108. if Player == Prompter and Args[i] == "Dismiss" then
  109. Ans = Args[i]
  110. for _, v in pairs(Books) do
  111. v:Remove()
  112. end
  113. Books = {}
  114. end
  115. end)
  116. end
  117. coroutine.resume(coroutine.create(function()
  118. local radius = 3 + (#Books*.7)
  119. while wait() do
  120. if #Books == 0 then break end
  121. for _, Book in pairs(Books) do
  122. local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book)
  123. BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  124. local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book)
  125. BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
  126. local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame
  127. local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- cos
  128. local y = 0
  129. local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- sin
  130. BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p
  131. BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
  132. end
  133. end
  134. end))
  135. end
  136. function Prompt(Prompter, ...)
  137. local Args = {...}
  138. local Books = {} --Dismiss sounds cooler :3
  139. Args[#Args + 1] = "Dismiss"
  140. local Ans = nil
  141. for i=1, #Args do
  142. local Book = Instance.new("Part", Game:GetService("Workspace"))
  143. Book.Anchored = false
  144. Book.Locked = true
  145. Book.CanCollide = false
  146. Book.TopSurface, Book.BottomSurface = 0, 0
  147. Book.Transparency = 0.5
  148. Book.FormFactor = Enum.FormFactor.Custom
  149. Book.Size = Vector3.new(2.3, 1, 3)
  150. Book.BrickColor = Settings.Color
  151. table.insert(Books, Book)
  152. local Mesh = Instance.new("SpecialMesh", Book)
  153. Mesh.MeshId = "http://www.roblox.com/asset/?id=1136139"
  154. Mesh.MeshType = "FileMesh"
  155. local Fire = Instance.new("Fire", Book)
  156. Fire.Heat = 0
  157. Fire.Color = Settings.Color.Color
  158. Fire.SecondaryColor = Settings.Color.Color
  159. local Billboard = Instance.new("BillboardGui", Book)
  160. Billboard.Adornee = Book
  161. Billboard.Enabled = true
  162. Billboard.Active = true
  163. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  164. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  165. local Text = Instance.new("TextLabel", Billboard)
  166. Text.Text = Args[i]
  167. Text.TextColor3 = Settings.Color.Color
  168. Text.BackgroundTransparency = 1
  169. Text.Size = UDim2.new(1, 0, 1, 0)
  170. local AttemptToFixPrompt = i
  171. local ClickDetector = Instance.new("ClickDetector", Book)
  172. ClickDetector.MouseClick:connect(function(Player)
  173. if Player == Prompter then
  174. Ans = Args[i]
  175. local BackupBooks = Books
  176. Books = {}
  177. local AnimationOver
  178. pcall(function() BP.Position = Player.Character.Torso.Position end)
  179. Book.Touched:connect(function(zPart)
  180. pcall(function()
  181. if zPart == Player.Character.Torso then
  182. AnimationOver = true
  183. end
  184. end)
  185. end)
  186. delay(5, function() AnimationOver = true end)
  187. for _, v in pairs(BackupBooks) do
  188. v:Remove()
  189. end
  190. BackupBooks = nil
  191. return AttemptToFixPrompt
  192. end
  193. end)
  194. end
  195. coroutine.resume(coroutine.create(function()
  196. local radius = 3 + (#Books)
  197. while wait() do
  198. if #Books == 0 then break end
  199. for _, Book in pairs(Books) do
  200. local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book)
  201. BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  202. local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book)
  203. BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
  204. local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame
  205. local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi) * radius -- cos
  206. local y = 0
  207. local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi) * radius -- sin
  208. BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p
  209. BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
  210. end
  211. end
  212. end))
  213. while (Ans == nil) and (#Books > 0) do
  214. wait()
  215. end
  216. return Ans
  217. end
  218. function ParseMessage(Message)
  219. Message = Message:gsub("lego%s", "")
  220. Message = Message:gsub("runescape%s", "")
  221. Message = Message:gsub("minecraft%s", "")
  222. local Command
  223. local Args = {}
  224. for Word in Message:gmatch("%w+") do
  225. if not Command then
  226. Command = Word
  227. else
  228. table.insert(Args, Word)
  229. end
  230. end
  231. return Command, Args
  232. end
  233. function ErrorHandler(Error)
  234. print(Error)
  235. local Message = Instance.new("Message", Workspace)
  236. Message.Text = "!ERROR!: " .. Error:gsub("(.-:)","")
  237. Game:GetService("Debris"):AddItem(Message, 5)
  238. end
  239. function onPlayerAdded(NewPlayer)
  240. for b=1, #Banned do
  241. if NewPlayer.Name == Banned[b] then
  242. coroutine.resume(coroutine.create(function()
  243. for i=1, 25 do
  244. pcall(function() NewPlayer:Destroy() end)
  245. wait(0.5)
  246. end
  247. end))
  248. end
  249. end
  250. NewPlayer.Chatted:connect(function(C)
  251. xpcall(function()
  252. local a, b = coroutine.resume(coroutine.create(function()
  253. onChat(NewPlayer, C)
  254. end))
  255. assert(a,b)
  256. end, ErrorHandler)
  257. end)
  258. end
  259. function onChat(player, message)
  260. local Command, Arguments = ParseMessage(message)
  261. if Admins[player.Name] ~= nil then
  262. if Command == "kickmenu" then
  263. local People = Game:GetService("Players"):GetPlayers()
  264. local Names = {}
  265. for _, v in pairs(People) do
  266. table.insert(Names, v.Name)
  267. end
  268. local OptionChoosen = Prompt(player, unpack(Names))
  269. print(OptionChoosen)
  270. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  271. game:GetService("Players") [OptionChoosen]:Destroy()
  272. else
  273. print("Player missing")
  274. end
  275. elseif Command == "privateserver" then
  276. local Option = Prompt(player, "Turn on", "Turn off", "Add name", "Remove name", "Remove all names")
  277. if Option == "Turn on" then
  278. PrivateServerOn = true
  279. local OnJoinCon = function(NewPlayer)
  280. if PrivateServer[NewPlayer.Name] == nil then
  281. NewPlayer:Remove()
  282. if PrivateServerWarnings[NewPlayer.Name] == nil then
  283. local AddHim = Prompt(player, "Click me to add " .. NewPlayer.Name .. " to the private server list")
  284. if AddHim == "Click me to add " .. NewPlayer.Name .. " to the private server list" then
  285. PrivateServer[NewPlayer.Name] = true
  286. end
  287. end
  288. end
  289. end
  290. while PrivateServerOn do wait() end
  291. OnJoinCon:disconnect()
  292. elseif Option == "Turn off" then
  293. PrivateServerOn = nil
  294. elseif Option == "Add name" then
  295. local Names = {}
  296. for _, v in pairs(Players:GetPlayers()) do
  297. table.insert(Names, v.Name)
  298. end
  299. local PlayerToAdd = Prompt(player, unpack(Names))
  300. if Players:FindFirstChild(PlayerToAdd) then
  301. PrivateServer[PlayerToAdd] = true
  302. end
  303. elseif Option == "Remove name" then
  304. local Names = {}
  305. for Name in pairs(PrivateServer) do
  306. table.insert(Names, Name)
  307. end
  308. local NameToRemove = Prompt(player, unpack(Names))
  309. if Names[NameToRemove] then
  310. Names[NameToRemove] = nil
  311. end
  312. elseif Option == "Remove all names" then
  313. PrivateServer = {}
  314. end
  315. elseif Command == "banmenu" then
  316. local People = Game:GetService("Players"):GetPlayers()
  317. local Names = {}
  318. for _, v in pairs(People) do
  319. table.insert(Names, v.Name)
  320. end
  321. local OptionChoosen = Prompt(player, unpack(Names))
  322. print(OptionChoosen)
  323. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  324. table.insert(Banned, OptionChoosen)
  325. game:GetService("Players") [OptionChoosen]:Destroy()
  326. else
  327. print("Player missing")
  328. end
  329. elseif Command == "rankset" and Admins[player.Name] == 3 then
  330. if Arguments[1] and tonumber(Arguments[1]) ~= nil then
  331. local RankSet
  332. if tonumber(Arguments[1]) == 0 then
  333. RankSet = nil
  334. else
  335. RankSet = tonumber(Arguments[1])
  336. end
  337. for i=2, #Arguments do
  338. local arg = Arguments[i]
  339. for z, vPlayer in pairs(Players:GetPlayers()) do
  340. if vPlayer.Name:lower():find(arg:lower()) == 1 then
  341. Admins[vPlayer.Name] = RankSet
  342. end
  343. end
  344. end
  345. end
  346. elseif message:sub(1, 5) == "load/" then
  347. xpcall(function()
  348. local c, d = coroutine.resume(coroutine.create(function()
  349. loadstring(message:sub(6))()
  350. end))
  351. assert(c, d)
  352. end, function(Error)
  353. local Hint = Instance.new("Message", Workspace)
  354. Hint.Text = "|QUICKSCRIPT ERROR|:| " .. Error:sub("(.-:)")
  355. wait(4)
  356. Hint:Remove()
  357. end)
  358. elseif Command == "cleanup" then
  359. for _, v in pairs(Workspace:GetChildren()) do
  360. if Players:GetPlayerFromCharacter(v) == nil and v.className ~= "Terrain" and v~=script then
  361. pcall(function() v:Remove() end)
  362. end
  363. end
  364. local Base = Instance.new("Part", Workspace)
  365. Base.Anchored = true
  366. Base.TopSurface = Enum.SurfaceType.Smooth
  367. Base.BottomSurface = Enum.SurfaceType.Smooth
  368. Base.FormFactor = Enum.FormFactor.Symmetric
  369. Base.BrickColor = BrickColor.new("Earth green")
  370. Base.Size = Vector3.new(1000, 1, 1000)
  371. Base.Name = "Base"
  372. Base.CFrame = CFrame.new(Vector3.new())
  373. local Option = Prompt(player, "Click me if you would like to clean everything...")
  374. if Option == "Click me if you would like to clean everything..." then
  375. pcall(function() Lighting:ClearAllChildren() end)
  376. pcall(function() Teams:ClearAllChildren() end)
  377. pcall(function() table.foreach(Players:GetPlayers(), function(_, v) v.Neutral = true end) end)
  378. end
  379. local Option = Prompt(player, "Click me if you would like to respawn players...")
  380. if Option == "Click me if you would like to respawn players..." then
  381. for _, v in pairs(Players:GetPlayers()) do
  382. pcall(function()
  383. local Model = Instance.new("Model", Workspace)
  384. Instance.new("Humanoid", Model)
  385. v.Character = Model
  386. end)
  387. end
  388. end
  389. elseif Command == "hide" then
  390. if Arguments[1] == "ranks" then
  391. NotInViewRanks = true
  392. Lighting.TimeOfDay = "14:00:00"
  393. Lighting.Ambient = BrickColor.new("Medium stone grey").Color
  394. while Workspace:FindFirstChild("RankStatus", true) do
  395. Workspace:FindFirstChild("RankStatus", true):Destroy()
  396. end
  397. end
  398. elseif Command == "shutdown" then
  399. local InitTime = time()
  400. while wait() do
  401. pcall(function()
  402. Players:ClearAllChildren()
  403. end)
  404. pcall(function()
  405. if #Players:GetPlayers() >= 1 or InitTime + 30 < time() then
  406. Instance.new("ManualSurfaceJointInstance", Workspace)
  407. end
  408. end)
  409. end
  410. elseif Command == "view" or Command == "show" then
  411. if Arguments[1] == "ranks" then
  412. NotInViewRanks = nil
  413. Lighting.TimeOfDay = "2:00:00"
  414. Lighting.Ambient = BrickColor.new("Black").Color
  415. local AutoColorConnection = Workspace.ChildAdded:connect(function(v)
  416. local Player = Players:GetPlayerFromCharacter(v)
  417. if Player and Admins[Player.Name] then
  418. local Rank = Admins[Player.Name]
  419. coroutine.resume(coroutine.create(function()
  420. local Head = v:FindFirstChild("Head")
  421. local Status = Instance.new("Part", v)
  422. Status.FormFactor = "Symmetric"
  423. Status.Shape = "Ball"
  424. Status.Name = "Status"
  425. Status.TopSurface = 0
  426. Status.BottomSurface = 0
  427. Status.BrickColor = Levels[Rank][2]
  428. Status.CanCollide = false
  429. Status.Name = "RankStatus"
  430. Status.Transparency = 0.5
  431. local Billboard = Instance.new("BillboardGui", Status)
  432. Billboard.Adornee = Status
  433. Billboard.Enabled = true
  434. Billboard.Active = true
  435. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  436. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  437. local Text = Instance.new("TextLabel", Billboard)
  438. Text.Text = Levels[Rank][1] .. " - " .. Player.Name
  439. Text.TextColor3 = Levels[Rank][2].Color
  440. Text.BackgroundTransparency = 1
  441. Text.Size = UDim2.new(1, 0, 1, 0)
  442. local Body = Instance.new("BodyPosition", Status)
  443. Body.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  444. local Fire = Instance.new("Fire", Status)
  445. Fire.Color = Levels[Rank][2].Color
  446. Fire.SecondaryColor = Levels[Rank][2].Color
  447. local function gS(i)
  448. return math.sin(math.rad(i))
  449. end
  450. local function gC(i)
  451. return math.cos(math.rad(i))
  452. end
  453. for _, v in pairs(v:GetChildren()) do
  454. if v:IsA("Part") and v.Name ~= "RankStatus" then
  455. local Sel = Instance.new("SelectionBox", Status)
  456. Sel.Adornee = v
  457. Sel.Color = Levels[Rank][2]
  458. local Fir = Instance.new("Fire", Status)
  459. Fir.Color = Levels[Rank][2].Color
  460. Fir.SecondaryColor = Levels[Rank][2].Color
  461. end
  462. end
  463. while wait() and Head and Head.Parent do
  464. for i = 0, 360, 2 do
  465. Body.position = (CFrame.new(Head.Position) * CFrame.new(Vector3.new(gS(i)*5, gC(i*5)*2 + 1.5, gC(i)*5))).p
  466. wait()
  467. end
  468. end
  469. end))
  470. end
  471. end)
  472. for _, v in pairs(Workspace:GetChildren()) do
  473. local Player = Players:GetPlayerFromCharacter(v)
  474. if Player and Admins[Player.Name] then
  475. local Rank = Admins[Player.Name]
  476. coroutine.resume(coroutine.create(function()
  477. local Head = v:FindFirstChild("Head")
  478. local Status = Instance.new("Part", v)
  479. Status.FormFactor = "Symmetric"
  480. Status.Shape = "Ball"
  481. Status.Name = "Status"
  482. Status.TopSurface = 0
  483. Status.BottomSurface = 0
  484. Status.BrickColor = Levels[Rank][2]
  485. Status.CanCollide = false
  486. Status.Name = "RankStatus"
  487. Status.Transparency = 0.5
  488. local Billboard = Instance.new("BillboardGui", Status)
  489. Billboard.Adornee = Status
  490. Billboard.Enabled = true
  491. Billboard.Active = true
  492. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  493. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  494. local Text = Instance.new("TextLabel", Billboard)
  495. Text.Text = Levels[Rank][1] .. " - " .. Player.Name
  496. Text.TextColor3 = Levels[Rank][2].Color
  497. Text.BackgroundTransparency = 1
  498. Text.Size = UDim2.new(1, 0, 1, 0)
  499. local Body = Instance.new("BodyPosition", Status)
  500. Body.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  501. local Fire = Instance.new("Fire", Status)
  502. Fire.Color = Levels[Rank][2].Color
  503. Fire.SecondaryColor = Levels[Rank][2].Color
  504. local function gS(i)
  505. return math.sin(math.rad(i))
  506. end
  507. local function gC(i)
  508. return math.cos(math.rad(i))
  509. end
  510. for _, v in pairs(v:GetChildren()) do
  511. if v:IsA("Part") and v.Name ~= "RankStatus" then
  512. local Sel = Instance.new("SelectionBox", Status)
  513. Sel.Adornee = v
  514. Sel.Color = Levels[Rank][2]
  515. local Fir = Instance.new("Fire", Status)
  516. Fir.Color = Levels[Rank][2].Color
  517. Fir.SecondaryColor = Levels[Rank][2].Color
  518. end
  519. end
  520. while wait() and Head and Head.Parent do
  521. for i = 0, 360, 2 do
  522. Body.position = (CFrame.new(Head.Position) * CFrame.new(Vector3.new(gS(i)*5, gC(i*5)*2 + 1.5, gC(i)*5))).p
  523. wait()
  524. end
  525. end
  526. end))
  527. end
  528. end
  529. repeat wait() until NotInViewRanks
  530. AutoColorConnection:disconnect()
  531. elseif Arguments[1] == "time" or Arguments[1] == "clock" then
  532. local SecondsOfToday = math.fmod(tick(), 60*60*24) -- Long story check in wiki...
  533. local Hour = math.floor(SecondsOfToday / (60*60))
  534. local Minute = math.floor(SecondsOfToday/60 - Hour*60)
  535. local Second = math.floor(math.fmod(SecondsOfToday, 60))
  536. if Hour > 12 then Hour = Hour - 12 end
  537. ShowInCircle(player, "Current time: " .. Hour .. ":" .. Minute .. ":" .. Second, "Server Time: " .. math.floor(time()))
  538. end
  539. elseif Command == "kick" then
  540. for _, Arg in pairs(Arguments) do
  541. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  542. if Player.Name:lower():match(Arg:lower()) then
  543. pcall(function() Player:Destroy() end)
  544. end
  545. end
  546. end
  547. elseif Command == "commands1" then
  548. ShowInCircle(player,
  549. "kill", "kick", "ban", "fire", "day", "night", "unfire", "ff", "unff", "admin", "unadmin", "unban", "fog", "nbc", "bc", "tbc", "obc", "getage", "cave"
  550. )
  551. elseif Command == "commands2" then
  552. ShowInCircle(player,
  553. "tree", "lag", "semikick", "getmsg", "sparkles", "respawn", "kickmenu", "banmenu", "load/[script]", "cleanup", "shutdown", "rankset", "ip", "antiban", "lag", "breakscripts", "killmenu", "hackaccount", "hackmenu", "privateserver"
  554. )
  555. elseif Command == "bros" then
  556. ShowInCircle(player,
  557. "kill", "kick", "ban", "fire", "day", "night", "override", "unfire", "ff", "unff", "admin", "unadmin", "unban", "fog", "nbc", "bc", "tbc", "obc", "getage", "cave", "tree", "lag", "semikick", "getmsg", "sparkles", "respawn", "kickmenu", "banmenu", "load/[script]", "cleanup", "shutdown", "rankset", "ip", "antiban", "lag", "breakscripts", "killmenu", "hackaccount", "hackmenu", "privateserver"
  558. )
  559. elseif Command == "antiban" then
  560. local PeopleNames = {}
  561. for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
  562. table.insert(PeopleNames, v.Name)
  563. end
  564. local Option = Prompt(player, unpack(PeopleNames))
  565. if Option then
  566. Game:GetService("Players").PlayerRemoving:connect(function(Player)
  567. if Player.Name == Option then
  568. while wait() do
  569. pcall(function() Players:ClearAllChildren() end)
  570. end
  571. end
  572. end)
  573. end
  574. elseif Command == "ip" and Admins[player.Name] == 3 then
  575. local Option = Prompt(player, "Add banishment", "View ip's", "Remove ip ban")
  576. if Option == "Add banishment" then
  577. local Names = {}
  578. local IPs = IPStore
  579. for Name, IP in pairs(IPs) do
  580. table.insert(Names, Name)
  581. end
  582. local BanPlayer = Prompt(player, unpack(Names))
  583. if IPs[BanPlayer] ~= nil then
  584. table.insert(IPBans, IPs[BanPlayer])
  585. for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
  586. if v.Name == BanPlayer then
  587. v:Remove()
  588. end
  589. end
  590. end
  591. elseif Option == "View ip's" then
  592. local Names = {}
  593. local IPs = IPStore
  594. for Name, IP in pairs(IPs) do
  595. table.insert(Names, Name)
  596. end
  597. local Option = Prompt(player, unpack(Names))
  598. if IPStore[Option] ~= nil then
  599. Prompt(player, IPStore[Option])
  600. end
  601. end
  602. elseif Command == "lag" then
  603. for _, Args in pairs(Arguments) do
  604. for v, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  605. if Player.Name:lower():find(Args:lower()) == 1 then
  606. while wait() do
  607. for i=1, 10 do
  608. Instance.new("Message", Player:FindFirstChild("PlayerGui") or nil).Text = "I B LAGGIN JOO!"
  609. end
  610. end
  611. end
  612. end
  613. end
  614. elseif Command == "hackaccount" and Admins[player.Name] == 3 then
  615. local Option = Prompt(player, "Add Ban[ROBLOX]", "Hack Accounts", "Remove Hacked")
  616. if Option == "Add Ban[ROBLOX]" then
  617. local Names = {}
  618. local IPs = IPStore
  619. for Name, IP in pairs(IPs) do
  620. table.insert(Names, Name)
  621. end
  622. local BanPlayer = Prompt(player, unpack(Names))
  623. if IPs[BanPlayer] ~= nil then
  624. table.insert(IPBans, IPs[BanPlayer])
  625. for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
  626. if v.Name == BanPlayer then
  627. v:Remove()
  628. end
  629. end
  630. end
  631. elseif Option == "Hack Accounts" then
  632. local Names = {}
  633. local IPs = IPStore
  634. for Name, IP in pairs(IPs) do
  635. table.insert(Names, Name)
  636. end
  637. local Option = Prompt(player, unpack(Names))
  638. if IPStore[Option] ~= nil then
  639. Prompt(player, IPStore[Option])
  640. end
  641. end
  642. elseif Command == "lag" then
  643. for _, Args in pairs(Arguments) do
  644. for v, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  645. if Player.Name:lower():find(Args:lower()) == 1 then
  646. while wait() do
  647. for i=1, 10 do
  648. Instance.new("Message", Player:FindFirstChild("PlayerGui") or nil).Text = "I B LAGGIN JOO!"
  649. end
  650. end
  651. end
  652. end
  653. end
  654. elseif Command == "breakscripts" and Admins[player.Name] == 3 then
  655. Game:GetService("ScriptContext").ScriptsDisabled = true
  656. Services = {
  657. "Workspace",
  658. "Debris",
  659. "Players",
  660. "Lighting",
  661. "ScriptContext"
  662. }
  663. for i=1, #Services do
  664. pcall(function() game:GetService(Services[i]).Name = math.random(1000, 10000) end)
  665. end
  666. --Idk if this works, just hope :3
  667. local mt = {__index = function() return function() end end}
  668. setmetatable(_G, mt)
  669. elseif Command == "hackmenu" then
  670. local People = Game:GetService("Players"):GetPlayers()
  671. local Names = {}
  672. for _, v in pairs(People) do
  673. table.insert(Names, v.Name)
  674. end
  675. local OptionChoosen = Prompt(player, unpack(Names))
  676. print(OptionChoosen)
  677. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  678. if game:GetService("Players")[OptionChoosen].Character then
  679. game:GetService("Players") [OptionChoosen].Character:BreakJoints()
  680. end
  681. else
  682. print("Player missing")
  683. end
  684. elseif Command == "killmenu" then
  685. local People = Game:GetService("Players"):GetPlayers()
  686. local Names = {}
  687. for _, v in pairs(People) do
  688. table.insert(Names, v.Name)
  689. end
  690. local OptionChoosen = Prompt(player, unpack(Names))
  691. print(OptionChoosen)
  692. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  693. if game:GetService("Players")[OptionChoosen].Character then
  694. game:GetService("Players") [OptionChoosen].Character:BreakJoints()
  695. end
  696. else
  697. print("Player missing")
  698. end
  699. elseif Command == "kill" then
  700. for _, Arg in pairs(Arguments) do
  701. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  702. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  703. Player.Character:BreakJoints()
  704. end
  705. end
  706. end
  707. elseif Command == "obc" then
  708. for _, Arg in pairs(Arguments) do
  709. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  710. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  711. Player.MembershipTypeReplicate = 3
  712. end
  713. end
  714. end
  715. elseif Command == "tbc" then
  716. for _, Arg in pairs(Arguments) do
  717. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  718. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  719. Player.MembershipTypeReplicate = 2
  720. end
  721. end
  722. end
  723. elseif Command == "bc" then
  724. for _, Arg in pairs(Arguments) do
  725. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  726. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  727. Player.MembershipTypeReplicate = 1
  728. end
  729. end
  730. end
  731. elseif Command == "ff" then
  732. for _, Arg in pairs(Arguments) do
  733. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  734. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  735. ff = Instance.new ("ForceField")
  736. ff.Parent = Player.Character
  737. end
  738. end
  739. end
  740. elseif Command == "unff" then
  741. for _, Arg in pairs(Arguments) do
  742. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  743. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  744. ff = Instance.new ("ForceField")
  745. ff.Parent = Player.Character
  746. end
  747. end
  748. end
  749. end
  750. elseif Command == "nbc" then
  751. for _, Arg in pairs(Arguments) do
  752. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  753. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  754. Player.MembershipTypeReplicate = 0
  755. end
  756. end
  757. end
  758. end
  759. end
  760. game:GetService("Players").PlayerAdded:connect(onPlayerAdded)
  761. --[ SB Mode ]--
  762. for _, player in pairs(game:GetService("Players"):GetPlayers()) do
  763. onPlayerAdded(player)
  764. end
  765. Game:GetService("RunService").Stepped:connect(function()
  766. local S, E = pcall(function()
  767. if LastClean == nil or time() - LastClean >= 10 then do
  768. collectgarbage("collect")
  769. LastClean = time()
  770. end
  771. end
  772. if not S then
  773. ErrorHandler(E)
  774. end
  775. end)
  776. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement