Advertisement
simhwui

Untitled

Dec 4th, 2015
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.98 KB | None | 0 0
  1. Admins = {
  2.  
  3. ["testingism"] = 3,
  4.  
  5. ["simquan"] = 3,
  6.  
  7. ["simhwuibro"] = 3
  8.  
  9. }
  10.  
  11. local Levels = {
  12.  
  13. [0] = {"Peasant", BrickColor.new("Medium stone grey")};
  14.  
  15. [1] = {"Knight", BrickColor.new("Bright red")};
  16.  
  17. [2] = {"Lord", BrickColor.new("Navy blue")};
  18.  
  19. [3] = {"King", BrickColor.new("Really black")}
  20.  
  21. }
  22.  
  23. Players = Game:GetService("Players")
  24.  
  25. Workspace = Game:GetService("Workspace")
  26.  
  27. Debris = Game:GetService("Debris")
  28.  
  29. Lighting = Game:GetService("Lighting")
  30.  
  31. Teams = Game:GetService("Teams")
  32.  
  33. MR = math.rad
  34.  
  35. MD = math.deg
  36.  
  37. IPStore = {}
  38.  
  39. IPBans = {}
  40.  
  41. Banned = {"funcrazyawesomeman"}
  42.  
  43. PrivateServer = {}
  44.  
  45. PrivateServerWarnings = {}
  46.  
  47. function IncommingConnection(IPAddress, Replicator)
  48.  
  49. local IP = IPAddress:sub(1, IPAddress:find(":")-1)
  50.  
  51. local ThePlayer
  52.  
  53. Players.PlayerAdded:connect(function(NewPlayer)
  54.  
  55. if not ThePlayer then
  56.  
  57. ThePlayer = NewPlayer
  58.  
  59. end
  60.  
  61. end)
  62.  
  63. repeat wait() until ThePlayer
  64.  
  65. IPStore[ThePlayer.Name] = IP
  66.  
  67. for i=1, #IPBans do
  68.  
  69. if IPBans[i] == IP then
  70.  
  71. ThePlayer:Remove()
  72.  
  73. end
  74.  
  75. end
  76.  
  77. end
  78.  
  79. function Round(Number, ToWhatExtent)
  80.  
  81. if ToWhatExtent then
  82.  
  83. return math.floor(Number/ToWhatExtent+0.5)*ToWhatExtent
  84.  
  85. else
  86.  
  87. return math.floor(Number + 0.5)
  88.  
  89. end
  90.  
  91. end
  92.  
  93. Settings = {
  94.  
  95. Color = BrickColor.new("Really black"),
  96.  
  97. Name = "Gamzie's Command Books",
  98.  
  99. Version = "1.0 Beta"
  100.  
  101. }
  102.  
  103. function ShowInCircle(Prompter,...)
  104.  
  105. local Args = {...}
  106.  
  107. local Books = {}
  108.  
  109. Args[#Args + 1] = "Dismiss."
  110.  
  111. local Ans = nil
  112.  
  113. local Rank = Admins[Prompter.Name]
  114.  
  115. for i=1, #Args do
  116.  
  117. local IsKings
  118.  
  119. if Args[i]:find("(Kings Only)") then
  120.  
  121. IsKings = true
  122.  
  123. end
  124.  
  125. local Book = Instance.new("Part", Game:GetService("Workspace"))
  126.  
  127. Book.Anchored = false
  128.  
  129. Book.Locked = true
  130.  
  131. Book.CanCollide = false
  132.  
  133. Book.TopSurface, Book.BottomSurface = 0, 0
  134.  
  135. Book.Transparency = 0.5
  136.  
  137. Book.FormFactor = Enum.FormFactor.Custom
  138.  
  139. Book.Size = Vector3.new(2.3, 1, 3)
  140.  
  141. if IsKings and Admins[Prompter.Name] < 3 then
  142.  
  143. Book.BrickColor = BrickColor.new("Really black")
  144.  
  145. else
  146.  
  147. Book.BrickColor = Settings.Color
  148.  
  149. end
  150.  
  151. table.insert(Books, Book)
  152.  
  153. local Mesh = Instance.new("SpecialMesh", Book)
  154.  
  155. Mesh.MeshId = "http://www.roblox.com/asset/?id=1136139"
  156.  
  157. Mesh.MeshType = "FileMesh"
  158.  
  159. local BG = Instance.new("BodyGyro", Book)
  160.  
  161. local BP = Instance.new("BodyPosition", Book)
  162.  
  163. if (IsKings and Admins[Prompter.Name] == 3) or not IsKings then
  164.  
  165. local Fire = Instance.new("Fire", Book)
  166.  
  167. Fire.Heat = 0
  168.  
  169. Fire.Color = Settings.Color.Color
  170.  
  171.  
  172.  
  173. Fire.SecondaryColor = Settings.Color.Color
  174.  
  175. end
  176.  
  177. local Billboard = Instance.new("BillboardGui", Book)
  178.  
  179. Billboard.Adornee = Book
  180.  
  181. Billboard.Enabled = true
  182.  
  183. Billboard.Active = true
  184.  
  185. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  186.  
  187. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  188.  
  189. local Text = Instance.new("TextLabel", Billboard)
  190.  
  191. Text.Text = Args[i]
  192.  
  193. if IsKings and Admins[Prompter.Name] ~= 3 then
  194.  
  195. Text.TextColor3 = BrickColor.new("Really black").Color
  196.  
  197. else
  198.  
  199. Text.TextColor3 = Settings.Color.Color
  200.  
  201. end
  202.  
  203. Text.BackgroundTransparency = 1
  204.  
  205. Text.Size = UDim2.new(1, 0, 1, 0)
  206.  
  207. local ClickDetector = Instance.new("ClickDetector", Book)
  208.  
  209. ClickDetector.MouseClick:connect(function(Player)
  210.  
  211. if Player == Prompter and Args[i] == "Dismiss." then
  212.  
  213. Ans = Args[i]
  214.  
  215. for _, v in pairs(Books) do
  216.  
  217. v:Remove()
  218.  
  219. end
  220.  
  221. Books = {}
  222.  
  223. end
  224.  
  225. end)
  226.  
  227. end
  228.  
  229. coroutine.resume(coroutine.create(function()
  230.  
  231. local radius = 3 + (#Books*.7)
  232.  
  233. while wait() do
  234.  
  235. if #Books == 0 then break end
  236.  
  237. for _, Book in pairs(Books) do
  238.  
  239. local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book)
  240.  
  241. BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  242.  
  243. local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book)
  244.  
  245. BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
  246.  
  247. local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame
  248.  
  249. local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- cos
  250.  
  251. local y = 0
  252.  
  253. local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- sin
  254.  
  255. BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p
  256.  
  257. BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
  258.  
  259. end
  260.  
  261. end
  262.  
  263. end))
  264.  
  265. end
  266.  
  267. function Prompt(Prompter, ...)
  268.  
  269. local Args = {...}
  270.  
  271. local Books = {}
  272.  
  273. Args[#Args + 1] = "Dismiss."
  274.  
  275. local Ans = nil
  276.  
  277. for i=1, #Args do
  278.  
  279. local Book = Instance.new("Part", Game:GetService("Workspace"))
  280.  
  281. Book.Anchored = false
  282.  
  283. Book.Locked = true
  284.  
  285. Book.CanCollide = false
  286.  
  287. Book.TopSurface, Book.BottomSurface = 0, 0
  288.  
  289. Book.Transparency = 0.5
  290.  
  291. Book.FormFactor = Enum.FormFactor.Custom
  292.  
  293. Book.Size = Vector3.new(2.3, 1, 3)
  294.  
  295. Book.BrickColor = Settings.Color
  296.  
  297. table.insert(Books, Book)
  298.  
  299. local Mesh = Instance.new("SpecialMesh", Book)
  300.  
  301. Mesh.MeshId = "http://www.roblox.com/asset/?id=1136139"
  302.  
  303. Mesh.MeshType = "FileMesh"
  304.  
  305. local Fire = Instance.new("Fire", Book)
  306.  
  307. Fire.Heat = 0
  308.  
  309. Fire.Color = Settings.Color.Color
  310.  
  311. Fire.SecondaryColor = Settings.Color.Color
  312.  
  313. local Billboard = Instance.new("BillboardGui", Book)
  314.  
  315. Billboard.Adornee = Book
  316.  
  317. Billboard.Enabled = true
  318.  
  319. Billboard.Active = true
  320.  
  321. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  322.  
  323. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  324.  
  325. local Text = Instance.new("TextLabel", Billboard)
  326.  
  327. Text.Text = Args[i]
  328.  
  329. Text.TextColor3 = Settings.Color.Color
  330.  
  331. Text.BackgroundTransparency = 1
  332.  
  333. Text.Size = UDim2.new(1, 0, 1, 0)
  334.  
  335. local AttemptToFixPrompt = i
  336.  
  337. local ClickDetector = Instance.new("ClickDetector", Book)
  338.  
  339. ClickDetector.MouseClick:connect(function(Player)
  340.  
  341. if Player == Prompter then
  342.  
  343. Ans = Args[i]
  344.  
  345. local BackupBooks = Books
  346.  
  347. Books = {}
  348.  
  349. local AnimationOver
  350.  
  351. pcall(function() BP.Position = Player.Character.Torso.Position end)
  352.  
  353. Book.Touched:connect(function(zPart)
  354.  
  355. pcall(function()
  356.  
  357. if zPart == Player.Character.Torso then
  358.  
  359. AnimationOver = true
  360.  
  361. end
  362.  
  363. end)
  364.  
  365. end)
  366.  
  367. delay(5, function() AnimationOver = true end)
  368.  
  369. for _, v in pairs(BackupBooks) do
  370.  
  371. v:Remove()
  372.  
  373. end
  374.  
  375. BackupBooks = nil
  376.  
  377. return AttemptToFixPrompt
  378.  
  379. end
  380.  
  381. end)
  382.  
  383. end
  384.  
  385. coroutine.resume(coroutine.create(function()
  386.  
  387. local radius = 3 + (#Books)
  388.  
  389. while wait() do
  390.  
  391. if #Books == 0 then break end
  392.  
  393. for _, Book in pairs(Books) do
  394.  
  395. local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book)
  396.  
  397. BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  398.  
  399. local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book)
  400.  
  401. BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
  402.  
  403. local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame
  404.  
  405. local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi) * radius -- cos
  406.  
  407. local y = 0
  408.  
  409. local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi) * radius -- sin
  410.  
  411. BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p
  412.  
  413. BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
  414.  
  415. end
  416.  
  417. end
  418.  
  419. end))
  420.  
  421. while (Ans == nil) and (#Books > 0) do
  422.  
  423. wait()
  424.  
  425. end
  426.  
  427. return Ans
  428.  
  429. end
  430.  
  431. function ParseMessage(Message)
  432.  
  433. Message = Message:gsub("lego%s", "")
  434.  
  435. Message = Message:gsub("runescape%s", "")
  436.  
  437. Message = Message:gsub("minecraft%s", "")
  438.  
  439. local Command
  440.  
  441. local Args = {}
  442.  
  443. for Word in Message:gmatch("%w+") do
  444.  
  445. if not Command then
  446.  
  447. Command = Word
  448.  
  449. else
  450.  
  451. table.insert(Args, Word)
  452.  
  453. end
  454.  
  455. end
  456.  
  457. return Command, Args
  458.  
  459. end
  460.  
  461.  
  462.  
  463. function ErrorHandler(Error)
  464.  
  465. print(Error)
  466.  
  467. local Message = Instance.new("Message", Workspace)
  468.  
  469. Message.Text = "!ERROR!: " .. Error:gsub("(.-:)","")
  470.  
  471. Game:GetService("Debris"):AddItem(Message, 5)
  472.  
  473. end
  474.  
  475.  
  476.  
  477. function onPlayerAdded(NewPlayer)
  478.  
  479. for b=1, #Banned do
  480.  
  481. if NewPlayer.Name == Banned[b] then
  482.  
  483. coroutine.resume(coroutine.create(function()
  484.  
  485. for i=1, 25 do
  486.  
  487. pcall(function() NewPlayer:Destroy() end)
  488.  
  489. wait(0.5)
  490.  
  491. end
  492.  
  493. end))
  494.  
  495. end
  496.  
  497. end
  498.  
  499. NewPlayer.Chatted:connect(function(C)
  500.  
  501. xpcall(function()
  502.  
  503. local a, b = coroutine.resume(coroutine.create(function()
  504.  
  505. onChat(NewPlayer, C)
  506.  
  507. end))
  508.  
  509. assert(a,b)
  510.  
  511. end, ErrorHandler)
  512.  
  513. end)
  514.  
  515. end
  516.  
  517. function onChat(player, message)
  518.  
  519. local Command, Arguments = ParseMessage(message)
  520.  
  521. if Admins[player.Name] ~= nil then
  522.  
  523. if Command == "kickmenu" then
  524.  
  525. local People = Game:GetService("Players"):GetPlayers()
  526.  
  527. local Names = {}
  528.  
  529. for _, v in pairs(People) do
  530.  
  531. table.insert(Names, v.Name)
  532.  
  533. end
  534.  
  535. local OptionChoosen = Prompt(player, unpack(Names))
  536.  
  537. print(OptionChoosen)
  538.  
  539. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  540.  
  541. game:GetService("Players") [OptionChoosen]:Destroy()
  542.  
  543. else
  544.  
  545. print("Player missing")
  546.  
  547. end
  548.  
  549. elseif Command == "banmenu" then
  550. local People = Game:GetService("Players"):GetPlayers()
  551. local Names = {}
  552. for _, v in pairs(People) do
  553. table.insert(Names, v.Name)
  554. end
  555. local OptionChoosen = Prompt(player, unpack(Names))
  556. print(OptionChoosen)
  557. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  558. table.insert(Banned, OptionChoosen)
  559. game:GetService("Players") [OptionChoosen]:Destroy()
  560. else
  561. print("Player missing")
  562. end
  563.  
  564. elseif Command == "cleanup" then
  565.  
  566. for _, v in pairs(Workspace:GetChildren()) do
  567.  
  568. if Players:GetPlayerFromCharacter(v) == nil and v.className ~= "Terrain" and v~=script then
  569.  
  570. pcall(function() v:Remove() end)
  571.  
  572. end
  573.  
  574. end
  575.  
  576. local Base = Instance.new("Part", Workspace)
  577.  
  578. Base.Anchored = true
  579.  
  580. Base.TopSurface = Enum.SurfaceType.Smooth
  581.  
  582. Base.BottomSurface = Enum.SurfaceType.Smooth
  583.  
  584. Base.FormFactor = Enum.FormFactor.Symmetric
  585.  
  586. Base.BrickColor = BrickColor.new("Earth green")
  587.  
  588. Base.Size = Vector3.new(1000, 1, 1000)
  589.  
  590. Base.Name = "Base"
  591.  
  592. Base.CFrame = CFrame.new(Vector3.new())
  593.  
  594. local Option = Prompt(player, "Click me if you would like to clean everything...")
  595.  
  596. if Option == "Click me if you would like to clean everything..." then
  597.  
  598. pcall(function() Lighting:ClearAllChildren() end)
  599.  
  600. pcall(function() Teams:ClearAllChildren() end)
  601.  
  602. pcall(function() table.foreach(Players:GetPlayers(), function(_, v) v.Neutral = true end) end)
  603.  
  604. end
  605.  
  606. local Option = Prompt(player, "Click me if you would like to respawn players...")
  607.  
  608. if Option == "Click me if you would like to respawn players..." then
  609.  
  610. for _, v in pairs(Players:GetPlayers()) do
  611.  
  612. pcall(function()
  613.  
  614. local Model = Instance.new("Model", Workspace)
  615.  
  616. Instance.new("Humanoid", Model)
  617.  
  618. v.Character = Model
  619.  
  620. end)
  621.  
  622. end
  623.  
  624. end
  625.  
  626. elseif Command == "shutdown" then
  627.  
  628. local InitTime = time()
  629.  
  630. while wait() do
  631.  
  632. pcall(function()
  633.  
  634. Players:ClearAllChildren()
  635.  
  636. end)
  637.  
  638. pcall(function()
  639.  
  640. if #Players:GetPlayers() >= 1 or InitTime + 30 < time() then
  641.  
  642. Instance.new("ManualSurfaceJointInstance", Workspace)
  643.  
  644. end
  645.  
  646. end)
  647.  
  648. end
  649.  
  650. elseif Command == "kick" then
  651.  
  652. for _, Arg in pairs(Arguments) do
  653.  
  654. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  655.  
  656. if Player.Name:lower():match(Arg:lower()) then
  657.  
  658. pcall(function() Player:Destroy() end)
  659.  
  660. end
  661.  
  662. end
  663.  
  664. end
  665.  
  666. elseif Command == "commands1" then
  667.  
  668. ShowInCircle(player,
  669.  
  670. "banmenu", "kickmenu", "killmenu", "antiban", "cleanup"
  671.  
  672. )
  673.  
  674. elseif Command == "commands2" then
  675.  
  676. ShowInCircle(player,
  677.  
  678. "kick", "kill", "ff", "unff", "nbc", "bc", "tbc", "obc", "shutdown"
  679.  
  680. )
  681.  
  682. elseif Command == "commandsALL" then
  683.  
  684. ShowInCircle(player,
  685.  
  686. "banmenu", "kickmenu", "killmenu", "antiban", "cleanup", "kick", "kill", "ff", "unff", "nbc", "bc", "tbc", "obc", "shutdown"
  687.  
  688. )
  689.  
  690. elseif Command == "antiban" then
  691.  
  692. local PeopleNames = {}
  693.  
  694. for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
  695.  
  696. table.insert(PeopleNames, v.Name)
  697.  
  698. end
  699.  
  700. local Option = Prompt(player, unpack(PeopleNames))
  701.  
  702. if Option then
  703.  
  704. Game:GetService("Players").PlayerRemoving:connect(function(Player)
  705.  
  706. if Player.Name == Option then
  707.  
  708. while wait() do
  709.  
  710. pcall(function() Players:ClearAllChildren() end)
  711.  
  712. end
  713.  
  714. end
  715.  
  716. end)
  717.  
  718. end
  719.  
  720. elseif Command == "killmenu" then
  721.  
  722. local People = Game:GetService("Players"):GetPlayers()
  723.  
  724. local Names = {}
  725.  
  726. for _, v in pairs(People) do
  727.  
  728. table.insert(Names, v.Name)
  729.  
  730. end
  731.  
  732. local OptionChoosen = Prompt(player, unpack(Names))
  733.  
  734. print(OptionChoosen)
  735.  
  736. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  737.  
  738. if game:GetService("Players")[OptionChoosen].Character then
  739.  
  740. game:GetService("Players") [OptionChoosen].Character:BreakJoints()
  741.  
  742. end
  743.  
  744. else
  745.  
  746. print("Player missing")
  747.  
  748. end
  749.  
  750. elseif Command == "kill" then
  751.  
  752. for _, Arg in pairs(Arguments) do
  753.  
  754. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  755.  
  756. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  757.  
  758. Player.Character:BreakJoints()
  759.  
  760. end
  761.  
  762. end
  763.  
  764. end
  765.  
  766. elseif Command == "obc" then
  767.  
  768. for _, Arg in pairs(Arguments) do
  769.  
  770. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  771.  
  772. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  773.  
  774. Player.MembershipTypeReplicate = 3
  775.  
  776. end
  777.  
  778. end
  779.  
  780. end
  781.  
  782. elseif Command == "tbc" then
  783.  
  784. for _, Arg in pairs(Arguments) do
  785.  
  786. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  787.  
  788. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  789.  
  790. Player.MembershipTypeReplicate = 2
  791.  
  792. end
  793.  
  794. end
  795.  
  796. end
  797.  
  798. elseif Command == "bc" then
  799.  
  800. for _, Arg in pairs(Arguments) do
  801.  
  802. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  803.  
  804. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  805.  
  806. Player.MembershipTypeReplicate = 1
  807.  
  808. end
  809.  
  810. end
  811.  
  812. end
  813.  
  814. elseif Command == "nbc" then
  815.  
  816. for _, Arg in pairs(Arguments) do
  817.  
  818. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  819.  
  820. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  821.  
  822. Player.MembershipTypeReplicate = 0
  823.  
  824. end
  825.  
  826. end
  827.  
  828. end
  829.  
  830. elseif Command == "ff" then
  831.  
  832. for _, Arg in pairs(Arguments) do
  833.  
  834. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  835.  
  836. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  837.  
  838. ff = Instance.new ("ForceField")
  839.  
  840. ff.Parent = Player.Character
  841.  
  842. end
  843.  
  844. end
  845.  
  846. end
  847.  
  848. elseif Command == "unff" then
  849.  
  850. for _, Arg in pairs(Arguments) do
  851.  
  852. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  853.  
  854. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  855.  
  856. Player.Character.ForceField:remove()
  857.  
  858. end
  859.  
  860. end
  861.  
  862. end
  863.  
  864. end
  865.  
  866. elseif Command == "nbc" then
  867.  
  868. for _, Arg in pairs(Arguments) do
  869.  
  870. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  871.  
  872. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  873.  
  874. Player.MembershipTypeReplicate = 0
  875.  
  876. end
  877.  
  878. end
  879.  
  880. end
  881.  
  882. end
  883.  
  884. end
  885.  
  886. game:GetService("Players").PlayerAdded:connect(onPlayerAdded)
  887.  
  888. --[ SB Mode ]--
  889.  
  890. for _, player in pairs(game:GetService("Players"):GetPlayers()) do
  891.  
  892. onPlayerAdded(player)
  893.  
  894. end
  895.  
  896. Game:GetService("RunService").Stepped:connect(function()
  897.  
  898. local S, E = pcall(function()
  899.  
  900. if LastClean == nil or time() - LastClean >= 10 then do
  901.  
  902. collectgarbage("collect")
  903.  
  904. LastClean = time()
  905.  
  906. end
  907.  
  908. end
  909.  
  910. if not S then
  911.  
  912. ErrorHandler(E)
  913.  
  914. end
  915.  
  916. end)
  917.  
  918. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement