Submiter55

Untitled

Mar 31st, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.26 KB | None | 0 0
  1. coroutine.resume(coroutine.create(function()
  2. --- pre-init definitions ---
  3. -- using a new pool system as a workaround for rc7's loadstring issue
  4.  
  5. pool = {}
  6. pool.new = function()
  7. local base = {}
  8. base.global = {}
  9. base.class = function(name) base[name] = {} end
  10. base.add = function(class, name, func) base[class][name] = func end
  11. base.define = function(class, name, val) base[class][name] = val end
  12. base.get = function(class, name) return base[class][name] end
  13. base.call = function(class, name) base[class][name]() end
  14. return base
  15. end
  16. local print = function(k) print("[T0PK3K dbg]: ".. k) end
  17.  
  18. --- init base ---
  19.  
  20. local kek = {}
  21. kek.pool = pool.new(); pool = kek.pool; player = game.Players.ilostmycool;
  22.  
  23. CreateObject = function(properties)
  24. local object = Instance.new(properties.Class)
  25. for i, v in pairs(properties) do
  26. pcall(function()
  27. if v ~= "Class" then
  28. object[i] = v
  29. end
  30. end)
  31. end
  32. return object
  33. end
  34.  
  35. -- t.menus will now define pre-created objects instead of just '0xf'
  36. kek.menus = {
  37. ["Main"] = {},
  38. ["LocalPlayer"] = {Links = {}, Auto = {}, ReqBar = false},
  39. ["Server"] = {Links = {"Destruction"}, Auto = {}, ReqBar = false},
  40. ["Scripts"] = {Links = {}, Auto = {
  41. CreateObject {
  42. Class = "TextBox",
  43. Name = "search",
  44. BackgroundColor3 = Color3.new(14/255, 60/255, 66/255),
  45. BorderColor3 = Color3.new(3/255, 53/255, 49/255),
  46. Position = UDim2.new(0, 13, 0, 10),
  47. Size = UDim2.new(1, -26, 0, 27),
  48. Font = Enum.Font.SourceSans,
  49. FontSize = Enum.FontSize.Size14,
  50. Text = "Search for a script",
  51. TextColor3 = Color3.new(204/255, 204/255, 204/255)
  52. },
  53. CreateObject {
  54. Class = "ScrollingFrame",
  55. Name = "list",
  56. BackgroundColor3 = Color3.new(3/255, 39/255, 40/255),
  57. BorderSizePixel = 0,
  58. Position = UDim2.new(0, 13, 0, 50),
  59. Size = UDim2.new(1, -26, 1, -60),
  60. CanvasSize = UDim2.new(0, 0, 0, 0)
  61. },
  62. }, ReqBar = false},
  63. ["Players"] = {Links = {}, Auto = {}, ReqBar = true},
  64. ["Miscellaneous"] = {Links = {}, Auto = {}, ReqBar = false},
  65. ["Destruction"] = {Links = {}, Auto = {}, ReqBar = false, DoNotInclude = true}
  66. }
  67.  
  68.  
  69. --- global definitions ---
  70. pool.define("global","gui", game:GetObjects("rbxassetid://388041033")[1]); local gui = pool.get("global", "gui");
  71. pool.define("global","root", pool.get("global", "gui").root)
  72. pool.define("global","main", pool.get("global", "root").main)
  73. pool.define("global","title", pool.get("global", "root").topbar.title)
  74. pool.define("global","NoTab_InnerSize",UDim2.new(1,-10,1,-60))
  75. pool.define("global","NoTab_InnerPos",UDim2.new(0,5,0,56))
  76. pool.define("global","StateRunning",false)
  77. pool.define("global","TabTemplate",pool.get("global", "gui").root.template.tabframe.tabtemp)
  78. pool.define("global","WindowTemplate",pool.get("global","gui").root.template)
  79. pool.define("global","CurrentPlayers",{})
  80.  
  81. --- utility (general utility) --
  82. pool.class("utility")
  83. pool.utility.IterateObject = function(object, class, func)
  84. local function localiter(o)
  85. for i, v in pairs(o:GetChildren()) do
  86. if v:IsA(class) then
  87. func(v)
  88. end
  89. localiter(v)
  90. end
  91. end
  92. localiter(object)
  93. end
  94. pool.utility.GetObject = function(name)
  95. local function localiter(o)
  96. for i, v in pairs(o:GetChildren()) do
  97. if v.Name == name then return v end
  98. localiter(v)
  99. end
  100. end
  101. return localiter(gui)
  102. end print("LOAD")
  103. pool.utility.CreateObject = function(properties)
  104. local object = Instance.new(properties.Class)
  105. for i, v in pairs(properties) do
  106. pcall(function()
  107. if v ~= "Class" then
  108. object[i] = v
  109. end
  110. end)
  111. end
  112. return object
  113. end
  114. pool.utility.SetProperties = function(obj, properties)
  115. for i, v in pairs(properties) do
  116. pcall(function()
  117. obj[i] = v
  118. end)
  119. end
  120. end
  121. pool.utility.CheckDependancies = function(obj, deps)
  122. for i, v in pairs(deps) do
  123. if not obj[v] then
  124. return false
  125. end
  126. end
  127. return true
  128. end
  129. pool.utility.LittleFriend = function(p)
  130. -- thanks rias<3
  131. plr=p.Character
  132. Shaft=Instance.new("Part", plr)
  133. Shaft.Name='Shaft'
  134. Shaft.Size=Vector3.new(1, 2.5, 1)
  135. Shaft.TopSurface=0
  136. Shaft.BottomSurface=0
  137. Shaft.CanCollide=true
  138. Cyln=Instance.new("CylinderMesh", Shaft)
  139. Cyln.Scale=Vector3.new(0.5,0.7,0.5)
  140. Instance.new("Weld", plr)
  141. plr.Weld.Part0=plr.Torso
  142. plr.Weld.Part1=plr.Shaft
  143. plr.Weld.C0=CFrame.new(0,-0.35,-0.9)*CFrame.fromEulerAnglesXYZ(2.2,0,0)
  144. Shaft.BrickColor=BrickColor.new("Pastel brown")
  145. Tip=Instance.new("Part", plr)
  146. Tip.Name='Tip'
  147. Tip.TopSurface=0
  148. Tip.BottomSurface=0
  149. Tip.Size=Vector3.new(1, 1, 1)
  150. Tip.CanCollide=true
  151. Tip.Touched:connect(function(prt) if prt.Parent~=player then spawn(function() for i=1, 5 do local pert=Instance.new("Part", player) pert.CFrame=CFrame.new(prt.Position) pert.CanCollide=true local mesh=Instance.new("BlockMesh", pert) mesh.Scale=Vector3.new(0.2,0.2,0.2) pert.BrickColor=BrickColor.new("White") end end) end end)
  152. Cyln2=Instance.new("SpecialMesh", Tip)
  153. Cyln2.MeshType='Sphere'
  154. Cyln2.Scale=Vector3.new(0.6,0.6,0.6)
  155. Instance.new("Weld", plr).Name='Weld2'
  156. plr.Weld2.Part0=plr.Shaft
  157. plr.Weld2.Part1=plr.Tip
  158. plr.Weld2.C0=CFrame.new(0,-.9,0)
  159. Tip.BrickColor=BrickColor.new("Pink")
  160. -----
  161. Ball1=Instance.new("Part", plr)
  162. Ball1.Name='Ball1'
  163. Ball1.Size=Vector3.new(1, 1, 1)
  164. Ball1.TopSurface=0
  165. Ball1.BottomSurface=0
  166. Cyln3=Instance.new("SpecialMesh", Ball1)
  167. Cyln3.MeshType='Sphere'
  168. Cyln3.Scale=Vector3.new(0.4,0.4,0.4)
  169. Instance.new("Weld", plr).Name='Weld3'
  170. plr.Weld3.Part0=plr.Shaft
  171. plr.Weld3.Part1=plr.Ball1
  172. plr.Weld3.C0=CFrame.new(0.225,.4,0.2)
  173. Ball1.BrickColor=BrickColor.new("Pastel brown")
  174. -----
  175. Ball2=Instance.new("Part", plr)
  176. Ball2.Name='Ball2'
  177. Ball2.Size=Vector3.new(1, 1, 1)
  178. Ball2.TopSurface=0
  179. Ball2.BottomSurface=0
  180. Cyln3=Instance.new("SpecialMesh", Ball2)
  181. Cyln3.MeshType='Sphere'
  182. Cyln3.Scale=Vector3.new(0.4,0.4,0.4)
  183. Instance.new("Weld", plr).Name='Weld4'
  184. plr.Weld4.Part0=plr.Shaft
  185. plr.Weld4.Part1=plr.Ball2
  186. plr.Weld4.C0=CFrame.new(-0.225,.4,0.2)
  187. Ball2.BrickColor=BrickColor.new("Pastel brown")
  188. end
  189. pool.utility.ScalePlayer = function(p, size)
  190. -- omfg thanks var
  191. local pchar = p.Character
  192. local function scale(chr,scl)
  193.  
  194. for _,v in pairs(pchar:GetChildren()) do
  195. if v:IsA("Hat") then
  196. v:Clone()
  197. v.Parent = game.Lighting
  198. end
  199. end
  200.  
  201. local Head = chr['Head']
  202. local Torso = chr['Torso']
  203. local LA = chr['Left Arm']
  204. local RA = chr['Right Arm']
  205. local LL = chr['Left Leg']
  206. local RL = chr['Right Leg']
  207. local HRP = chr['HumanoidRootPart']
  208.  
  209. wait(0.1)
  210.  
  211. Head.formFactor = 3
  212. Torso.formFactor = 3
  213. LA.formFactor = 3
  214. RA.formFactor = 3
  215. LL.formFactor = 3
  216. RL.formFactor = 3
  217. HRP.formFactor = 3
  218.  
  219. Head.Size = Vector3.new(scl * 2, scl, scl)
  220. Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
  221. LA.Size = Vector3.new(scl, scl * 2, scl)
  222. RA.Size = Vector3.new(scl, scl * 2, scl)
  223. LL.Size = Vector3.new(scl, scl * 2, scl)
  224. RL.Size = Vector3.new(scl, scl * 2, scl)
  225. HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
  226.  
  227. local Motor1 = Instance.new('Motor6D', Torso)
  228. Motor1.Part0 = Torso
  229. Motor1.Part1 = Head
  230. Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  231. Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  232. Motor1.Name = "Neck"
  233.  
  234. local Motor2 = Instance.new('Motor6D', Torso)
  235. Motor2.Part0 = Torso
  236. Motor2.Part1 = LA
  237. Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  238. Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  239. Motor2.Name = "Left Shoulder"
  240.  
  241. local Motor3 = Instance.new('Motor6D', Torso)
  242. Motor3.Part0 = Torso
  243. Motor3.Part1 = RA
  244. Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  245. Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  246. Motor3.Name = "Right Shoulder"
  247.  
  248. local Motor4 = Instance.new('Motor6D', Torso)
  249. Motor4.Part0 = Torso
  250. Motor4.Part1 = LL
  251. Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  252. Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  253. Motor4.Name = "Left Hip"
  254.  
  255. local Motor5 = Instance.new('Motor6D', Torso)
  256. Motor5.Part0 = Torso
  257. Motor5.Part1 = RL
  258. Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  259. Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  260. Motor5.Name = "Right Hip"
  261.  
  262. local Motor6 = Instance.new('Motor6D', HRP)
  263. Motor6.Part0 = HRP
  264. Motor6.Part1 = Torso
  265. Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  266. Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  267.  
  268. end
  269.  
  270. scale(pchar, size)
  271.  
  272. for _,v in pairs(game.Lighting:GetChildren()) do
  273. if v:IsA("Hat") then
  274. v.Parent = pchar
  275. end
  276. end
  277. end
  278. pool.utility.GetPlayers = function(str)
  279. if str == "all" then
  280. return game.Players:GetPlayers()
  281. end
  282. if str == "me" then
  283. return {game.Players.LocalPlayer}
  284. end
  285. if str == "others" then
  286. local cm = {}
  287. for i, v in pairs(game.Players:GetPlayers()) do
  288. if v ~= game.Players.LocalPlayer then
  289. table.insert(cm, v)
  290. end
  291. end
  292. return cm
  293. end
  294. local pn = str:gmatch("([^,]+)")
  295. local pl = {}
  296. for ln in pn do
  297. for i, v in pairs(game.Players:GetPlayers()) do
  298. local nm = (v.Name):lower()
  299. if string.sub(nm,1,#ln)==(ln):lower() then
  300. table.insert(pl, v)
  301. end
  302. end
  303. end
  304. return pl
  305. end
  306. pool.utility.StartFly = function()
  307. local mouse=game.Players.LocalPlayer:GetMouse''
  308. localplayer=game.Players.LocalPlayer
  309. game.Players.LocalPlayer.Character:WaitForChild("Torso")
  310. local torso = game.Players.LocalPlayer.Character.Torso
  311. local flying = true
  312. local speed=0
  313. local keys={a=false,d=false,w=false,s=false}
  314. local e1
  315. local e2
  316. local function start()
  317. local pos = Instance.new("BodyPosition",torso)
  318. local gyro = Instance.new("BodyGyro",torso)
  319. pos.Name="EPIXPOS"
  320. pos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  321. pos.position = torso.Position
  322. gyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  323. gyro.cframe = torso.CFrame
  324. repeat
  325. wait()
  326. localplayer.Character.Humanoid.PlatformStand=true
  327. local new=gyro.cframe - gyro.cframe.p + pos.position
  328. if not keys.w and not keys.s and not keys.a and not keys.d then
  329. speed=1
  330. end
  331. if keys.w then
  332. new = new + workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  333. speed=speed+0.01
  334. end
  335. if keys.s then
  336. new = new - workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  337. speed=speed+0.01
  338. end
  339. if keys.d then
  340. new = new * CFrame.new(speed,0,0)
  341. speed=speed+0.01
  342. end
  343. if keys.a then
  344. new = new * CFrame.new(-speed,0,0)
  345. speed=speed+0.01
  346. end
  347. if speed>5 then
  348. speed=5
  349. end
  350. pos.position=new.p
  351. if keys.w then
  352. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(-math.rad(speed*15),0,0)
  353. elseif keys.s then
  354. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(math.rad(speed*15),0,0)
  355. else
  356. gyro.cframe = workspace.CurrentCamera.CoordinateFrame
  357. end
  358. until flying==false
  359. if gyro then gyro:Destroy() end
  360. if pos then pos:Destroy() end
  361. flying=false
  362. localplayer.Character.Humanoid.PlatformStand=false
  363. speed=0
  364. end
  365. e1=mouse.KeyDown:connect(function(key)
  366. if not torso or not torso.Parent then flying=false e1:disconnect() e2:disconnect() return end
  367. if key=="w" then
  368. keys.w=true
  369. elseif key=="s" then
  370. keys.s=true
  371. elseif key=="a" then
  372. keys.a=true
  373. elseif key=="d" then
  374. keys.d=true
  375. elseif key=="z" then
  376. if flying==true then
  377. flying=false
  378. else
  379. flying=true
  380. start()
  381. end
  382. end
  383. end)
  384. e2=mouse.KeyUp:connect(function(key)
  385. if key=="w" then
  386. keys.w=false
  387. elseif key=="s" then
  388. keys.s=false
  389. elseif key=="a" then
  390. keys.a=false
  391. elseif key=="d" then
  392. keys.d=false
  393. end
  394. end)
  395. start()
  396. end
  397. --- gui (gui lib) ---
  398. pool.class("gui")
  399. pool.gui.FindListRow = function(n, a)
  400. if n == 0 then n = 1 end
  401. if math.fmod(n, a) == 0 then
  402. n = n - 1
  403. end
  404. return math.floor(n / a)
  405. end
  406. pool.gui.GenerateTabs = function(base, tabs, execution)
  407. local tab_base = base.tabframe
  408. local inner_base = base.inner
  409. local pselect_base = base.playerbar
  410. if not pool.utility.CheckDependancies(base, {"tabframe", "inner", "playerbar"}) then
  411. return
  412. end
  413. for i, v in pairs(tabs) do
  414. local Virti = i
  415. local Virto = (function(n) if n < 0 then return 0 end return n end)(Virti - 1)
  416. local TempTab = pool.get("global", "TabTemplate"):Clone()
  417. pool.utility.SetProperties (TempTab, {
  418. Text = v,
  419. Position = UDim2.new(((0.25 * math.fmod(Virto, 4))), 2, 0, ((22 * (pool.gui.FindListRow(Virti, 4))) + 2)),
  420. Parent = tab_base,
  421. Name = "tab-" .. string.lower(v)
  422. })
  423. if math.ceil(Virti / 4) == math.ceil(#tabs / 4) then
  424. nv = 1/(#tabs - (((pool.gui.FindListRow(Virti, 4)))*4))
  425. pool.utility.SetProperties (TempTab, {
  426. Text = v,
  427. Position = UDim2.new(((nv * math.fmod(Virto, 4))), 2, 0, ((22 * (pool.gui.FindListRow(Virti, 4))) + 2)),
  428. Size = UDim2.new(nv, -2, 0, 20),
  429. Parent = tab_base,
  430. Name = "tab-" .. string.lower(v)
  431. })
  432. end
  433. TempTab.MouseButton1Down:connect(function()
  434. execution (v)
  435. end)
  436. end
  437. if math.ceil(#tabs / 4)>1 then
  438. local rem = (math.ceil(#tabs / 4))
  439. tab_base.Size = UDim2.new(1, -10, 0, ((22 * rem) + 4))
  440. pselect_base.Position = pselect_base.Position + UDim2.new(0, 0, 0, (22 * (rem-2)))
  441. inner_base.Size = UDim2.new(1, -10, 1, (-105 + -((rem-1) * 20)))
  442. inner_base.Position = UDim2.new(0, 5, 0, (85 + ((rem-1) * 20)))
  443. end
  444. end
  445. pool.gui.GenerateButtonList = function(base, list, specifications, custom, leavex)
  446. if custom == nil then
  447. BaseButton = pool.utility.CreateObject {
  448. Class = "TextButton",
  449. BackgroundColor3 = specifications.BackgroundColor,
  450. BackgroundTransparency = specifications.BackgroundTransparency,
  451. BorderSizePixel = 0,
  452. FontSize = specifications.FontSize,
  453. Size = UDim2.new(
  454. (1/(specifications.NumberPerRow)),
  455. -(specifications.ButtonSeperation) - specifications.BorderDistance,
  456. 0, specifications.ButtonHeight
  457. )
  458. }
  459. else
  460. BaseButton = custom
  461. end
  462. for i, v in pairs(list) do
  463. local Virti = i
  464. local Virto = (function(n) if n < 0 then return 0 end return n end)(Virti - 1)
  465. Virto = Virto + pool.gui.FindListRow(Virti, specifications.NumberPerRow)
  466. local BClone = BaseButton:Clone()
  467. if leavex == true then
  468. pool.utility.SetProperties(BClone, {
  469. Parent = base,
  470. Text = v.Text,
  471. Position = UDim2.new(
  472. BaseButton.Position.X.Scale,
  473. BaseButton.Position.X.Offset,
  474. 0, ((specifications.ButtonSeperation + specifications.ButtonHeight) * pool.gui.FindListRow(Virti, specifications.NumberPerRow)) + (specifications.BorderDistance/2)
  475. )
  476. })
  477. else
  478. pool.utility.SetProperties(BClone, {
  479. Parent = base,
  480. Text = v.Text,
  481. Position = UDim2.new(
  482. (1/(specifications.NumberPerRow)) * math.fmod(Virto, specifications.NumberPerRow + 1),
  483. specifications.ButtonSeperation + (specifications.BorderDistance/2),
  484. 0, ((specifications.ButtonSeperation + specifications.ButtonHeight) * pool.gui.FindListRow(Virti, specifications.NumberPerRow)) + (specifications.BorderDistance/2)
  485. ) --[[ that was a doozy]]
  486. })
  487. end
  488. BClone.MouseButton1Down:connect(function()
  489. v.func()
  490. end)
  491. end
  492. if base:IsA("ScrollingFrame") then
  493. base.BorderSizePixel = 0
  494. base.ScrollBarThickness = 6
  495. base.CanvasSize = UDim2.new(0, 0, 0, math.ceil(#list / specifications.NumberPerRow)*(specifications.ButtonHeight+specifications.ButtonSeperation) + 15)
  496. end
  497. end
  498. --- window lib ---
  499. pool.class("windows")
  500. pool.define("windows", "wpool", {})
  501. pool.define("windows", "current", "Main")
  502. pool.windows.open = function(w)
  503. if not kek.menus[w] then return end
  504. for i, v in pairs(pool.windows.wpool) do
  505. v.Visible = false
  506. end; pool.get("global", "main").Visible = false
  507. local handle
  508. for i, v in pairs(pool.windows.wpool) do
  509. if v.Name == "menu-" .. w then
  510. handle = v
  511. end
  512. end
  513. if w == "Main" then handle = pool.get("global", "main") end
  514. handle.Visible = true
  515. pool.get("global", "title").Text = "T0PK3K 2.0 ["..w.." Menu]"
  516. pool.windows.current = w
  517. end
  518. pool.windows.get = function(w)
  519. for i, v in pairs(pool.windows.wpool) do
  520. if v.Name == "menu-"..w then
  521. return v
  522. end
  523. end
  524. end
  525. pool.windows.initialize = function()
  526. tabs = {}
  527. for i, v in pairs(kek.menus) do
  528. if not v["DoNotInclude"] then
  529. table.insert(tabs, i)
  530. end
  531. end
  532. for i, v in pairs(kek.menus) do
  533. if i == "Main" then
  534. local space = pool.get("global", "root").main
  535. local bf = space.mbut.inside
  536. for i, v in pairs(bf:GetChildren()) do
  537. v.MouseButton1Down:connect(function()
  538. pool.windows.open(v.Name)
  539. end)
  540. end
  541. if game.Workspace.FilteringEnabled == true then
  542. space.fe.Text = "FilteringEnabled: true"
  543. space.fe.TextColor3 = BrickColor.new("Bright red").Color
  544. else
  545. space.fe.Text = "FilteringEnabled: false"
  546. space.fe.TextColor3 = BrickColor.new("Bright green").Color
  547. end
  548. space.username.Text = "Welcome, " .. game.Players.LocalPlayer.Name
  549. else
  550. local space = pool.get("global", "WindowTemplate"):Clone(); space.Name = "menu-" .. i
  551. local ltabs = {}; for x, m in pairs(tabs) do table.insert(ltabs, m) end
  552. for x, m in pairs(v.Links) do
  553. table.insert(ltabs, m)
  554. end; space.tabframe.tabtemp.Parent = nil;
  555. pool.gui.GenerateTabs(space, ltabs, function(tab)
  556. pool.windows.open(tab)
  557. end)
  558. if #v.Auto > 0 then
  559. for x, m in pairs(v.Auto) do
  560. m.Parent = space.inner
  561. end
  562. end
  563. if v.ReqBar == false then
  564. space.inner.Size = pool.get("global", "NoTab_InnerSize") wait()
  565. space.inner.Position = pool.get("global", "NoTab_InnerPos")
  566. space.playerbar.Visible = false
  567. else
  568. space.inner.Size = UDim2.new(1, -10, 1, -87)
  569. space.inner.Position = UDim2.new(0, 5, 0, 83)
  570. space.playerbar.Visible = true
  571. end
  572. table.insert(pool.windows.wpool, space); space.Parent = pool.get("global", "root")
  573. end
  574. end
  575. end; pool.windows.initialize()
  576. --- server ---
  577. pool.class("server")
  578. pool.define("server", "handle", pool.windows.get("Server"))
  579. pool.define("server", "dhandle", pool.windows.get("Destruction"))
  580. pool.server.initialize = function()
  581. local handle = pool.get("server", "handle")
  582. local dhandle = pool.get("server", "dhandle")
  583. pool.gui.GenerateButtonList (dhandle.inner, {
  584. {Text = "Gaben", func = (function()
  585. local steam = "rbxassetid://182119824"
  586. local gaben = "rbxassetid://177984640"
  587. local gaben2 = "rbxassetid://291288584"
  588.  
  589. function particle(p, b)
  590. local a = Instance.new("ParticleEmitter", p)
  591. a.Rate = 750
  592. a.Lifetime = NumberRange.new(20, 30)
  593. a.VelocitySpread = 200
  594. a.Texture = b
  595. end
  596.  
  597. function decal(p, b)
  598. local sides = {"Back", "Bottom", "Front", "Left", "Right", "Top"}
  599. for i, v in pairs(sides) do
  600. local a = Instance.new("Decal", p)
  601. a.Texture = b
  602. a.Face = v
  603. end
  604. end
  605.  
  606. function recurse(x)
  607. for i, v in pairs(x:GetChildren()) do
  608. if v:IsA("BasePart") then
  609. particle(v, steam)
  610. particle(v, gaben)
  611. decal(v, gaben2)
  612. end
  613. if #(v:GetChildren())>0 then
  614. recurse(v)
  615. end
  616. end
  617. end
  618.  
  619. recurse(game)
  620. local mu = Instance.new("Sound", game.Workspace)
  621. mu.Volume = 1
  622. mu.Looped = true
  623. mu.Pitch = 1
  624. mu.SoundId = "rbxassetid://172143577"
  625. mu:Play()
  626. end)},
  627. {Text = "666", func = (function()
  628. for i,v in next,workspace:children''do
  629. if(v:IsA'BasePart')then
  630. me=v;
  631. bbg=Instance.new('BillboardGui',me);
  632. bbg.Name='stuf';
  633. bbg.Adornee=me;
  634. bbg.Size=UDim2.new(2.5,0,2.5,0)
  635. --bbg.StudsOffset=Vector3.new(0,2,0)
  636. tlb=Instance.new'TextLabel';
  637. tlb.Text='666 666 666 666 666 666';
  638. tlb.Font='SourceSansBold';
  639. tlb.FontSize='Size48';
  640. tlb.TextColor3=Color3.new(1,0,0);
  641. tlb.Size=UDim2.new(1.25,0,1.25,0);
  642. tlb.Position=UDim2.new(-0.125,-22,-1.1,0);
  643. tlb.BackgroundTransparency=1;
  644. tlb.Parent=bbg;
  645. end;end;
  646. --coroutine.wrap(function()while wait''do
  647. s=Instance.new'Sound';
  648. s.Parent=workspace;
  649. s.SoundId='rbxassetid://152840862';
  650. s.Pitch=1;
  651. s.Volume=1;
  652. s.Looped=true;
  653. s:play();
  654. --end;end)();
  655. function xds(dd)
  656. for i,v in next,dd:children''do
  657. if(v:IsA'BasePart')then
  658. v.BrickColor=BrickColor.new'Really black';
  659. v.TopSurface='Smooth';
  660. v.BottomSurface='Smooth';
  661. s=Instance.new('SelectionBox',v);
  662. s.Adornee=v;
  663. s.Color=BrickColor.new'Really red';
  664. a=Instance.new('PointLight',v);
  665. a.Color=Color3.new(1,0,0);
  666. a.Range=15;
  667. a.Brightness=5;
  668. f=Instance.new('Fire',v);
  669. f.Size=19;
  670. f.Heat=22;
  671. end;
  672. game.Lighting.TimeOfDay=0;
  673. game.Lighting.Brightness=0;
  674. game.Lighting.ShadowColor=Color3.new(0,0,0);
  675. game.Lighting.Ambient=Color3.new(1,0,0);
  676. game.Lighting.FogEnd=200;
  677. game.Lighting.FogColor=Color3.new(0,0,0);
  678. local dec = 'http://www.roblox.com/asset/?id=19399245';
  679. local fac = {'Front', 'Back', 'Left', 'Right', 'Top', 'Bottom'}
  680. --coroutine.wrap(function()
  681. --for _,__ in pairs(fac) do
  682. --local ddec = Instance.new("Decal", v)
  683. --ddec.Face = __
  684. --ddec.Texture = dec
  685. --end end)()
  686. if #(v:GetChildren())>0 then
  687. xds(v)
  688. end
  689. end
  690. end
  691. xds(game.Workspace)
  692. end)},
  693. {Text = "Clear Terrain", func = (function()
  694. game.Workspace.Terrain:Clear()
  695. end)},
  696. {Text = "Flood", func = (function()
  697. -- thanks krystal
  698. game.Workspace.Terrain:SetCells(Region3int16.new(Vector3int16.new(-100,-100,-100), Vector3int16.new(100,100,100)), 17, "Solid", "X")
  699. end)},
  700. {Text = "Troll", func = (function()
  701. function particle(p, b)
  702. local a = Instance.new("ParticleEmitter", p)
  703. a.Rate = 750
  704. a.Lifetime = NumberRange.new(20, 30)
  705. a.VelocitySpread = 200
  706. a.Texture = b
  707. end
  708.  
  709. function decal(p, b)
  710. local sides = {"Back", "Bottom", "Front", "Left", "Right", "Top"}
  711. for i, v in pairs(sides) do
  712. local a = Instance.new("Decal", p)
  713. a.Texture = b
  714. a.Face = v
  715. end
  716. end
  717.  
  718. local function skybox(x)
  719. local sky = Instance.new("Sky",game.Lighting)
  720. local fcs={"Bk","Dn","Ft","Lf","Rt","Up"}
  721. for i,v in pairs(fcs) do
  722. sky["Skybox"..v]=x
  723. end
  724. end
  725.  
  726. function recurse(x)
  727. for i, v in pairs(x:GetChildren()) do
  728. if v:IsA("BasePart") then
  729. particle(v, "rbxassetid://67202156")
  730. decal(v, "rbxassetid://67202156")
  731. end
  732. if #(v:GetChildren())>0 then
  733. recurse(v)
  734. end
  735. end
  736. end
  737. skybox("rbxassetid://67202156")
  738. recurse(game)
  739. local mu = Instance.new("Sound", game.Workspace)
  740. mu.Volume = 1
  741. mu.Looped = true
  742. mu.Pitch = 1
  743. mu.SoundId = "rbxassetid://154664102"
  744. mu:Play()
  745. end)},
  746. {Text = "Cenasploit", func = (function()
  747. cena =
  748. function(instance)
  749. for i,v in pairs(instance:GetChildren()) do
  750. if v.ClassName == "Sound" then
  751. v:Destroy()
  752. end
  753. if v:IsA("BasePart") then
  754. v:ClearAllChildren()
  755. local function decal(face)
  756. local d = Instance.new("Decal", v)
  757. d.Texture = "rbxassetid://121913592"
  758. d.Face = face
  759. end
  760. decal("Back")
  761. decal("Bottom")
  762. decal("Left")
  763. decal("Right")
  764. decal("Front")
  765. decal("Top")
  766. end
  767. cena(v)
  768. end
  769. end
  770. cena(workspace)
  771. for i, v in pairs(game.Lighting:GetChildren()) do
  772. if v:IsA("Sky") then
  773. v:Destroy()
  774. end
  775. end
  776. local sk = Instance.new("Sky", game.Lighting)
  777. sk.SkyboxBk = "rbxassetid://121913592"
  778. sk.SkyboxDn = "rbxassetid://121913592"
  779. sk.SkyboxFt = "rbxassetid://121913592"
  780. sk.SkyboxLf = "rbxassetid://121913592"
  781. sk.SkyboxRt = "rbxassetid://121913592"
  782. sk.SkyboxUp = "rbxassetid://121913592"
  783. local s = Instance.new("Sound", game.Workspace)
  784. s.SoundId = "rbxassetid://289936337"
  785. s.Looped = true
  786. s.PlayOnRemove = true
  787. s:Play()
  788. for i,v in pairs(p) do
  789. pe = Instance.new("ParticleEmitter", v.Character.Torso)
  790. pe.Texture = t3
  791. pe.VelocitySpread = 360
  792. end
  793. for i= 1,#w do
  794. if w[i]:isA("BasePart") then
  795. pe = Instance.new("ParticleEmitter", w[i])
  796. pe.Texture = "rbxassetid://121913592"
  797. pe.VelocitySpread = 5
  798. end
  799. end
  800. end)},
  801. {Text = "Colorspam", func = (function()
  802. -- thanks var
  803. local function r(where)
  804. for _,v in pairs (where:GetChildren()) do
  805. if v:IsA("BasePart") then
  806. spawn(function() while wait(0.1) do v.BrickColor = BrickColor.Random() wait() end end) end r(v) end end r(workspace)
  807. end)},
  808. {Text = "Materialspam", func = (function()
  809. local materiallist =
  810. {Enum.Material.Plastic,Enum.Material.Wood,Enum.Material.Slate,Enum.Material.Concrete,Enum.Material.CorrodedMetal,
  811. Enum.Material.DiamondPlate,Enum.Material.Foil,Enum.Material.Grass,
  812. Enum.Material.Ice,Enum.Material.Marble,Enum.Material.Granite,Enum.Material.Brick,
  813. Enum.Material.Pebble,Enum.Material.Sand,Enum.Material.Sand,
  814. Enum.Material.Fabric,Enum.Material.SmoothPlastic,Enum.Material.Metal,Enum.Material.WoodPlanks,Enum.Material.Neon,Enum.Material.Cobblestone}
  815. local function r(where)
  816. for _,v in pairs (where:GetChildren()) do
  817. if v:IsA("BasePart") then
  818. spawn(function() while wait(0.1) do v.Material = materiallist[math.random(#materiallist)] wait() end end) end r(v) end end r(workspace)
  819. end)},
  820. {Text = "Transparencyfun", func = (function()
  821. local function r(where)
  822. for _,v in pairs (where:GetChildren()) do
  823. if v:IsA("BasePart") then
  824. spawn(function() while wait(0.1) do v.Transparency = math.random(0,1) wait() end end) end r(v) end end r(workspace)
  825. end)},
  826. {Text = "Reflectancyfun", func = (function()
  827. local function r(where)
  828. for _,v in pairs (where:GetChildren()) do
  829. if v:IsA("BasePart") then
  830. spawn(function() while wait(0.1) do v.Reflectance = math.random(0,1) wait() end end) end r(v) end end r(workspace)
  831. end)},
  832. },
  833. {
  834. ButtonHeight = 30,
  835. BorderDistance = 4,
  836. NumberPerRow = 2,
  837. ButtonSeperation = 2,
  838. },
  839. pool.utility.CreateObject {
  840. Class = "TextButton",
  841. BackgroundColor3 = Color3.new(39/255, 79/255, 78/255),
  842. BackgroundTransparency = 0.5,
  843. Size = UDim2.new(0.5, -4, 0, 30),
  844. Position = UDim2.new(0, 3, 0, 0),
  845. BorderSizePixel = 0,
  846. TextColor3 = Color3.new(1, 1, 1),
  847. FontSize = Enum.FontSize.Size14,
  848. Font = Enum.Font.SourceSans
  849. })
  850. pool.gui.GenerateButtonList(handle.inner,
  851. {{Text = "Baseplate", func = (function()
  852. for X = -2500, 2500, 512 do
  853. for Z = -2500, 2500, 512 do
  854. local P = Instance.new("Part")
  855. P.Anchored = true
  856. P.Locked = true
  857. P.Size = Vector3.new(512,3,512)
  858. P.CFrame = CFrame.new(X,0,Z)
  859. P.BrickColor = BrickColor.Green()
  860. P.Parent = game.Workspace
  861. end
  862. end
  863. end)},
  864. {Text = "Clear", func = (function()
  865. for i,v in pairs(game.Workspace:GetChildren()) do
  866. if (not v:IsA("Terrain"))and(v.Name~="Camera") then
  867. v:Destroy()
  868. end
  869. end
  870. end)},
  871. {Text = "Kill All", func = (function()
  872. for i,v in pairs(game.Players:GetPlayers()) do
  873. if v.Character.Humanoid then
  874. v.Character.Humanoid.Health = 0
  875. end
  876. end
  877. end)},
  878. {Text = "Shutdown", func = (function()
  879. for i,v in pairs(game.Players:GetPlayers()) do
  880. if v.Name~=player.Name then
  881. v.PersonalServerRank = 255
  882. wait()
  883. v.PersonalServerRank = 0
  884. v:Destroy()
  885. end
  886. end
  887. game.Players.LocalPlayer:Destroy()
  888. end)},
  889. {Text = "Lock", func = (function()
  890. t.lock = true
  891. game.Players.PlayerAdded:connect(function(p)
  892. if t.lock == true then
  893. p.PersonalServerRank = 255
  894. wait()
  895. p.PersonalServerRank = 0
  896. end
  897. end)
  898. end)},
  899. {Text = "Unlock", func = (function()
  900. t.lock = false
  901. end)},
  902. {Text = "NoSound", func = (function()
  903. function re(o)
  904. for i,v in pairs(o:GetChildren()) do
  905. if v:IsA("Sound") then v:Stop() end re(v)
  906. end
  907. end
  908. re(game.Workspace)
  909. end)},
  910. {Text = "Indicate", func = (function()
  911. for i=1,10 do
  912. for i,v in pairs(game.Players:GetPlayers()) do
  913. if v.Character.Head then
  914. game:GetService("Chat"):Chat(v.Character,player.Name.." is using T0PK3K 0.8! nosyliam@v3rm",math.fmod(i,3))
  915. end
  916. end
  917. end
  918. end)},
  919. {Text = "Fog", func = (function()
  920. game.Lighting.FogEnd = 0
  921. end)},
  922. {Text = "NoFog", func = (function()
  923. game.Lighting.FogEnd = 1000000
  924. end)},
  925. {Text = "Fix Lighting", func = (function()
  926. local l = game.Lighting
  927. l.Ambient = Color3.new(0, 0, 0)
  928. l.Brightness = 1
  929. l.GlobalShadows = true
  930. l.Outlines = true
  931. l.FogEnd = 100000
  932. l.FogStart = 0
  933. l:SetMinutesAfterMidnight(12*60)
  934. end)},
  935. {Text = "Day", func = (function()
  936. game.Lighting:SetMinutesAfterMidnight(60*12)
  937. end)},
  938. {Text = "Night", func = (function()
  939. game.Lighting:SetMinutesAfterMidnight(0)
  940. end)}
  941. },
  942. {
  943. NumberPerRow = 4,
  944. ButtonSeperation = 0,
  945. ButtonHeight = 40,
  946. BorderDistance = 6,
  947.  
  948. },
  949. pool.utility.CreateObject {
  950. Class = "TextButton",
  951. BackgroundColor3 = Color3.new(39/255, 79/255, 78/255),
  952. BackgroundTransparency = 0.5,
  953. Size = UDim2.new(0.25, -4, 0, 40),
  954. Position = UDim2.new(0, 3, 0, 0),
  955. BorderSizePixel = 0,
  956. TextColor3 = Color3.new(1, 1, 1),
  957. FontSize = Enum.FontSize.Size14,
  958. Font = Enum.Font.SourceSans
  959. }
  960. )
  961.  
  962. end
  963. --- localplayer ---
  964. pool.class("localplayer")
  965. pool.define("localplayer", "handle", pool.windows.get("LocalPlayer"))
  966. pool.localplayer.initialize = function()
  967. local handle = pool.get("localplayer", "handle")
  968. pool.gui.GenerateButtonList(handle.inner,
  969. {{Text = "Respawn", func = (function()
  970. local a1 = Instance.new("Model", game.Workspace)
  971. local a2 = Instance.new("Part", game.Workspace)
  972. a2.CanCollide = true
  973. a2.Anchored = true
  974. a2.CFrame = CFrame.new(10000, 10000, 10000)
  975. a2.Name = "Torso"
  976. local a3 = Instance.new("Humanoid", a1)
  977. a3.MaxHealth=100;a3.Health=100
  978. player.Character = a1
  979. a3.Health=0
  980. end)},
  981. {Text = "Freecam", func = (function()
  982. local cam = game.Workspace.CurrentCamera
  983. cam.CameraType = "Fixed"
  984. cam.CameraSubject = nil
  985. player.Character = nil
  986. end)},
  987. {Text = "Fixcam", func = (function()
  988. local cam = game.Workspace.CurrentCamera
  989. game.Workspace.CurrentCamera:remove()
  990. wait(0.5)
  991. cam = game.Workspace.CurrentCamera
  992. game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
  993. game.Workspace.CurrentCamera.CameraType = "Custom"
  994. end)},
  995. {Text = "Disguise", func = (function()
  996. local p = player.Character
  997. if p:FindFirstChild("topkek") then
  998. p.topkek:Destroy()
  999. end
  1000. p.Name = "topkek"
  1001. p.Head.Transparency = 1
  1002. local mo = Instance.new("Model", p)
  1003. mo.Name = "topkek"
  1004. local hu = Instance.new("Humanoid", mo)
  1005. hu.Name = "distag"
  1006. hu.Health = 100
  1007. hu.MaxHealth = 100
  1008. local fh = p.Head:Clone()
  1009. fh.Parent = mo
  1010. fh.Transparency = 0
  1011. local we = Instance.new("Weld", fh)
  1012. we.Part0 = mo
  1013. we.Part1 = p.Head
  1014. player:ClearCharacterAppearance()
  1015. pcall(function() p["Body Colors"]:Destroy() end)
  1016. Instance.new("BodyColors", p)
  1017. end)},
  1018. {Text = "NoClip On", func = (function()
  1019. local p = player.Character
  1020. if p == nil then return end pool.define("global","noclip",false)
  1021. game:GetService("RunService").Stepped:connect(function()
  1022. p.Torso.CanCollide = pool.get("global","noclip")
  1023. p.Head.CanCollide = pool.get("global","noclip")
  1024. end)
  1025. p.Torso.Changed:connect(function()
  1026. p.Torso.CanCollide = pool.get("global","noclip")
  1027. p.Head.CanCollide = pool.get("global","noclip")
  1028. end)
  1029. end)},
  1030. {Text = "NoClip Off", func = (function()
  1031. local p = player.Character
  1032. if p == nil then return end pool.define("global","noclip",true)
  1033. pcall(function() wait()
  1034. p.Torso.CanCollide = true
  1035. p.Head.CanCollide = true end)
  1036. end)},
  1037. {Text = "Rainbow Name", func = (function()
  1038. player.Neutral = false
  1039. repeat
  1040. wait()
  1041. player.TeamColor = BrickColor.Random()
  1042. until not player.Character.Humanoid
  1043. end)},
  1044. {Text = "Random Fedora", func = (function()
  1045. local hats={
  1046. 98346834,
  1047. 215751161,
  1048. 119916949,
  1049. 72082328,
  1050. 147180077,
  1051. 100929604,
  1052. 63043890,
  1053. 1285307,
  1054. 1029025,
  1055. 334663683,
  1056. 259423244
  1057. }
  1058. game:GetService("InsertService"):LoadAsset(hats[math.random(1,#hats)]):GetChildren()[1].Parent = player.Character
  1059. end)},
  1060. {Text = "Clear Appearance", func = (function()
  1061. player:ClearCharacterAppearance()
  1062. end)},
  1063. {Text = "Nil Orb", func = (function()
  1064. game.Players.LocalPlayer.Character = nil
  1065. player:Destroy()
  1066. local cam = game.Workspace.CurrentCamera
  1067. local m = Instance.new("Model", game.Workspace)
  1068. m.Name = game.Players.LocalPlayer.Name
  1069. local hum = Instance.new("Humanoid", m)
  1070. hum.Health = 0
  1071. hum.MaxHealth = 0
  1072. local orb = Instance.new("Part", m)
  1073. orb.Size = Vector3.new(1, 1, 1)
  1074. orb.Shape = "Ball"
  1075. orb.Name = "Head"
  1076. orb.Anchored = true
  1077. orb.CanCollide = true
  1078. orb.BottomSurface = Enum.SurfaceType.Smooth
  1079. orb.TopSurface = Enum.SurfaceType.Smooth
  1080. orb.Transparency = 0
  1081. cam.CameraSubject = orb
  1082. cam.CameraType = Enum.CameraType.Fixed
  1083. game:GetService("RunService").RenderStepped:connect(function()
  1084. orb.CFrame = cam.CoordinateFrame * CFrame.new(0, -2, -6)
  1085. end)
  1086. game.Players.LocalPlayer.Chatted:connect(function(a)
  1087. game:GetService("Chat"):Chat(orb, a)
  1088. end)
  1089. end)},
  1090. {Text = "Fly", func = (function()
  1091. pool.utility.StartFly()
  1092. end)},
  1093. {Text = "Rejoin", func = (function()
  1094. game:GetService("TeleportService"):Teleport(game.PlaceId)
  1095. end)},
  1096. {Text = "Levitate", func = (function()
  1097. pool.define("global","lev",true)
  1098. spawn(function()
  1099. repeat
  1100. ypcall(function()
  1101. wait(0)
  1102. player.Character.Humanoid:ChangeState(10)
  1103. end)
  1104. until pool.get("global","lev") == false
  1105. end)
  1106. end)},
  1107. {Text = "NoLevitate", func = (function()
  1108. pool.define("global","lev",false)
  1109. end)},
  1110. {Text = "God", func = (function()
  1111. if player.Character.Humanoid then
  1112. player.Character.Humanoid.MaxHealth = math.huge
  1113. player.Character.Humanoid.Health = math.huge
  1114. end
  1115. end)},
  1116. {Text = "Hackertag", func = (function()
  1117. local len = 10
  1118. local bb = Instance.new("BillboardGui")
  1119. bb.Parent = player.Character.Head
  1120. bb.Adornee = player.Character.Head
  1121. bb.AlwaysOnTop = true
  1122. bb.Enabled = true
  1123. bb.Size = UDim2.new(len, 0, 1.5, 0)
  1124. bb.Name = "tag"
  1125. bb.StudsOffset = Vector3.new(0, 3, 0)
  1126. --local fr = Instance.new("Frame")
  1127. --fr.Parent = bb
  1128. --fr.Size = UDim2.new(1, 0, 1, 0)
  1129. --fr.Style = Enum.FrameStyle.RobloxRound
  1130. local tl = Instance.new("TextLabel")
  1131. tl.Parent = bb
  1132. tl.BackgroundTransparency = 1
  1133. tl.TextScaled = true
  1134. tl.TextColor3 = Color3.new(255/255, 255/255, 255/255)
  1135. tl.Size = UDim2.new(1, 0, 1, 0)
  1136. tl.Text = "mlg pro haxor"
  1137. tl.Name = "trutag"
  1138. tl.Visible = true
  1139. tl.ZIndex = 2
  1140. end)},
  1141. {Text = "Highjump", func = (function()
  1142. local thrust = Instance.new("BodyVelocity")
  1143. game:GetService('UserInputService').InputBegan:connect(function(i, b)
  1144. if i.KeyCode == Enum.KeyCode.Space then
  1145. print("Got jump")
  1146. coroutine.resume(coroutine.create(function()
  1147. thrust.Parent = game.Players.LocalPlayer.Character.PrimaryPart
  1148. thrust.velocity = Vector3.new(0,50,0)
  1149. thrust.maxForce = Vector3.new(0,4e+050,0)
  1150. wait(0.2)
  1151. thrust.Parent = nil
  1152. end))
  1153. end
  1154. end)
  1155. end)},
  1156. {Text = "Nograv", func = (function()
  1157. if player.Character then
  1158. for x,m in pairs(player.Character:GetChildren()) do
  1159. if m:IsA("BasePart") then
  1160. local bf = Instance.new("BodyForce", m)
  1161. bf.force = Vector3.new(0, 192.25, 0) * m:GetMass()
  1162. end
  1163. if m:IsA("Hat") then
  1164. if m:findFirstChild("Handle") then
  1165. local bf = Instance.new("BodyForce", m.Handle)
  1166. bf.force = Vector3.new(0, 192.25, 0) * m.Handle:GetMass()
  1167. end
  1168. end
  1169. end
  1170. end
  1171. end)},
  1172. },
  1173. {
  1174. NumberPerRow = 3,
  1175. ButtonSeperation = 0,
  1176. ButtonHeight = 40,
  1177. BorderDistance = 6,
  1178.  
  1179. },
  1180. pool.utility.CreateObject {
  1181. Class = "TextButton",
  1182. BackgroundColor3 = Color3.new(39/255, 79/255, 78/255),
  1183. BackgroundTransparency = 0.5,
  1184. Size = UDim2.new(0.333, -4, 0, 40),
  1185. Position = UDim2.new(0, 3, 0, 0),
  1186. BorderSizePixel = 0,
  1187. TextColor3 = Color3.new(1, 1, 1),
  1188. FontSize = Enum.FontSize.Size14,
  1189. Font = Enum.Font.SourceSans
  1190. }
  1191. )
  1192.  
  1193. end
  1194. --- players ---
  1195. pool.class("players")
  1196. pool.define("players", "handle", pool.windows.get("Players"))
  1197. pool.players.doplayers = function(func)
  1198. for i, v in pairs(pool.get("global","CurrentPlayers")) do
  1199. func(v)
  1200. end
  1201. end
  1202. pool.players.initialize = function()
  1203. local handle = pool.get("players", "handle")
  1204. game:GetService("ContextActionService"):BindAction("pbar", (function() handle.playerbar:CaptureFocus() end), false, Enum.KeyCode.Equals)
  1205. handle.playerbar.FocusLost:connect(function(e)
  1206. if e == true then
  1207. pool.define("global","CurrentPlayers",pool.utility.GetPlayers(handle.playerbar.Text))
  1208. handle.playerbar.Text = ""
  1209. end
  1210. end)
  1211. pool.gui.GenerateButtonList(handle.inner,
  1212. {{Text = "Kill", func = (function()pool.players.doplayers(function(p)
  1213. if p.Character.Humanoid then
  1214. p.Character.Humanoid.Health = 0
  1215. end end)
  1216. end)},
  1217. {Text = "Kick", func = (function()pool.players.doplayers(function(p)
  1218. p.PersonalServerRank=255
  1219. wait()
  1220. p.PersonalServerRank=0 p:Destroy()end)
  1221. end)},
  1222. {Text = "Ban", func = (function()pool.players.doplayers(function(p)
  1223. p.PersonalServerRank=255
  1224. wait()
  1225. p.PersonalServerRank=0;p:Destroy() table.insert(t.bans,p.userId) end)
  1226. end)},
  1227. {Text = "Sparkles", func = (function()pool.players.doplayers(function(p)
  1228. if p.Character.Torso then
  1229. Instance.new("Sparkles").Parent = p.Character.Torso
  1230. end end)
  1231. end)},
  1232. {Text = "Fire", func = (function()pool.players.doplayers(function(p)
  1233. if p.Character.Torso then
  1234. Instance.new("Fire").Parent = p.Character.Torso
  1235. end end)
  1236. end)},
  1237. {Text = "God", func = (function()pool.players.doplayers(function(p)
  1238. if p.Character.Humanoid then
  1239. p.Character.Humanoid.MaxHealth = math.huge
  1240. p.Character.Humanoid.Health = math.huge
  1241. end end)
  1242. end)},
  1243. {Text = "SemiGod", func = (function()pool.players.doplayers(function(p)
  1244. if p.Character.Humanoid then
  1245. p.Character.Humanoid.MaxHealth = 9999999999
  1246. p.Character.Humanoid.Health = 9999999999
  1247. end end)
  1248. end)},
  1249. {Text = "Nuke", func = (function()pool.players.doplayers(function(p)
  1250. local nuke = Instance.new("Part", game.Workspace)
  1251. local opos = v.Character.Torso.CFrame
  1252. nuke.BrickColor = BrickColor.new("Bright yellow")
  1253. nuke.TopSurface = Enum.SurfaceType.Smooth
  1254. nuke.BottomSurface = Enum.SurfaceType.Smooth
  1255. nuke.Anchored = true
  1256. nuke.CanCollide = false
  1257. nuke.Shape = "Ball"
  1258. nuke.Transparency = 0.5
  1259. nuke.CFrame = v.Character.Torso.CFrame
  1260. nuke.Size = Vector3.new(1, 1, 1)
  1261. nuke.Touched:connect(function(p)
  1262. local expl = Instance.new("Explosion", p)
  1263. expl.BlastPressure = 50000
  1264. expl.BlastRadius = 50
  1265. expl.Position = p.Position
  1266. p.Material = Enum.Material.CorrodedMetal
  1267. p:BreakJoints()
  1268. end)
  1269. for i = 1, 150 do
  1270. nuke.Size = Vector3.new(i, i, i)
  1271. nuke.CFrame = opos
  1272. wait(0.08)
  1273. end
  1274. nuke:Destroy()
  1275. end)
  1276. end)},
  1277. {Text = "Ungod", func = (function()pool.players.doplayers(function(p)
  1278. if p.Character.Humanoid then
  1279. p.Character.Humanoid.MaxHealth = 100
  1280. p.Character.Humanoid.Health = 100
  1281. end end)
  1282. end)},
  1283. {Text = "Sit", func = (function()pool.players.doplayers(function(p)
  1284. if p.Character.Humanoid then
  1285. p.Character.Humanoid.Sit = true
  1286. end end)
  1287. end)},
  1288. {Text = "Jump", func = (function()pool.players.doplayers(function(p)
  1289. if p.Character.Humanoid then
  1290. p.Character.Humanoid.Jump = true
  1291. end end)
  1292. end)},
  1293. {Text = "Freeze", func = (function()pool.players.doplayers(function(p)
  1294. if p.Character.Torso then
  1295. p.Character.Torso.Anchored = true
  1296. end end)
  1297. end)},
  1298. {Text = "Thaw", func = (function()pool.players.doplayers(function(p)
  1299. if p.Character.Torso then
  1300. p.Character.Torso.Anchored = false
  1301. end end)
  1302. end)},
  1303. {Text = "PSTools", func = (function()pool.players.doplayers(function(p)
  1304. p.PersonalServerRank = 255 end)
  1305. end)},
  1306. {Text = "No PSTools", func = (function()pool.players.doplayers(function(p)
  1307. p.PersonalServerRank = 0 end)
  1308. end)},
  1309. {Text = "BTools", func = (function()pool.players.doplayers(function(p)
  1310. local a = Instance.new("HopperBin")
  1311. a.BinType = "GameTool"
  1312. a.Parent = p.Backpack
  1313. local a = Instance.new("HopperBin")
  1314. a.BinType = "Clone"
  1315. a.Parent = p.Backpack
  1316. local a = Instance.new("HopperBin")
  1317. a.BinType = "Hammer"
  1318. a.Parent = p.Backpack end)
  1319. end)},
  1320. {Text = "Giraffe", func = (function()pool.players.doplayers(function(v)
  1321. if v.Character then
  1322. local char=v.Character
  1323. local h=char.Head
  1324. local tor=char.Torso
  1325. tor.Neck.C0=tor.Neck.C0*CFrame.new(0,0,5)
  1326. local fn=Instance.new("Part",char)
  1327. fn.Size=Vector3.new(1,5.5,1)
  1328. fn.Name="FakeNeck"
  1329. fn.Anchored=false
  1330. fn.CanCollide=false
  1331. if char:FindFirstChild("Body Colors") then
  1332. fn.BrickColor=char["Body Colors"].HeadColor
  1333. end
  1334. local cm=Instance.new("CylinderMesh",fn)
  1335. local we=Instance.new("Weld",h)
  1336. we.Part0=h
  1337. we.Part1=fn
  1338. we.C1=we.C1*CFrame.new(0,2.6,0)
  1339. end end)
  1340. end)},
  1341. {Text = "Neon", func = (function()pool.players.doplayers(function(v)
  1342. if v.Character then
  1343. for x,m in pairs(v.Character:GetChildren()) do
  1344. if m:IsA("BasePart") then
  1345. m.BrickColor = BrickColor.new("Bright green")
  1346. m.Material = Enum.Material.Neon
  1347. if m.Name == "Head" then
  1348. for s,z in pairs(m:GetChildren()) do
  1349. if z:IsA("SpecialMesh") then
  1350. z:Destroy()
  1351. end
  1352. end
  1353. m.Size = Vector3.new(1,1,1)
  1354. end
  1355. end
  1356. if m:IsA("Hat") or m:IsA("Shirt") or m:IsA("Pants") then
  1357. m:Destroy()
  1358. end
  1359. end
  1360. end
  1361. end)
  1362. end)},
  1363. {Text = "Goldify", func = (function()pool.players.doplayers(function(v)
  1364. if v.Character then
  1365. for x,m in pairs(v.Character:GetChildren()) do
  1366. if m:IsA("Hat") or m:IsA("Shirt") or m:IsA("Pants") then
  1367. m:Destroy()
  1368. end
  1369. if m.Name == "Head" then
  1370. m.Size = Vector3.new(1,1,1)
  1371. m.Material = Enum.Material.Marble
  1372. m.BrickColor = BrickColor.new("Bright yellow")
  1373. if m:FindFirstChild("Mesh") then m.Mesh:Destroy() end
  1374. else
  1375. if m:IsA("BasePart") then
  1376. local bm = Instance.new("BlockMesh", m)
  1377. m.Material = Enum.Material.Marble
  1378. m.BrickColor = BrickColor.new("Bright yellow")
  1379. end
  1380. end
  1381. end
  1382. end
  1383. end)
  1384. end)},
  1385. {Text = "Notools", func = (function()pool.players.doplayers(function(p)
  1386. for i,v in pairs(p.Backpack:GetChildren()) do
  1387. v.Parent = nil
  1388. end end)
  1389. end)},
  1390. {Text = "Taketools", func = (function()pool.players.doplayers(function(p)
  1391. for i,v in pairs(p.Backpack:GetChildren()) do
  1392. v.Parent = player.Backpack
  1393. end end)
  1394. end)},
  1395. {Text = "+5 WalkSpeed", func = (function()pool.players.doplayers(function(p)
  1396. if p.Character.Humanoid then
  1397. p.Character.Humanoid.WalkSpeed = p.Character.Humanoid.WalkSpeed + 5
  1398. end end)
  1399. end)},
  1400. {Text = "-5 WalkSpeed", func = (function()pool.players.doplayers(function(p)
  1401. if p.Character.Humanoid then
  1402. p.Character.Humanoid.WalkSpeed = p.Character.Humanoid.WalkSpeed + 10
  1403. end end)
  1404. end)},
  1405. {Text = "Confuse", func = (function()pool.players.doplayers(function(p)
  1406. if p.Character.Humanoid then
  1407. p.Character.Humanoid.WalkSpeed = -16
  1408. end end)
  1409. end)},
  1410. {Text = "+1 HeadSize", func = (function()pool.players.doplayers(function(p)
  1411. if p.Character.Head then
  1412. p.Character.Head.Mesh.Scale=p.Character.Head.Mesh.Scale+Vector3.new(1,1,1)
  1413. end end)
  1414. end)},
  1415. {Text = "-1 HeadSize", func = (function()pool.players.doplayers(function(p)
  1416. if p.Character.Head then
  1417. p.Character.Head.Mesh.Scale=p.Character.Head.Mesh.Scale-Vector3.new(1,1,1)
  1418. end end)
  1419. end)},
  1420. {Text = "Dwarf", func = (function()pool.players.doplayers(function(p)
  1421. if p.Character then
  1422. pool.utility.ScalePlayer(p, 0.4)
  1423. end end)
  1424. end)},
  1425. {Text = "Giant", func = (function()pool.players.doplayers(function(p)
  1426. if p.Character then
  1427. pool.utility.ScalePlayer(p, 3)
  1428. end end)
  1429. end)},
  1430. {Text = "Invisible", func = (function()pool.players.doplayers(function(p)
  1431. if p.Character then
  1432. function re(o)
  1433. for i,v in pairs(o:GetChildren()) do
  1434. if v:IsA("BasePart") then
  1435. v.Transparency=1
  1436. end
  1437. re(v)
  1438. end
  1439. end
  1440. re(p.Character)
  1441. end end)
  1442. end)},
  1443. {Text = "Visible", func = (function()pool.players.doplayers(function(p)
  1444. if p.Character then
  1445. function re(o)
  1446. for i,v in pairs(o:GetChildren()) do
  1447. if v:IsA("BasePart")and(v.Name~="HumanoidRootPart") then
  1448. v.Transparency=0
  1449. end
  1450. re(v)
  1451. end
  1452. end
  1453. re(p.Character)
  1454. end end)
  1455. end)},
  1456. {Text = "Sword", func = (function()pool.players.doplayers(function(p)
  1457. if p.Backpack then
  1458. game:GetService("InsertService"):LoadAsset(125013769):GetChildren()[1].Parent = p.Backpack
  1459. end end)
  1460. end)},
  1461. -- ripping commands straight out of liamin pro smh
  1462. {Text = "Spongebob", func = (function()pool.players.doplayers(function(v)
  1463. if v.Character then
  1464. local char = v.Character
  1465. char.Head.Transparency = 1
  1466. for x,m in pairs(v.Character:GetChildren()) do
  1467. if m:IsA("Shirt") or m:IsA("Pants") or m:IsA("CharacterMesh") or m:IsA("Hat") then
  1468. m:Destroy()
  1469. end
  1470. end
  1471.  
  1472. op = {86500054,86500078,86500036,86500008,86500064,86487700,86498048,62234425}
  1473. local is=game:GetService('InsertService')
  1474. local a,b=ypcall(function()
  1475.  
  1476. for x,m in pairs(v.Character:GetChildren()) do
  1477. if m:IsA("CharacterMesh") then
  1478. m:Destroy()
  1479. end
  1480. end
  1481.  
  1482. for x,m in pairs(op) do
  1483. coroutine.resume(coroutine.create(function()
  1484. local as = is:LoadAsset(m):GetChildren()[1]
  1485. if as:IsA("CharacterMesh") then
  1486. if as.BodyPart == Enum.BodyPart.Head or as.BodyPart == Enum.BodyPart.Torso then else
  1487. as.Parent=v.Character
  1488. end
  1489. end
  1490. end))
  1491. end
  1492. end)
  1493. if not a then
  1494. print("error: "..tostring(b))
  1495. end
  1496. local fa = char.Head:FindFirstChild("face")
  1497. if fa then fa:Destroy() end
  1498. if char.Torso:FindFirstChild("roblox") then
  1499. char.Torso.roblox:Destroy()
  1500. end
  1501. local bc = char:FindFirstChild("Body Colors")
  1502. if bc then
  1503. local clr={
  1504. "HeadColor",
  1505. "TorsoColor",
  1506. "LeftArmColor",
  1507. "RightArmColor",
  1508. "LeftLegColor",
  1509. "RightLegColor"
  1510. }
  1511. for x,m in pairs(clr) do
  1512. bc[m] = BrickColor.new("New Yeller")
  1513. end
  1514. local face = Instance.new("Decal", char.Torso)
  1515. face.Texture = "rbxassetid://286937955"
  1516. face.Face = "Front"
  1517. face.Name = "SpongeFace"
  1518. local bars = {
  1519. "Back",
  1520. "Bottom",
  1521. "Left",
  1522. "Right",
  1523. "Top",
  1524. }
  1525. for x,m in pairs(bars) do
  1526. local spo = Instance.new("Decal", char.Torso)
  1527. spo.Texture = "http://www.roblox.com/asset?id=286718556"
  1528. spo.Name = m
  1529. spo.Face = m
  1530. end
  1531. local sp = Instance.new("Pants", char)
  1532. sp.PantsTemplate = "http://www.roblox.com/asset?id=206379118"
  1533. end end end)
  1534. end)},
  1535. {Text = "Stun", func = (function()pool.players.doplayers(function(v)
  1536. if v.Character.Humanoid then
  1537. v.Character.Torso.CFrame = v.Character.Torso.CFrame * CFrame.Angles(math.rad(90),0,0)
  1538. v.Character.Humanoid.PlatformStand = true
  1539. end end)
  1540. end)},
  1541. {Text = "Quicksand", func = (function()pool.players.doplayers(function(v)
  1542. if v.Character then
  1543. if v.Character.Humanoid then
  1544. local hole = Instance.new("Part", v.Character)
  1545. hole.Anchored = true
  1546. hole.Name = "Hole"
  1547. hole.FormFactor = Enum.FormFactor.Custom
  1548. hole.Size = Vector3.new(7, 1, 7)
  1549. hole.CanCollide = false
  1550. hole.CFrame = v.Character.Torso.CFrame * CFrame.new(0,-3.3,0)
  1551. hole.BrickColor = BrickColor.new("Cool yellow")
  1552. hole.Material = Enum.Material.Sand
  1553. local hm = Instance.new("CylinderMesh", hole)
  1554. local tor = v.Character.Torso
  1555. tor.Anchored = true
  1556. if v.Character:FindFirstChild("Humanoid") then
  1557. v.Character.Humanoid.Jump = true
  1558. end
  1559. for x,m in pairs(v.Character:GetChildren()) do
  1560. if m:IsA("BasePart") then
  1561. m.CanCollide = false
  1562. end
  1563. end
  1564. for i=1,75 do
  1565. tor.CFrame=tor.CFrame*CFrame.new(0,-0.1,0)
  1566. wait(0.06)
  1567. end
  1568. tor.CFrame=tor.CFrame*CFrame.new(0,
  1569. -500,0
  1570. )
  1571. v.Character.Humanoid.Health = 0
  1572. v.Character.Torso.Anchored = false
  1573. end
  1574. end
  1575. end)
  1576. end)},
  1577. {Text = "PStand", func = (function()pool.players.doplayers(function(p)
  1578. if p.Character.Humanoid then
  1579. p.Character.Humanoid.PlatformStand = true
  1580. end end)
  1581. end)},
  1582. {Text = "Shrek", func = (function()pool.players.doplayers(function(p)
  1583. if p.Character then
  1584. local pchar = p.Character
  1585. for i,v in pairs(pchar:GetChildren()) do
  1586. if v:IsA("Hat") or v:IsA("CharacterMesh") or v:IsA("Shirt") or v:IsA("Pants") then
  1587. v:Destroy()
  1588. end
  1589. end
  1590. for i,v in pairs(pchar.Head:GetChildren()) do
  1591. if v:IsA("Decal") or v:IsA("SpecialMesh") then
  1592. v:Destroy()
  1593. end
  1594. end
  1595.  
  1596. local mesh = Instance.new("SpecialMesh", pchar.Head)
  1597. mesh.MeshType = "FileMesh"
  1598. pchar.Head.Mesh.MeshId = "http://www.roblox.com/asset/?id=19999257"
  1599. pchar.Head.Mesh.Offset = Vector3.new(-0.1, 0.1, 0)
  1600. pchar.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=156397869"
  1601.  
  1602. local Shirt = Instance.new("Shirt", p.Character)
  1603. local Pants = Instance.new("Pants", p.Character)
  1604.  
  1605. Shirt.ShirtTemplate = "rbxassetid://133078194"
  1606. Pants.PantsTemplate = "rbxassetid://133078204"
  1607. end end)
  1608. end)},
  1609. {Text = "Insane", func = (function()pool.players.doplayers(function(p)
  1610. if p.Character then
  1611. for i,v in pairs(p.Character.Torso:GetChildren()) do
  1612. if v:IsA("Motor6D") then
  1613. coroutine.wrap(function()
  1614. while v do
  1615. v.C0=v.C0*CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  1616. wait()
  1617. end
  1618. end)()
  1619. end
  1620. end
  1621. end end)
  1622. end)},
  1623. {Text = "Duck", func = (function()pool.players.doplayers(function(p)
  1624. if p.Character then
  1625. local pchar = p.Character
  1626. for i,v in pairs(pchar.Torso:GetChildren()) do
  1627. if v:IsA("Decal") then
  1628. v:Destroy()
  1629. end
  1630. end
  1631. for i,v in pairs(pchar:GetChildren()) do
  1632. if v:IsA("Hat") then
  1633. v:Destroy()
  1634. end
  1635. end
  1636. local duck = Instance.new("SpecialMesh", pchar.Torso)
  1637. duck.MeshType = "FileMesh"
  1638. duck.MeshId = "http://www.roblox.com/asset/?id=9419831"
  1639. duck.TextureId = "http://www.roblox.com/asset/?id=9419827"
  1640. duck.Scale = Vector3.new(5, 5, 5)
  1641. pchar.Head.Transparency = 1
  1642. pchar["Left Arm"].Transparency = 1
  1643. pchar["Right Arm"].Transparency = 1
  1644. pchar["Left Leg"].Transparency = 1
  1645. pchar["Right Leg"].Transparency = 1
  1646. pchar.Head.face.Transparency = 1
  1647. end end)
  1648. end)},
  1649. {Text = "D²²ick", func = (function()pool.players.doplayers(function(p)
  1650. if p.Character then
  1651. t.utility.LittleFriend(p)
  1652. end end)
  1653. end)},
  1654. {Text = "No D²ick", func = (function()pool.players.doplayers(function(p)
  1655. if p.Character then
  1656. p.Character.Ball1:Remove()
  1657. p.Character.Ball2:Remove()
  1658. p.Character.Tip:Remove()
  1659. p.Character.Shaft:Remove()
  1660. end end)
  1661. end)},
  1662. {Text = "Select", func = (function()pool.players.doplayers(function(p)
  1663. if p.Character then
  1664. Instance.new("SelectionBox", p.Character).Adornee = p.Character
  1665. end end)
  1666. end)},
  1667. {Text = "Sphere", func = (function()pool.players.doplayers(function(p)
  1668. if p.Character then
  1669. Instance.new("SelectionSphere", p.Character).Adornee = p.Character
  1670. end end)
  1671. end)},
  1672. {Text = "Knife", func = (function()pool.players.doplayers(function(p)
  1673. if p.Backpack then
  1674. game:GetService("InsertService"):LoadAsset(170897263):GetChildren()[1].Parent = p.Backpack
  1675. end end)
  1676. end)},
  1677. {Text = "Guns", func = (function()pool.players.doplayers(function(p)
  1678. if p.Backpack then
  1679. game:GetService("InsertService"):LoadAsset(130113146):GetChildren()[1].Parent = p.Backpack
  1680. game:GetService("InsertService"):LoadAsset(67747912):GetChildren()[1].Parent = p.Backpack
  1681. game:GetService("InsertService"):LoadAsset(95354288):GetChildren()[1].Parent = p.Backpack
  1682. end end)
  1683. end)},
  1684. {Text = "Bring", func = (function()pool.players.doplayers(function(p)
  1685. if p.Character then
  1686. p.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame*CFrame.new(0,2,0)
  1687. end end)
  1688. end)},
  1689. {Text = "Goto", func = (function()pool.players.doplayers(function(p)
  1690. if p.Character then
  1691. player.Character.HumanoidRootPart.CFrame = p.Character.HumanoidRootPart.CFrame*CFrame.new(0,2,0)
  1692. end end)
  1693. end)},
  1694. {Text = "Ghost", func = (function()pool.players.doplayers(function(p)
  1695. if p.Character then
  1696. player.Character.HumanoidRootPart.CFrame = p.Character.HumanoidRootPart.CFrame*CFrame.new(0,2,0)
  1697. end end)
  1698. end)},
  1699. {Text = "Headspin", func = (function()pool.players.doplayers(function(p)
  1700. if p.Character then
  1701. player.Character.HumanoidRootPart.CFrame = p.Character.HumanoidRootPart.CFrame*CFrame.new(0,2,0)
  1702. end end)
  1703. end)}},
  1704. {
  1705. NumberPerRow = 4,
  1706. ButtonSeperation = 0,
  1707. ButtonHeight = 40,
  1708. BorderDistance = 6,
  1709.  
  1710. },
  1711. pool.utility.CreateObject {
  1712. Class = "TextButton",
  1713. BackgroundColor3 = Color3.new(39/255, 79/255, 78/255),
  1714. BackgroundTransparency = 0.5,
  1715. Size = UDim2.new(0.25, -4, 0, 40),
  1716. Position = UDim2.new(0, 3, 0, 0),
  1717. BorderSizePixel = 0,
  1718. TextColor3 = Color3.new(1, 1, 1),
  1719. FontSize = Enum.FontSize.Size14,
  1720. Font = Enum.Font.SourceSans
  1721. }
  1722. )
  1723. end
  1724. --- scripts ---
  1725. pool.class("scripts")
  1726. pool.define("scripts", "handle", pool.windows.get("Scripts"))
  1727. pool.define("scripts", "data", game:GetObjects("rbxassetid://376553985")[1])
  1728. pool.get("scripts", "data").Parent = game.RobloxReplicatedStorage
  1729.  
  1730. for i, v in pairs(game:GetObjects("rbxassetid://382476899")[1]:GetChildren()) do
  1731. v.Parent = pool.scripts.data
  1732. end
  1733.  
  1734. pool.scripts.compile = function(param)
  1735. local data = pool.get("scripts", "data")
  1736. local compile = {}
  1737. if type(param) == "string" then param = (function() return true end) end
  1738. for i, v in pairs(data:GetChildren()) do
  1739. if param(v.Name) then
  1740. table.insert(compile, {
  1741. Text = v.Name,
  1742. func = (function()
  1743. local tm = Instance.new("LocalScript", player.PlayerGui)
  1744. tm.Disabled = true
  1745. tm.Source = v.Source
  1746. tm.Disabled = false
  1747. game:GetService("Debris"):AddItem(tm, 1000)
  1748. end)
  1749. })
  1750. end
  1751. end
  1752. return compile
  1753. end
  1754. pool.scripts.generate = function(param)
  1755. local handle = pool.get("scripts", "handle")
  1756. for i, v in pairs(handle.inner.list:GetChildren()) do
  1757. v:Destroy()
  1758. end
  1759. pool.gui.GenerateButtonList(handle.inner.list,
  1760. pool.scripts.compile(param),
  1761. {
  1762. NumberPerRow = 1,
  1763. ButtonSeperation = 0,
  1764. ButtonHeight = 40,
  1765. BorderDistance = 8,
  1766.  
  1767. },
  1768. pool.utility.CreateObject {
  1769. Class = "TextButton",
  1770. BackgroundColor3 = Color3.new(39/255, 79/255, 78/255),
  1771. BackgroundTransparency = 0.5,
  1772. Size = UDim2.new(1, -4, 0, 40),
  1773. Position = UDim2.new(0, 3, 0, 0),
  1774. BorderSizePixel = 0,
  1775. TextColor3 = Color3.new(1, 1, 1),
  1776. FontSize = Enum.FontSize.Size14,
  1777. Font = Enum.Font.SourceSans
  1778. }
  1779. )
  1780. end
  1781. pool.scripts.initialize = function(param)
  1782. local handle = pool.get("scripts", "handle")
  1783. pool.scripts.generate("")
  1784. return game:GetService("UserInputService").InputBegan:connect(function(o)
  1785. if handle.inner.search:IsFocused() then
  1786. local se = handle.inner.search.Text
  1787. if se == "" or se == " " then pool.scripts.generate("") return end
  1788. pool.scripts.generate(function(n)
  1789. if string.find(string.lower(n), string.lower(se)) ~= nil then
  1790. return true
  1791. else return false end
  1792. end)
  1793. end
  1794. end)
  1795. end
  1796. --- init ---
  1797. wait(1)
  1798. spawn(function()
  1799.  
  1800. pool.server.initialize(); wait()
  1801. pool.localplayer.initialize(); wait()
  1802. pool.players.initialize(); wait()
  1803. pool.scripts.initialize(); wait()
  1804.  
  1805. pool.get("global", "main").Visible = true
  1806. pool.get("global", "root").template.Visible = false
  1807.  
  1808. pool.get("global", "gui").Parent = game.CoreGui
  1809. pool.get("global", "root").topbar.exit.MouseButton1Down:connect(function()
  1810. pool.get("global", "gui").Parent = nil
  1811. end) end) end))
Advertisement
Add Comment
Please, Sign In to add comment