Advertisement
battleman22222

admin books

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