Advertisement
LeafyUs

Untitled

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