Guest User

Untitled

a guest
Nov 20th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 92.70 KB | None | 0 0
  1. local topkek = {}
  2. topkek.patch = '1.0.5a'
  3. topkek.data = {}
  4. topkek.commandbase = {}
  5. topkek.navigation = {}
  6. topkek.banmgr = {}
  7. topkek.lplr = game:GetService('Players').LocalPlayer
  8.  
  9. topkek.tools = {}
  10. topkek.tools.gui = {}
  11. topkek.tools.util = {}
  12. topkek.tools.animator = {}
  13.  
  14. topkek.windows = {}
  15. topkek.windows.lplr = {}
  16. topkek.windows.server = {}
  17. topkek.windows.players = {}
  18. topkek.windows.destruction = {}
  19. topkek.windows.scripts = {}
  20. topkek.windows.misc = {}
  21.  
  22. topkek.misc = {}
  23.  
  24. topkek.gui = game:GetObjects("rbxassetid://1250386349")[1]
  25. topkek.gui.Parent = game:GetService("CoreGui")
  26.  
  27. topkek.center = topkek.gui.Main
  28. topkek.holder = topkek.center.Holder
  29. topkek.topbar = topkek.center.Topbar
  30. topkek.template = topkek.holder.Template
  31. topkek.navigator = topkek.center.Navigation
  32.  
  33. AllowHovers = false
  34. PlayerChatHook, UpdateBanlist = nil
  35. cmd = {}
  36.  
  37. --// data //--
  38. topkek.data.windows = {
  39. 'Home',
  40. 'LocalPlayer',
  41. 'Server',
  42. 'Players',
  43. 'Destruction',
  44. 'Scripts',
  45. 'Catalog',
  46. 'Music',
  47. 'Hats',
  48. 'Faces',
  49. 'Settings',
  50. 'Commands',
  51. 'Banlist',
  52. }
  53.  
  54. color3 = function(r,g,b)
  55. return Color3.new(r/255, g/255, b/255)
  56. end
  57. --// doggo dropdown //--
  58. -- thanks krystal
  59. GUI = {
  60. TextBox = {
  61. Settings = {
  62. Font = Enum.Font.SourceSans;
  63. FontSize = Enum.FontSize.Size14;
  64. };
  65. Color = {
  66. Main = Color3.fromRGB(5,8,11);
  67. Border = Color3.fromRGB(27,42,53);
  68. Text = Color3.fromRGB(199,199,199);
  69. };
  70. New = function(Position, Size, Parent, ...)
  71. local arguments = {...};
  72.  
  73. local TextBox = Instance.new("TextBox", Parent);
  74. TextBox.BackgroundColor3 = GUI.DropDown.Color.Main;
  75. TextBox.BorderColor3 = GUI.DropDown.Color.Border;
  76. TextBox.Font = GUI.TextBox.Settings.Font;
  77. TextBox.FontSize = GUI.TextBox.Settings.FontSize;
  78. TextBox.TextColor3 = GUI.TextBox.Color.Text;
  79. TextBox.Position = Position;
  80. TextBox.Size = Size;
  81. if #arguments then
  82. if arguments[1] then
  83. TextBox.Text = tostring(arguments[1]);
  84. else
  85. TextBox.Text = "";
  86. end
  87. end
  88. return TextBox;
  89. end;
  90. };
  91. DropDown = {
  92. Settings = {
  93. ScrollerAmount = 5; --A scroller will appear at this amount.
  94. ScrollBarThickness = 6;
  95. };
  96. Gfx = {
  97. Scroller = "rbxassetid://606572419";
  98. };
  99. Color = {
  100. Main = color3(36, 36, 107);
  101. Secondary = color3(39, 39, 113);
  102. Border = color3(44, 44, 127);
  103. Text = Color3.fromRGB(199,199,199);
  104. };
  105. New = function(Position, Size, Parent, ...)
  106. local vValue = {};
  107. local arguments = {...};
  108. local vSelected = Instance.new("StringValue");
  109. vSelected.Value = "nil";
  110.  
  111. if arguments then
  112. if type(arguments) == "table" then
  113. for i=1,#(arguments) do
  114. if type(arguments[i]) == "table" then
  115. for f=1,#(arguments[i]) do
  116. table.insert(vValue, tostring((arguments[i])[f]));
  117. end
  118. else
  119. table.insert(vValue, tostring(arguments[i]));
  120. end
  121. end
  122. vSelected.Value = (vValue[1]);
  123. end
  124. end
  125.  
  126. local Main = Instance.new("TextButton", Parent);
  127. Main.BackgroundColor3 = GUI.DropDown.Color.Main;
  128. Main.BorderColor3 = GUI.DropDown.Color.Border;
  129. Main.Position = Position;
  130. Main.Size = Size;
  131. Main.TextColor3 = GUI.DropDown.Color.Text;
  132. Main.FontSize = Enum.FontSize.Size14;
  133. Main.TextStrokeTransparency = 0.5;
  134. Main.TextXAlignment = Enum.TextXAlignment.Left;
  135. Main.Font = Enum.Font.SourceSans;
  136. Main.Text = " "..tostring(vSelected.Value);
  137. Main.ZIndex = 3
  138.  
  139. local Icon = Instance.new("TextLabel", Main);
  140. Icon.SizeConstraint = Enum.SizeConstraint.RelativeYY;
  141. Icon.BackgroundColor3 = GUI.DropDown.Color.Secondary;
  142. Icon.BorderColor3 = GUI.DropDown.Color.Border;
  143. Icon.Position = UDim2.new(1,-2,1,-2);
  144. Icon.Size = UDim2.new(-1,4,-1,4);
  145. Icon.TextColor3 = GUI.DropDown.Color.Text;
  146. Icon.FontSize = Enum.FontSize.Size14;
  147. Icon.TextStrokeTransparency = 0.5;
  148. Icon.Font = Enum.Font.SourceSans;
  149. Icon.Text = "V"
  150. Icon.ZIndex = 4
  151.  
  152. local Holder, Search;
  153. local ClearHolder = function()
  154. if Holder then
  155. Holder:ClearAllChildren();
  156. Holder.Size = UDim2.new(1,0,0,0);
  157. Holder.Visible = false;
  158. if Search then
  159. Search.Visible = false;
  160. end
  161. end
  162. end;
  163.  
  164. local CreateButton;
  165. local RefreshDropDown = function()
  166. if #vValue <= (GUI.DropDown.Settings.ScrollerAmount) then
  167. if not Holder or not Holder:IsA("Frame") then
  168. Holder = nil; Search = nil;
  169. Holder = Instance.new("Frame",Main);
  170. Holder.Size = UDim2.new(1,0,0,0);
  171. Holder.BackgroundColor3 = GUI.DropDown.Color.Main;
  172. Holder.BorderColor3 = GUI.DropDown.Color.Border;
  173. Holder.Visible = false;
  174. Holder.ZIndex = 3
  175. end
  176. elseif #vValue > (GUI.DropDown.Settings.ScrollerAmount) then
  177. if not Holder or not Holder:IsA("ScrollingFrame") then
  178. Holder = nil; Search = nil;
  179. Search = GUI.TextBox.New(UDim2.new(0,0,0,0),UDim2.new(1,0,0,Main.AbsoluteSize.Y),Main);
  180. Search.Visible = false;
  181. Search.ZIndex = 4
  182. Search.Changed:connect(function(p)
  183. if p == "Text" then
  184. CreateButton(Search.Text);
  185. end
  186. end)
  187. Holder = Instance.new("ScrollingFrame",Main);
  188. Holder.BackgroundColor3 = GUI.DropDown.Color.Main;
  189. Holder.BorderColor3 = GUI.DropDown.Color.Border;
  190. Holder.TopImage = GUI.DropDown.Gfx.Scroller;
  191. Holder.MidImage = GUI.DropDown.Gfx.Scroller;
  192. Holder.BottomImage = GUI.DropDown.Gfx.Scroller;
  193. Holder.Size = UDim2.new(1,0,0,Main.AbsoluteSize.Y * (GUI.DropDown.Settings.ScrollerAmount-1));
  194. Holder.Position = UDim2.new(0,0,0,Main.AbsoluteSize.Y)
  195. Holder.ScrollBarThickness = GUI.DropDown.Settings.ScrollBarThickness;
  196. Holder.Visible = false;
  197. Holder.ZIndex = 3;
  198. end
  199. end
  200. if #vValue == 1 and vSelected.Value ~= vValue[1] then
  201. vSelected.Value = vValue[1];
  202. elseif #vValue == 0 then
  203. vSelected.Value = "nil";
  204. warn("Table amount is nil.");
  205. end
  206. Main.Text = " "..tostring(vSelected.Value);
  207. --ClearHolder();
  208. end;
  209.  
  210. local Debounce = false;
  211. CreateButton = function(searches)
  212. if Debounce == false then
  213. Debounce = true;
  214. ClearHolder()
  215. Holder.Visible = true;
  216. local Searched = 0;
  217. if #vValue > 0 then
  218. for i=1,#vValue do
  219. if (searches ~= nil and string.find(string.lower(vValue[i]), string.lower(searches)) and searches ~= "") then
  220. Searched = Searched + 1;
  221. end
  222. end
  223. for i=1,#vValue do
  224. if (searches ~= nil and string.find(string.lower(vValue[i]), string.lower(searches)) and searches ~= "" and Searched > 0) or searches == nil or searches == "" or Searched <= 0 then
  225. local Select = Instance.new("TextButton", Holder);
  226. Select.BackgroundColor3 = GUI.DropDown.Color.Main;
  227. Select.BorderColor3 = GUI.DropDown.Color.Border;
  228. Select.BackgroundTransparency = 1;
  229. Select.BorderSizePixel = 0;
  230. Select.Position = Position;
  231. if #vValue <= (GUI.DropDown.Settings.ScrollerAmount) then
  232. Select.Size = UDim2.new(1,0,0,Main.AbsoluteSize.Y);
  233. else
  234. Select.Size = UDim2.new(1,-(GUI.DropDown.Settings.ScrollBarThickness),0,Main.AbsoluteSize.Y);
  235. end
  236. Select.Position = UDim2.new(0,0,0,(Main.AbsoluteSize.Y) * (#Holder:GetChildren() - 1))
  237. Select.TextColor3 = GUI.DropDown.Color.Text;
  238. Select.FontSize = Enum.FontSize.Size14;
  239. Select.TextStrokeTransparency = 0.5;
  240. Select.Font = Enum.Font.SourceSans;
  241. Select.Text = tostring(vValue[i]);
  242. Select.ZIndex = 3
  243. Select.MouseButton1Click:connect(function()
  244. vSelected.Value = vValue[i];
  245. ClearHolder();
  246. RefreshDropDown();
  247. end)
  248. if #vValue <= (GUI.DropDown.Settings.ScrollerAmount) then
  249. Holder.Size = UDim2.new(1,0,0,Main.AbsoluteSize.Y * i);
  250. elseif Holder:IsA("ScrollingFrame") then
  251. Search.Visible = true;
  252. if #Holder:GetChildren() >= 1 then
  253. Holder.CanvasSize = UDim2.new(1,0,0,Main.AbsoluteSize.Y * #Holder:GetChildren());
  254. Holder.Size = UDim2.new(1,0,0,Main.AbsoluteSize.Y * #Holder:GetChildren());--GUI.DropDown.Settings.ScrollerAmount);
  255. if #Holder:GetChildren() >= GUI.DropDown.Settings.ScrollerAmount then
  256. Holder.Size = UDim2.new(1,0,0,Main.AbsoluteSize.Y * GUI.DropDown.Settings.ScrollerAmount);
  257. Holder.CanvasSize = UDim2.new(1,0,0,Main.AbsoluteSize.Y * #Holder:GetChildren());
  258. end
  259. elseif #Holder:GetChildren() < 1 then
  260. Holder.CanvasSize = UDim2.new(1,0,0,Main.AbsoluteSize.Y * 1);
  261. Holder.Size = UDim2.new(1,0,0,Main.AbsoluteSize.Y * 1);
  262. end
  263. end
  264. end
  265. end
  266. end
  267. Debounce = false;
  268. end
  269. end;
  270.  
  271. RefreshDropDown();
  272.  
  273. Main.MouseButton1Click:connect(function()
  274. CreateButton()
  275. if #vValue >= GUI.DropDown.Settings.ScrollerAmount and Search ~= nil then
  276. Search:CaptureFocus();
  277. Search.Text = "";
  278. end
  279. end)
  280.  
  281. topkek.lplr:GetMouse().Button1Down:connect(function()
  282. ClearHolder()
  283. end)
  284.  
  285. return {
  286. Update = function()
  287. RefreshDropDown();
  288. end;
  289. GetValue = function()
  290. RefreshDropDown();
  291. return vValue;
  292. end;
  293. GetSelected = function()
  294. RefreshDropDown();
  295. return vSelected.Value;
  296. end;
  297. SetTable = function(F)
  298. vValue = F;
  299. RefreshDropDown();
  300. end;
  301. Changed = function(F)
  302. vSelected.Changed:connect(function()
  303. ypcall(function()
  304. F(vSelected.Value);
  305. end)
  306. end)
  307. return "ChangedEvent Hooked";
  308. end;
  309. AddValue = function(obj)
  310. local Type = type(obj);
  311. if Type == "table" then
  312. for i=1,#obj do
  313. table.insert(vValue, obj[i])
  314. end
  315. elseif Type == "string" or Type == "number" or Type == "boolean" then
  316. table.insert(vValue, obj)
  317. end
  318. RefreshDropDown();
  319. end;
  320. RemoveValue = function(obj)
  321. local Type = type(obj);
  322. if Type == "table" then
  323. for i=1,#vValue do
  324. for f=1,#obj do
  325. if tostring(obj[f]) == tostring(vValue[i]) then
  326. table.remove(vValue,i)
  327. end
  328. end
  329. end
  330. else
  331. for i=1,#vValue do
  332. if tostring(obj) == tostring(vValue[i]) then
  333. table.remove(vValue,i)
  334. end
  335. end
  336. end
  337. RefreshDropDown();
  338. end;
  339. ClearValue = function()
  340. vValue = {};
  341. RefreshDropDown();
  342. end;
  343. }
  344. end;
  345. };
  346. };
  347. --// util //--
  348. function topkek.tools.util.Object(o, p)
  349. local a, b = pcall(function()
  350. Instance.new(o)
  351. end)
  352. if not a then
  353. return
  354. end
  355. local obj = Instance.new(o)
  356. for prop, val in pairs(p) do
  357. pcall(function()
  358. obj[prop] = val
  359. end)
  360. end
  361. return obj
  362. end
  363.  
  364. function topkek.tools.util.getContainer(n)
  365. if topkek.holder:FindFirstChild(n) then
  366. return topkek.holder[n]
  367. else
  368. print("menu not found; returning template")
  369. return topkek.holder['Template']
  370. end
  371. end
  372.  
  373. function topkek.tools.util.play(id)
  374. local mu = Instance.new("Sound", game:GetService('Workspace'))
  375. mu.Volume = 1
  376. mu.Looped = true
  377. mu.Pitch = 1
  378. mu.SoundId = "rbxassetid://"..tostring(id)
  379. mu:Play()
  380. end
  381.  
  382. function topkek.tools.util.getTorso(plr) --r15 compatibility lole
  383. if plr.Character then
  384. if plr.Character:FindFirstChild('UpperTorso') then
  385. return plr.Character.UpperTorso
  386. elseif plr.Character:FindFirstChild('Torso') then
  387. return plr.Character.Torso
  388. else
  389. return nil
  390. end
  391. end
  392. end
  393.  
  394. function topkek.tools.util.recurseRemove(x,type_)
  395. local function recurse(x)
  396. for i, v in pairs(x:GetChildren()) do
  397. pcall(function()
  398. if v:IsA(type_) then
  399. v:Destroy()
  400. end
  401. if #(v:GetChildren())>0 then
  402. recurse(v)
  403. end
  404. end)
  405. end
  406. end
  407. recurse(x)
  408. end
  409.  
  410. function topkek.tools.util.recurseFunc(type_,func)
  411. local function recurse(x)
  412. for i, v in pairs(x:GetChildren()) do
  413. pcall(function()
  414. if v:IsA(type_) then
  415. func(v)
  416. end
  417. if #(v:GetChildren())>0 then
  418. recurse(v)
  419. end
  420. end)
  421. end
  422. end
  423. recurse(game)
  424. end
  425. function topkek.tools.util.trowel()
  426. local T = Instance.new('Tool', game.Players.LocalPlayer.Backpack)
  427. T.Name = 'Custom Trowel'
  428.  
  429. local p = Instance.new('Part')
  430. p.Name = 'Handle'
  431. p.Size = Vector3.new(1,4.4,1)
  432. p.Parent = T
  433.  
  434. local specialMesh = Instance.new('SpecialMesh')
  435. specialMesh.MeshId = 'rbxasset://fonts/trowel.mesh'
  436. specialMesh.MeshType = 'FileMesh'
  437. specialMesh.TextureId = 'rbxasset://textures/TrowelTexture.png'
  438. specialMesh.Parent = T.Handle
  439.  
  440. local sound = Instance.new'Sound'
  441. sound.Name = 'build'
  442. sound.SoundId = 'rbxasset://sounds//bass.wav'
  443. sound.Volume = 1
  444. sound.Parent = T.Handle
  445.  
  446. local brickHeight = 100
  447. local trowelSpeed = 0.05
  448. local brickWidth = 500
  449. local mouseConnection
  450.  
  451. function newBrick(CF, P, color)
  452. local brick = Instance.new('Part')
  453. brick.BrickColor = color
  454. brick.CFrame = CF * CFrame.new(P + brick.Size / 2)
  455. brick.Parent = game.Workspace
  456. brick:MakeJoints()
  457. brick.Material = 'Neon'
  458. brick.Name = 'DeleteMe'
  459. return brick, P + brick.Size
  460. end
  461.  
  462. function genBrick(cFrame)
  463. local randBrickColor = BrickColor.Random()
  464. assert(brickWidth > 0)
  465.  
  466. local yPos = 0
  467.  
  468. while yPos < brickHeight do
  469. local vPos
  470. local X = -brickWidth / 2
  471. while X < brickWidth / 2 do
  472. local brick
  473. brick, vPos = newBrick(cFrame, Vector3.new(X, yPos, 0), randBrickColor)
  474. X = vPos.x
  475. wait(trowelSpeed)
  476. end
  477. yPos = vPos.y
  478. end
  479. end
  480.  
  481. function calcPos(vec)
  482. if (math.abs(vec.x) > math.abs(vec.z)) then
  483. if vec.x > 0 then
  484. return Vector3.new(1, 0, 0)
  485. else
  486. return Vector3.new(-1, 0, 0)
  487. end
  488. else
  489. if (vec.z > 0) then
  490. return Vector3.new(0, 0, 1)
  491. else
  492. return Vector3.new(0, 0, -1)
  493. end
  494. end
  495. end
  496.  
  497. T.Enabled = true
  498.  
  499. T.Activated:connect(function()
  500. if T.Enabled and game.Players.LocalPlayer.Character:FindFirstChild('Humanoid') then
  501. T.Enabled = false
  502. T.Handle.build:Play()
  503. genBrick(CFrame.new(game.Players.LocalPlayer.Character.Humanoid.TargetPoint, game.Players.LocalPlayer.Character.Humanoid.TargetPoint + calcPos((game.Players.LocalPlayer.Character.Humanoid.TargetPoint - game.Players.LocalPlayer.Character.Head.Position).unit)))
  504. T.Enabled = true
  505. end
  506. end)
  507.  
  508. T.Equipped:connect(function()
  509. mouseConnection = game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  510. if (key == 'r') then
  511. for i,v in next, workspace:children'' do
  512. if (v.Name == 'DeleteMe') then
  513. v:Destroy()
  514. end
  515. end
  516. end
  517. end)
  518. end)
  519.  
  520. T.Unequipped:connect(function()
  521. mouseConnection:disconnect()
  522. end)
  523. end
  524. function topkek.tools.util.recurseSet(type_,prop,val)
  525. local function recurse(x)
  526. for i, v in pairs(x:GetChildren()) do
  527. pcall(function()
  528. if v:IsA(type_) then
  529. v[prop]=val
  530. end
  531. if #(v:GetChildren())>0 then
  532. recurse(v)
  533. end
  534. end)
  535. end
  536. end
  537. recurse(game)
  538. end
  539. function topkek.tools.util.recurseUltimate(d)
  540. topkek.tools.util.recurseDecal(d)
  541. topkek.tools.util.recurseParticles(d)
  542. end
  543. function topkek.tools.util.recurseDecal(img)
  544. img = 'rbxassetid://' .. img
  545. local function skybox(x)
  546. local sky = Instance.new("Sky",game.Lighting)
  547. local fcs={"Bk","Dn","Ft","Lf","Rt","Up"}
  548. for i,v in pairs(fcs) do
  549. sky["Skybox"..v]=x
  550. end
  551. end
  552.  
  553. local function decal(p, b)
  554. local sides = {"Back", "Bottom", "Front", "Left", "Right", "Top"}
  555. for i, v in pairs(sides) do
  556. local a = Instance.new("Decal", p)
  557. a.Texture = b
  558. a.Face = v
  559. end
  560. end
  561.  
  562. local function recurse(x)
  563. for i, v in pairs(x:GetChildren()) do
  564. pcall(function() -- 'error occured, no output from Lua' LOLE
  565. if v:IsA("BasePart") then
  566. decal(v, img)
  567. end
  568. if #(v:GetChildren())>0 then
  569. recurse(v)
  570. end
  571. end)
  572. end
  573. end
  574.  
  575. recurse(game)
  576. skybox(img)
  577. end
  578. function topkek.tools.util.recurseParticles(img)--topkek2.0 code tbh
  579. img = 'rbxassetid://' .. img
  580. local function skybox(x)
  581. local sky = Instance.new("Sky",game.Lighting)
  582. local fcs={"Bk","Dn","Ft","Lf","Rt","Up"}
  583. for i,v in pairs(fcs) do
  584. sky["Skybox"..v]=x
  585. end
  586. end
  587. local function particle(p, b)
  588. local a = Instance.new("ParticleEmitter", p)
  589. a.Rate = 500
  590. a.Lifetime = NumberRange.new(20, 30)
  591. a.VelocitySpread = 200
  592. a.Texture = b
  593. end
  594.  
  595. local function recurse(x)
  596. for i, v in pairs(x:GetChildren()) do
  597. pcall(function() -- 'error occured, no output from Lua' LOLE
  598. if v:IsA("BasePart") then
  599. particle(v, img)
  600. end
  601. if #(v:GetChildren())>0 then
  602. recurse(v)
  603. end
  604. end)
  605. end
  606. end
  607.  
  608. recurse(game)
  609. skybox(img)
  610. end
  611. function topkek.tools.util.recurseSetObj(obj,type_,prop,val)
  612. local function recurse(x)
  613. for i, v in pairs(x:GetChildren()) do
  614. pcall(function()
  615. if v:IsA(type_) then
  616. v[prop]=val
  617. end
  618. if #(v:GetChildren())>0 then
  619. recurse(v)
  620. end
  621. end)
  622. end
  623. end
  624. recurse(obj)
  625. end
  626. function topkek.tools.util.doPlayers(cval, func)
  627. local plrs = {}
  628. if cval == 'All' then
  629. plrs = game:GetService('Players'):GetPlayers()
  630. else
  631. plrs = {game:GetService('Players'):FindFirstChild(cval)}
  632. end
  633. for i, v in pairs(plrs) do
  634. func(v)
  635. end
  636. end
  637. function topkek.tools.util.scalePlayer(sc,plr)
  638. local pchar = plr.Character
  639. if pchar:FindFirstChild("UpperTorso") then
  640. warn("Player [" ..plr.Name.. "] is R15.")
  641. return
  642. end
  643. local function scale(chr,scl)
  644.  
  645. for _,v in pairs(pchar:GetChildren()) do
  646. if v:IsA("Hat") then
  647. v:Clone()
  648. v.Parent = game.Lighting
  649. end
  650. end
  651.  
  652. local Head = chr['Head']
  653. local Torso = chr['Torso']
  654. local LA = chr['Left Arm']
  655. local RA = chr['Right Arm']
  656. local LL = chr['Left Leg']
  657. local RL = chr['Right Leg']
  658. local HRP = chr['HumanoidRootPart']
  659.  
  660. wait(0.1)
  661.  
  662. Head.formFactor = 3
  663. Torso.formFactor = 3
  664. LA.formFactor = 3
  665. RA.formFactor = 3
  666. LL.formFactor = 3
  667. RL.formFactor = 3
  668. HRP.formFactor = 3
  669.  
  670. Head.Size = Vector3.new(scl * 2, scl, scl)
  671. Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
  672. LA.Size = Vector3.new(scl, scl * 2, scl)
  673. RA.Size = Vector3.new(scl, scl * 2, scl)
  674. LL.Size = Vector3.new(scl, scl * 2, scl)
  675. RL.Size = Vector3.new(scl, scl * 2, scl)
  676. HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
  677.  
  678. local Motor1 = Instance.new('Motor6D', Torso)
  679. Motor1.Part0 = Torso
  680. Motor1.Part1 = Head
  681. Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  682. Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  683. Motor1.Name = "Neck"
  684.  
  685. local Motor2 = Instance.new('Motor6D', Torso)
  686. Motor2.Part0 = Torso
  687. Motor2.Part1 = LA
  688. Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  689. Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  690. Motor2.Name = "Left Shoulder"
  691.  
  692. local Motor3 = Instance.new('Motor6D', Torso)
  693. Motor3.Part0 = Torso
  694. Motor3.Part1 = RA
  695. Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  696. Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  697. Motor3.Name = "Right Shoulder"
  698.  
  699. local Motor4 = Instance.new('Motor6D', Torso)
  700. Motor4.Part0 = Torso
  701. Motor4.Part1 = LL
  702. Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  703. Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  704. Motor4.Name = "Left Hip"
  705.  
  706. local Motor5 = Instance.new('Motor6D', Torso)
  707. Motor5.Part0 = Torso
  708. Motor5.Part1 = RL
  709. Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  710. Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  711. Motor5.Name = "Right Hip"
  712.  
  713. local Motor6 = Instance.new('Motor6D', HRP)
  714. Motor6.Part0 = HRP
  715. Motor6.Part1 = Torso
  716. Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  717. Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  718.  
  719. end
  720.  
  721. scale(pchar, sc)
  722.  
  723. for _,v in pairs(game.Lighting:GetChildren()) do
  724. if v:IsA("Hat") then
  725. v.Parent = pchar
  726. end
  727. end
  728. end
  729. function topkek.tools.util.applyFace(id)
  730. local Char = topkek.lplr.Character
  731. if(Char)then
  732. local Type = id
  733. local Meme=id
  734. local BBG_SIZE=Char.Head.Size.X*1.25;
  735. local STUD_VECTOR_1=Char.Head.Size.Z/4;
  736. local STUD_VECTOR_2=Char.Head.Size.Z;
  737. local bbg=Char:FindFirstChild'BBGMEME'or Instance.new('BillboardGui',Char);
  738. bbg.StudsOffset=Vector3.new(0,STUD_VECTOR_1,STUD_VECTOR_2);
  739. bbg.Size=UDim2.new(BBG_SIZE,0,BBG_SIZE);
  740. bbg.Adornee=Char.Head;
  741. bbg.Name='BBGMEME';
  742. local img=bbg:FindFirstChild'Meme'or Instance.new('ImageLabel',bbg);
  743. img.BackgroundTransparency=1;
  744. img.Image="rbxassetid://"..Meme;
  745. img.Size=UDim2.new(1,0,1,0)
  746. img.Name='Meme';
  747. for i,v in next,Char:children()do
  748. if(v.className=='Hat')then
  749. v=v:FindFirstChild'Handle';
  750. if(v)then
  751. v.Transparency=0
  752. end;
  753. end;
  754. end;
  755. end;
  756. end;
  757. function topkek.tools.util.weenieHutJunior(plr)
  758. plr=plr.Character
  759. Shaft=Instance.new("Part", plr)
  760. Shaft.Name='Shaft'
  761. Shaft.Size=Vector3.new(1, 2.5, 1)
  762. Shaft.TopSurface=0
  763. Shaft.BottomSurface=0
  764. Shaft.CanCollide=true
  765. Cyln=Instance.new("CylinderMesh", Shaft)
  766. Cyln.Scale=Vector3.new(0.5,0.7,0.5)
  767. Instance.new("Weld", plr)
  768. plr.Weld.Part0=plr:FindFirstChild("Torso") or plr:FindFirstChild("LowerTorso")
  769. plr.Weld.Part1=plr.Shaft
  770. plr.Weld.C0=CFrame.new(0,-0.35,-0.9)*CFrame.fromEulerAnglesXYZ(2.2,0,0)
  771. Shaft.BrickColor=BrickColor.new("Pastel brown")
  772. Tip=Instance.new("Part", plr)
  773. Tip.Name='Tip'
  774. Tip.TopSurface=0
  775. Tip.BottomSurface=0
  776. Tip.Size=Vector3.new(1, 1, 1)
  777. Tip.CanCollide=true
  778. 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)
  779. Cyln2=Instance.new("SpecialMesh", Tip)
  780. Cyln2.MeshType='Sphere'
  781. Cyln2.Scale=Vector3.new(0.6,0.6,0.6)
  782. Instance.new("Weld", plr).Name='Weld2'
  783. plr.Weld2.Part0=plr.Shaft
  784. plr.Weld2.Part1=plr.Tip
  785. plr.Weld2.C0=CFrame.new(0,-.9,0)
  786. Tip.BrickColor=BrickColor.new("Pink")
  787. -----
  788. Ball1=Instance.new("Part", plr)
  789. Ball1.Name='Ball1'
  790. Ball1.Size=Vector3.new(1, 1, 1)
  791. Ball1.TopSurface=0
  792. Ball1.BottomSurface=0
  793. Cyln3=Instance.new("SpecialMesh", Ball1)
  794. Cyln3.MeshType='Sphere'
  795. Cyln3.Scale=Vector3.new(0.4,0.4,0.4)
  796. Instance.new("Weld", plr).Name='Weld3'
  797. plr.Weld3.Part0=plr.Shaft
  798. plr.Weld3.Part1=plr.Ball1
  799. plr.Weld3.C0=CFrame.new(0.225,.4,0.2)
  800. Ball1.BrickColor=BrickColor.new("Pastel brown")
  801. -----
  802. Ball2=Instance.new("Part", plr)
  803. Ball2.Name='Ball2'
  804. Ball2.Size=Vector3.new(1, 1, 1)
  805. Ball2.TopSurface=0
  806. Ball2.BottomSurface=0
  807. Cyln3=Instance.new("SpecialMesh", Ball2)
  808. Cyln3.MeshType='Sphere'
  809. Cyln3.Scale=Vector3.new(0.4,0.4,0.4)
  810. Instance.new("Weld", plr).Name='Weld4'
  811. plr.Weld4.Part0=plr.Shaft
  812. plr.Weld4.Part1=plr.Ball2
  813. plr.Weld4.C0=CFrame.new(-0.225,.4,0.2)
  814. Ball2.BrickColor=BrickColor.new("Pastel brown")
  815. end
  816. --// banmgr //--
  817. topkek.banmgr.isPrivate = false
  818. topkek.banmgr.whitelist = {}
  819. topkek.banmgr.bans = {}
  820. function topkek.banmgr.executeKick(z)
  821. local function doKick()
  822. if z.Character and z.Character:FindFirstChild('HumanoidRootPart') and z.Character:FindFirstChild('Torso') then
  823. z.Character.HumanoidRootPart.CFrame = CFrame.new(math.random(999000, 1001000), 1000000, 1000000)
  824. local SP = Instance.new('SkateboardPlatform', z.Character) SP.Position = z.Character.HumanoidRootPart.Position SP.Transparency = 1
  825. spawn(function()
  826. repeat wait()
  827. if z.Character and z.Character:FindFirstChild('HumanoidRootPart') then
  828. SP.Position = z.Character.HumanoidRootPart.Position
  829. end
  830. until not game:GetService('Players'):FindFirstChild(z.Name)
  831. end)
  832. z.Character.Torso.Anchored = true
  833. end
  834. end
  835. repeat
  836. doKick()
  837. wait()
  838. until not z
  839. end
  840. function topkek.banmgr.loadFromFile()
  841. -- todo: read file
  842. topkek.settings.get()
  843. topkek.banmgr.bans = topkek.settingsTable['Bans']
  844. end
  845. function topkek.banmgr.addHardBan(p)
  846. -- todo: write file
  847. table.insert(topkek.banmgr.bans, p.Name)
  848. topkek.settings.get()
  849. table.insert(topkek.settingsTable['Bans'], p.Name)
  850. topkek.settings.write()
  851. print("Hardbanned " .. p.Name)
  852. UpdateBanlist()
  853. topkek.banmgr.executeKick(p)
  854. topkek.banmgr.loadFromFile()
  855. end
  856. function topkek.banmgr.addSoftBan(p)
  857. table.insert(topkek.banmgr.bans, p.Name)
  858. topkek.banmgr.executeKick(p)
  859. end
  860. function topkek.banmgr.plrBanned(p)
  861. for x, m in pairs(topkek.banmgr.bans) do
  862. if m == p.Name then
  863. return true
  864. end
  865. end
  866. return false
  867. end
  868. function topkek.banmgr.doWhitelist(p)
  869. print(p .. " whitelisted")
  870. table.insert(topkek.banmgr.whitelist, p)
  871. end
  872. function topkek.banmgr.unwhitelist(p)
  873. for x, m in pairs(topkek.banmgr.whitelist) do
  874. if m == p then
  875. print(m .. " unwhitelisted")
  876. table.remove(topkek.banmgr.whitelist, x)
  877. if game:GetService('Players'):FindFirstChild(p) then
  878. topkek.banmgr.executeKick(game:GetService('Players')[p])
  879. end
  880. end
  881. end
  882. end
  883. function topkek.banmgr.plrWhitelisted(p)
  884. for x, m in pairs(topkek.banmgr.whitelist) do
  885. if m == p.Name then
  886. return true
  887. end
  888. end
  889. return false
  890. end
  891. function topkek.banmgr.makePrivate()
  892. topkek.banmgr.isPrivate = true
  893. for i, v in pairs(game:GetService('Players'):GetPlayers()) do
  894. if not topkek.banmgr.plrWhitelisted(v) and v ~= topkek.lplr then
  895. spawn(function()
  896. topkek.banmgr.executeKick(v)
  897. end)
  898. end
  899. end
  900. end
  901. function topkek.banmgr.unprivate()
  902. topkek.banmgr.isPrivate = false
  903. end
  904. function topkek.banmgr.init()
  905. topkek.banmgr.loadFromFile()
  906. game:GetService('Players').PlayerAdded:connect(function(p)
  907. if topkek.banmgr.plrBanned(p) or (topkek.banmgr.isPrivate and not topkek.banmgr.plrWhitelisted(p)) then
  908. print("Player " .. p.Name .. " is banned (or private on)! Kicking now.")
  909. topkek.banmgr.executeKick(p)
  910. end
  911. end)
  912. end
  913. --// settings //--
  914. topkek.settings = {}
  915. topkek.settingsTable = {}
  916. function topkek.settings.write()
  917. --writefile("testplzignore.lua", "", game:GetService('HttpService'):JSONEncode(topkek.settingsTable))
  918. end
  919. function topkek.settings.get()
  920. if game.Players.LocalPlayer.Character then
  921. print("No settings! Making new ...")
  922. topkek.settingsTable = {
  923. ['Bans'] = {
  924.  
  925. },
  926. ['Themes'] = {
  927. {Primary = {0,0,0}, Secondary = {0,0,0}, Tertiary = {0,0,0}}
  928. };
  929. }
  930. topkek.settings.write()
  931. return topkek.settingsTable
  932. else
  933. local lset = game:GetService('HttpService'):JSONDecode(set)
  934. topkek.settingsTable = lset
  935. return lset
  936. end
  937. end
  938. --// shortcuts //--
  939. tk = {}
  940. tk.ob = topkek.tools.util.Object
  941. tk.dp = topkek.tools.util.doPlayers
  942. tk.rcm = topkek.tools.util.recurseRemove
  943. tk.rcs = topkek.tools.util.recurseSet
  944. tk.rcf = topkek.tools.util.recurseFunc
  945. tk.rco = topkek.tools.util.recurseSetObj
  946. tk.play = topkek.tools.util.play
  947. tk.gt = topkek.tools.util.getTorso
  948. --// gui //--
  949. -- copying this from topkek3.0 because i'm
  950. -- too lazy to rewrite my lib
  951. topkek.tools.gui.seperation = 12
  952. function topkek.tools.gui:addLeftIcon(parent, img, sz)
  953. topkek.tools.util.Object('ImageLabel', {
  954. Parent = parent;
  955. BackgroundTransparency = 1;
  956. Position = UDim2.new(0, 2, 0, 2);
  957. Size = UDim2.new(0, sz, 0, sz);
  958. Image = img;
  959. })
  960. end
  961. function topkek.tools.gui:makeContainer(n)
  962. local temp = topkek.template:Clone()
  963. temp.Name = n
  964. temp.Parent = topkek.holder
  965. temp.Container.Visible = false
  966. end
  967. function topkek.tools.gui:hookContainer(o, ncan, sepr, stt)
  968. if not o:IsA("ScrollingFrame") and (not ncan) then
  969. return nil
  970. elseif o:IsA("ScrollingFrame") then
  971. o.CanvasSize = UDim2.new(0, 0, 0, 0)
  972. end
  973.  
  974. local self = {}
  975. self.main = o
  976. self.drawX = 0
  977. self.drawY = stt or topkek.tools.gui.seperation/2
  978. self.drawHeight = 0
  979. self.sepr = sepr or topkek.tools.gui.seperation
  980.  
  981. function self:drawButton(sz, txt, func, ysz, cbgd)
  982. local xposOffset = 0
  983. local xposScale = self.drawX
  984. local xszOffset = 0
  985. local xszScale = sz
  986. if not (self.drawX == 0) then
  987. xszOffset = -5
  988. if sz + self.drawX > 0.998 then
  989. xszOffset = -10
  990. end
  991. elseif sz == 1 then
  992. local bzz = 4
  993. if ncan then
  994. bzz = 0
  995. end
  996. xszOffset = -(self.sepr) - bzz
  997. xposOffset = self.sepr/2
  998. else
  999. xszOffset = -4 + -(self.sepr/2)
  1000. xposOffset = self.sepr/2
  1001. end
  1002. if not ysz then ysz = 20 end
  1003. local obj = topkek.tools.util.Object("TextButton", {
  1004. Parent = self.main;
  1005. BackgroundColor3 = cbgd or Color3.new(57/255, 57/255, 163/255);
  1006. BorderSizePixel = 0;
  1007. Position = UDim2.new(xposScale, xposOffset, 0, self.drawY);
  1008. Size = UDim2.new(xszScale, xszOffset, 0, ysz);
  1009. Font = 'SourceSans';
  1010. FontSize = 'Size14';
  1011. Text = txt;
  1012. TextSize = 14;
  1013. TextColor3 = Color3.new(199/255, 199/255, 199/255);
  1014. })
  1015. obj.MouseButton1Down:connect(function()
  1016. spawn(func)
  1017. end)
  1018. if ysz > self.drawHeight then
  1019. self.drawHeight = ysz
  1020. end
  1021. self.drawX = self.drawX + sz
  1022. if self.drawX > 0.998 then
  1023. self.drawY = self.drawY + 3 + self.drawHeight
  1024. self.drawX = 0
  1025. self.drawHeight = 0
  1026. if (not ncan) then
  1027. self.main.CanvasSize = UDim2.new(0, 0, 0, self.drawY + 5)
  1028. end
  1029. end
  1030. return obj
  1031. end
  1032.  
  1033. function self:GetChildren()
  1034. return self.main:GetChildren()
  1035. end
  1036.  
  1037. function self:getDrawY()
  1038. return self.drawY
  1039. end
  1040.  
  1041. function self:setDrawY(y)
  1042. self.drawY = y
  1043. end
  1044.  
  1045. function self:drawTextBox(sz, txt, ysz, cbgd)
  1046. local xposOffset = 0
  1047. local xposScale = self.drawX
  1048. local xszOffset = 0
  1049. local xszScale = sz
  1050. if not (self.drawX == 0) then
  1051. xszOffset = -5
  1052. if sz + self.drawX > 0.998 then
  1053. xszOffset = -10
  1054. end
  1055. elseif sz == 1 then
  1056. xszOffset = -(self.sepr) - 5
  1057. xposOffset = self.sepr/2
  1058. else
  1059. xszOffset = -4 + -(self.sepr/2)
  1060. xposOffset = self.sepr/2
  1061. end
  1062. if not ysz then ysz = 20 end
  1063. local obj = topkek.tools.util.Object("TextBox", {
  1064. Parent = self.main;
  1065. BackgroundColor3 = cbgd or color3(52, 52, 153);
  1066. BorderSizePixel = 0;
  1067. Position = UDim2.new(xposScale, xposOffset, 0, self.drawY);
  1068. Size = UDim2.new(xszScale, xszOffset, 0, ysz);
  1069. Font = 'SourceSans';
  1070. FontSize = 'Size14';
  1071. Text = txt;
  1072. TextSize = 14;
  1073. TextColor3 = Color3.new(199/255, 199/255, 199/255);
  1074. })
  1075. if ysz > self.drawHeight then
  1076. self.drawHeight = ysz
  1077. end
  1078. self.drawX = self.drawX + sz
  1079. if self.drawX > 0.998 then
  1080. self.drawY = self.drawY + 3 + self.drawHeight
  1081. self.drawX = 0
  1082. self.drawHeight = 0
  1083. self.main.CanvasSize = UDim2.new(0, 0, 0, self.drawY + 5)
  1084. end
  1085. return obj
  1086. end
  1087.  
  1088. function self:drawImage(sz, img, ysz)
  1089. local xposOffset = 0
  1090. local xposScale = self.drawX
  1091. local xszOffset = 0
  1092. local xszScale = sz
  1093. if not (self.drawX == 0) then
  1094. xszOffset = -5
  1095. if sz + self.drawX > 0.998 then
  1096. xszOffset = -12
  1097. end
  1098. elseif sz == 1 then
  1099. xszOffset = -(self.sepr) - 5
  1100. xposOffset = self.sepr/2
  1101. else
  1102. xszOffset = -5 + -(self.sepr/2)
  1103. xposOffset = self.sepr/2
  1104. end
  1105. if not ysz then ysz = 20 end
  1106. local obj = topkek.tools.util.Object("ImageLabel", {
  1107. Parent = self.main;
  1108. BackgroundTransparency = 1;
  1109. BorderColor3 = Color3.new(27, 42, 53);
  1110. BorderSizePixel = 0;
  1111. Position = UDim2.new(xposScale, xposOffset, 0, self.drawY);
  1112. Size = UDim2.new(xszScale, xszOffset, 0, ysz);
  1113. Image = img;
  1114. })
  1115. if ysz > self.drawHeight then
  1116. self.drawHeight = ysz
  1117. end
  1118. self.drawX = self.drawX + sz
  1119. if self.drawX > 0.998 then
  1120. self.drawY = self.drawY + 3 + self.drawHeight
  1121. self.drawX = 0
  1122. self.drawHeight = 0
  1123. if (not ncan) then
  1124. self.main.CanvasSize = UDim2.new(0, 0, 0, self.drawY + 5)
  1125. end
  1126. end
  1127. return obj
  1128. end
  1129.  
  1130. function self:drawText(sz, txt, ysz)
  1131. local xposOffset = 0
  1132. local xposScale = self.drawX
  1133. local xszOffset = 0
  1134. local xszScale = sz
  1135. if not (self.drawX == 0) then
  1136. xszOffset = -5
  1137. if sz + self.drawX > 0.998 then
  1138. xszOffset = -10
  1139. end
  1140. elseif sz == 1 then
  1141. local bzz = 5
  1142. if ncan then
  1143. bzz = 0
  1144. end
  1145. xszOffset = -(self.sepr) - bzz
  1146. xposOffset = self.sepr/2
  1147. else
  1148. xszOffset = -4 + -(self.sepr/2)
  1149. xposOffset = self.sepr/2
  1150. end
  1151. if not ysz then ysz = 20 end
  1152. local obj = topkek.tools.util.Object("TextLabel", {
  1153. Parent = self.main;
  1154. BackgroundColor3 = Color3.new(51/255, 51/255, 148/255);
  1155. BorderSizePixel = 0;
  1156. Position = UDim2.new(xposScale, xposOffset, 0, self.drawY);
  1157. Size = UDim2.new(xszScale, xszOffset, 0, ysz);
  1158. Font = 'SourceSans';
  1159. FontSize = 'Size14';
  1160. Text = txt;
  1161. TextSize = 14;
  1162. TextColor3 = Color3.new(199/255, 199/255, 199/255);
  1163.  
  1164. })
  1165. if ysz > self.drawHeight then
  1166. self.drawHeight = ysz
  1167. end
  1168. self.drawX = self.drawX + sz
  1169. if self.drawX > 0.998 then
  1170. self.drawY = self.drawY + 3 + self.drawHeight
  1171. self.drawX = 0
  1172. self.drawHeight = 0
  1173. if (not ncan) then
  1174. self.main.CanvasSize = UDim2.new(0, 0, 0, self.drawY + 5)
  1175. end
  1176. end
  1177. return obj
  1178. end
  1179.  
  1180.  
  1181. function self:drawScrollingContainer(ysz)
  1182. local sz = UDim2.new(1, -(self.sepr/2) - 11, 0, ysz)
  1183. local pos = UDim2.new(0, self.sepr/2, 0, self.drawY)
  1184. local obj = topkek.tools.util.Object("ScrollingFrame", {
  1185. Parent = self.main;
  1186. BackgroundColor3 = color3(42, 42, 117);
  1187. BorderSizePixel = 0;
  1188. Position = pos;
  1189. Size = sz;
  1190. BottomImage = 'rbxassetid://368504177';
  1191. MidImage = 'rbxassetid://368504177';
  1192. TopImage = 'rbxassetid://368504177';
  1193. ScrollBarThickness = 5;
  1194. })
  1195.  
  1196. self.drawY = self.drawY + 5 + ysz
  1197. self.drawX = 0
  1198. self.drawHeight = 0
  1199. if (not ncan) then
  1200. self.main.CanvasSize = UDim2.new(0, 0, 0, self.drawY + 5)
  1201. end
  1202. return topkek.tools.gui:hookContainer(obj, false, 10, 3)
  1203. end
  1204.  
  1205. function self:drawContainer(xsz, ysz, xz, tz, sep)
  1206. local sz = UDim2.new(xsz, -(self.sepr/2) - 11, 0, ysz)
  1207. local pos = UDim2.new(tz or 0, self.sepr/2, 0, self.drawY)
  1208. local obj = topkek.tools.util.Object("Frame", {
  1209. Parent = self.main;
  1210. BackgroundColor3 = color3(42, 42, 117);
  1211. BorderSizePixel = 0;
  1212. Position = pos;
  1213. Size = sz;
  1214. })
  1215. if not xz then
  1216. self.drawY = self.drawY + 5 + ysz
  1217. end
  1218. self.drawX = 0
  1219. self.drawHeight = 0
  1220. if (not ncan) then
  1221. self.main.CanvasSize = UDim2.new(0, 0, 0, self.drawY + 5)
  1222. end
  1223. return topkek.tools.gui:hookContainer(obj, sep or 12, 5)
  1224. end
  1225.  
  1226. function self:addSpacing()
  1227. self.drawY = self.drawY + 3
  1228. end
  1229.  
  1230. function self:center()
  1231. local a,c,b=
  1232. self.main.Position.X.Scale,
  1233. self.main.Position.X.Offset,self.main.Size.Y.Offset
  1234. self.main.Position=UDim2.new(a,c+2, 0.5, -(b/2))
  1235. end
  1236.  
  1237. return self
  1238. end
  1239.  
  1240. --//anim//--
  1241. topkek.tools.animator.animateTo = function(source, dest)
  1242. -- holder2holder:
  1243. -- invis holder
  1244. -- clone holder; vis
  1245. -- move holder to right
  1246. -- vis dest container
  1247. -- tween clone holder left
  1248. -- tween dest holder right
  1249. print("nav",source,dest)
  1250. topkek.holder.Visible = false
  1251. local hclone = topkek.holder:Clone()
  1252. hclone.Parent = topkek.center
  1253. hclone.Name = 'animclone'
  1254. hclone.Visible = true
  1255. topkek.holder.Position = UDim2.new(-1, 0, 0, 30)
  1256. source.Visible = false
  1257. dest.Visible = true
  1258. dest.Container.Visible = true
  1259. dest.Container.ZIndex = 1
  1260. dest.ZIndex = 1
  1261. topkek.holder.Visible = true
  1262. topkek.holder:TweenPosition(UDim2.new(0, 150, 0, 30), "Out", "Quad", 0.3)
  1263. hclone:TweenPosition(UDim2.new(1, 0, 0, 30), "Out", "Quad", 0.3)
  1264. wait(0.3)
  1265. end
  1266. topkek.tools.animator.initialAnimation = function()
  1267. -- initanim:
  1268. -- join both composites
  1269. -- delete composites; vis solid
  1270. -- tween solid to nav topbar
  1271. -- copy topbar plrname; move outside region
  1272. -- tween in clone topbar
  1273. -- delete clone and solid; vis topbar
  1274. -- tween down topbar
  1275. -- tween holder out
  1276. local function abspos(x)
  1277. return UDim2.new(0, x.AbsolutePosition.X, 0, x.AbsolutePosition.Y)
  1278. end
  1279. local function abssz(x)
  1280. return UDim2.new(0, x.AbsoluteSize.X, 0, x.AbsoluteSize.Y)
  1281. end
  1282. local holder = topkek.holder
  1283. local nav = topkek.navigator
  1284. local topnav = nav.Topbar
  1285. local topbar = topkek.topbar
  1286. local pname = topbar.PlayerName:Clone()
  1287. local solid = topkek.gui.Solid
  1288. topkek.center.Size = UDim2.new(0, 150, 0, 30)
  1289. topkek.gui.Composite1:TweenPosition(UDim2.new(0.5, -50, 0.5, -50), 'Out', 'Quad', 0.5)
  1290. topkek.gui.Composite2:TweenPosition(UDim2.new(0.5, 0, 0.5, -50), 'Out', 'Quad', 0.5)
  1291. wait(0.52)
  1292. solid.Visible = true
  1293. topkek.gui.Composite1:Destroy()
  1294. topkek.gui.Composite2:Destroy()
  1295. wait(3)
  1296. solid.Label:TweenPosition(UDim2.new(0, 0, 1.5, 0), 'Out', 'Quad', 0.5)
  1297. solid:TweenSizeAndPosition(abssz(topnav), abspos(topnav), 'Out', 'Linear', 0.6)
  1298. wait(0.52)
  1299. solid.Label:Destroy()
  1300. wait(0.12)
  1301. topkek.center.Visible = true
  1302. topnav.Visible = true
  1303. solid:Destroy()
  1304. pname.Position = UDim2.new(0, -170, 0, 0)
  1305. pname.Parent = topnav
  1306. pname.Visible = true
  1307. pname:TweenPosition(UDim2.new(0, 10, 0, 0), 'Out', 'Quad', 0.2)
  1308. wait(0.25)
  1309. topkek.center:TweenSize(UDim2.new(0, 150, 0, 395), 'Out', 'Quad', 0.3)
  1310. spawn(topkek.navigation.buildNavigator)
  1311. wait(0.35)
  1312. topkek.center:TweenSize(UDim2.new(0, 470, 0, 395), 'In', 'Quad', 0.3)
  1313. wait(0.35)
  1314. topbar.PlayerName.Visible = true
  1315. pname:Destroy()
  1316. AllowHovers = true
  1317. end
  1318. --//nav//--
  1319. topkek.navigation.currentContainer = topkek.tools.util.getContainer('Home')
  1320. topkek.navigation.windowState = 0
  1321. topkek.navigation.gotoContainer = function(cont)
  1322. topkek.tools.animator.animateTo(topkek.navigation.currentContainer, cont)
  1323. topkek.navigation.currentContainer = cont
  1324. end
  1325. topkek.navigation.buildNavigator = function()
  1326. local nav = topkek.navigator
  1327. local hook = topkek.tools.gui:hookContainer(nav.Scroll, false)
  1328. local btns = {}
  1329. for l, x in pairs(topkek.data.windows) do
  1330. local container = topkek.tools.util.getContainer(x)
  1331. local btn = hook:drawButton(1, x, function() topkek.navigation.gotoContainer(container) end, 25)
  1332. local ZPos = btn.Position
  1333. btn.Position = btn.Position - UDim2.new(0, 0, 0, 5)
  1334. btn:TweenPosition(ZPos, 'Out', 'Bounce', 0.2)
  1335. btn.LayoutOrder = l
  1336. btn.ZIndex = 4
  1337. local OPos = btn.Position
  1338. btn.MouseEnter:connect(function()
  1339. if AllowHovers == false then
  1340. return
  1341. end
  1342. for i, v in pairs(btns) do
  1343. if v[1] ~= btn then
  1344. v[1]:TweenPosition(v[2], 'Out', 'Quad', 0.1)
  1345. end
  1346. end
  1347. btn:TweenPosition(OPos + UDim2.new(0, 3, 0, 0), 'Out', 'Quad', 0.1)
  1348. end)
  1349. btn.MouseLeave:connect(function()
  1350. btn:TweenPosition(OPos, 'Out', 'Quad', 0.1)
  1351. end)
  1352. table.insert(btns, {btn, OPos})
  1353. wait()
  1354. end
  1355. end
  1356. topkek.navigation.buildTopbar = function()
  1357. local top = topkek.topbar
  1358. local FELabel = top.Controllers.IsFE
  1359. top.PlayerName.Text = topkek.lplr.Name
  1360. if game:GetService('Workspace').FilteringEnabled == true then
  1361. FELabel.Text = "FE Game"
  1362. FELabel.TextColor3 = BrickColor.new("Bright red").Color
  1363. else
  1364. FELabel.Text = "Not FE"
  1365. FELabel.TextColor3 = BrickColor.new("Bright green").Color
  1366. end
  1367. top.Controllers.Hide.MouseButton1Down:connect(function()
  1368. if topkek.navigation.windowState == 0 then
  1369. topkek.navigation.windowState = 1
  1370. topkek.center:TweenSize(UDim2.new(0, 470, 0, 30), 'Out', 'Quint', 0.2)
  1371. else
  1372. topkek.navigation.windowState = 0
  1373. topkek.center:TweenSize(UDim2.new(0, 470, 0, 395), 'Out', 'Quint', 0.2)
  1374. end
  1375. end)
  1376. top.Controllers.Exit.MouseButton1Down:connect(function()
  1377. topkek.center:TweenSize(UDim2.new(0, 470, 0, 30), 'Out', 'Quint', 0.3)
  1378. wait(0.31)
  1379. topkek.center:TweenSize(UDim2.new(0, 0, 0, 0), 'Out', 'Quint', 0.3)
  1380. PlayerChatHook:disconnect()
  1381. end)
  1382.  
  1383. end
  1384. topkek.navigation.initCommandBar = function()
  1385. DistributedCmdBar, cmd = topkek.holder.Command, {}
  1386. loadstring(game:GetObjects("rbxassetid://685510751")[1].Source)()
  1387. DistributedCmdBar.FocusLost:connect(function(e)
  1388. if e == true then
  1389. cmd.commands.run(DistributedCmdBar.Text)
  1390. DistributedCmdBar.Text = ''
  1391. end
  1392. end)
  1393.  
  1394. PlayerChatHook = cmd.players.PlayerChatted:connect(function (_, plr, msg, _)
  1395. if cmd.util.isadmin(plr.Name) then
  1396. if msg:sub(1,1) == cmd.prefix or msg:sub(1,1) == cmd.hidden then
  1397. cmd.commands.run(msg:sub(2, #msg))
  1398. end
  1399. end
  1400. end)
  1401. end
  1402. topkek.navigation.buildHomePage = function()
  1403. local count = 0
  1404. for _, _ in pairs(cmd.commands.store) do count = count + 1 end
  1405. local hook = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Home').Container, true)
  1406. hook:drawText(1, 'T0PK3K 4.0 blue editon by Jacoby')
  1407. hook:drawText(1, 'Patch version 1.0.5')
  1408. hook:drawText(1, 'Commandbase patch version 1.0.0')
  1409. hook:drawText(1, 'Number of commands: ' .. tostring(count))
  1410. local stime = hook:drawText(1, 'Server Time: 0')
  1411. spawn(function()
  1412. while true do
  1413. stime.Text = 'Server Time: ' .. tostring(game:GetService('Workspace').DistributedGameTime)
  1414. wait(0.5)
  1415. end
  1416. end)
  1417. local ssz = hook:drawText(1, 'Server Size: 0')
  1418. spawn(function()
  1419. while true do
  1420. ssz.Text = 'Server Size: ' .. tostring(game:GetService('Players').NumPlayers)
  1421. wait(0.5)
  1422. end
  1423. end)
  1424. local fe = game:GetService('Workspace').FilteringEnabled
  1425. hook:drawText(1, 'FilteringEnabled: ' .. (fe and "YES" or "NO"))
  1426. hook:drawText(1, 'PlaceId: ' .. tostring(game.PlaceId))
  1427. hook:drawText(1, 'I did not make this GUI, just redesigned it. \nCredits for making it goes to nosyliam.', 55)
  1428. end
  1429. topkek.navigation.buildContainers = function()
  1430. for _, v in pairs(topkek.data.windows) do
  1431. topkek.tools.gui:makeContainer(v)
  1432. end
  1433. end
  1434.  
  1435. topkek.navigation.initCommandBar()
  1436. topkek.navigation.buildContainers()
  1437. topkek.navigation.buildTopbar()
  1438. topkek.navigation.buildHomePage()
  1439. wait()
  1440.  
  1441.  
  1442. --// actual code below lole //--
  1443.  
  1444. --// PLAYERS //--
  1445. local plrwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Players').Container)
  1446. local search = plrwin:drawButton(1, '', function()end)
  1447. drop = GUI.DropDown.New(UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), search, {'All'})
  1448. function fixPlayerDrop()
  1449. local t = {'All'}
  1450. for i, v in pairs(game.Players:GetPlayers()) do
  1451. table.insert(t, v.Name)
  1452. end
  1453. drop.SetTable(t)
  1454. end
  1455. game.Players.PlayerAdded:connect(function()
  1456. fixPlayerDrop()
  1457. end)
  1458. game.Players.PlayerRemoving:connect(function()
  1459. fixPlayerDrop()
  1460. end)
  1461. plrFrame = plrwin:drawContainer(1, 100)
  1462. headshotContainer = plrFrame:drawContainer(0.4, 94, true)
  1463. headshotContainer:setDrawY(20)
  1464. headshot = headshotContainer:drawImage(1, "https://www.roblox.com/bust-thumbnail/image?userId=1&width=420&height=420&format=png", 74)
  1465. headshotContainer:setDrawY(0)
  1466. userNameText = headshotContainer:drawText(1, "[All]")
  1467. userNameText.ClipsDescendants = true
  1468. userNameText.Font = Enum.Font.SourceSansBold
  1469. infoContainer = plrFrame:drawContainer(0.5, 94, true, 0.5)
  1470. infoContainer.BackgroundColor3 = color3(38, 38, 108)
  1471. userIdText = infoContainer:drawText(1, "ID: 0")
  1472. userAgeText = infoContainer:drawText(1, "Age: 0")
  1473. userTeamText = infoContainer:drawText(1, "Team: Neutral")
  1474. cval = 'All'
  1475. fixPlayerDrop()
  1476.  
  1477. function updatePlayer(plri)
  1478. local plr = game:GetService('Players'):FindFirstChild(plri)
  1479. if not plr and plri ~= 'All' then
  1480. print("Couldn't find player!")
  1481. updatePlayer(topkek.lplr)
  1482. else
  1483. headshot.Image = "https://www.roblox.com/bust-thumbnail/image?userId=1&width=420&height=420&format=png"
  1484. userNameText.Text = "[All]"
  1485. userIdText.Text = 'ID: [multiple]'
  1486. userAgeText.Text = 'Age: [multiple]'
  1487. userTeamText.Text = 'Team: [multiple]'
  1488. cval = 'All'
  1489. end
  1490. local team = plr.TeamColor
  1491. if team == nil then
  1492. team = 'Neutral'
  1493. else
  1494. team = tostring(team)
  1495. end
  1496. headshot.Image = "https://www.roblox.com/bust-thumbnail/image?userId=" .. tostring(plr.UserId) .. "&width=420&height=420&format=png"
  1497. userNameText.Text = plr.Name
  1498. userIdText.Text = 'ID: ' .. tostring(plr.UserId)
  1499. userAgeText.Text = 'Age: ' .. tostring(plr.AccountAge)
  1500. userTeamText.Text = 'Team: ' .. team
  1501. cval = plr.Name
  1502.  
  1503. end
  1504. drop.Changed(updatePlayer)
  1505. --actual code ------__-
  1506. plrwin:addSpacing()
  1507. plrwin:drawButton(1/2, 'Kick', function()
  1508. tk.dp(cval, function(p)
  1509. topkek.banmgr.executeKick(p)
  1510. end)
  1511. end)
  1512.  
  1513. plrwin:drawButton(1/2, 'Ban', function()
  1514. tk.dp(cval, function(p)
  1515. topkek.banmgr.addSoftBan(p)
  1516. end)
  1517. end)
  1518. plrwin:drawButton(1/2,'Friendlag', function()
  1519. tk.dp(cval, function(p)
  1520. for i = 1, 10 do
  1521. spawn(function()
  1522. while wait() do
  1523. game.Players.LocalPlayer:RequestFriendship(p)
  1524. game.Players.LocalPlayer:RevokeFriendship(p)
  1525. end
  1526. end)
  1527. end
  1528. end)
  1529. end)
  1530. plrwin:drawButton(1/2, 'Hardban', function()
  1531. tk.dp(cval, function(p)
  1532. topkek.banmgr.addHardBan(p)
  1533. end)
  1534. end)
  1535. plrwin:addSpacing()
  1536. plrwin:drawButton(1/2, 'Bring', function()
  1537. tk.dp(cval, function(z)
  1538. if z.Character then
  1539. z.Character.HumanoidRootPart.CFrame =
  1540. game:service'Players'.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(1,1,1)
  1541. end
  1542. end)
  1543. end)
  1544. plrwin:drawButton(1/2, 'Goto', function()
  1545. tk.dp(cval, function(z)
  1546. game:service'Players'.LocalPlayer.Character.HumanoidRootPart.CFrame =
  1547. z.Character.HumanoidRootPart.CFrame * CFrame.new(1,1,1)
  1548. end)
  1549. end)
  1550. plrwin:addSpacing()
  1551. plrwin:drawButton(1/3, 'Kill', function()
  1552. tk.dp(cval, function(p)
  1553. if p.Character and p.Character:FindFirstChild("Humanoid") then
  1554. p.Character.Humanoid.Health = 0
  1555. end
  1556. end)
  1557. end)
  1558. plrwin:drawButton(1/3, 'Seizure', function()
  1559. tk.dp(cval, function(p)
  1560. if p.Character and p.Character:FindFirstChild("Humanoid") and tk.gt(p) then
  1561. spawn(function()
  1562. p.Character.Humanoid.PlatformStand = true
  1563. tk.gt(p).CFrame = tk.gt(p).CFrame * CFrame.Angles(math.rad(90),0,0)
  1564. repeat
  1565. wait()
  1566. p.Character.Humanoid.PlatformStand = true
  1567. tk.gt(p).Velocity = Vector3.new(math.random(-10,10),-5,math.random(-10,10))
  1568. tk.gt(p).RotVelocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  1569. until not p.Character:FindFirstChild("Humanoid") or not tk.gt(p)
  1570. end)
  1571. end
  1572. end)
  1573. end)
  1574. plrwin:drawButton(1/3, 'Stun', function()
  1575. tk.dp(cval, function(p)
  1576. if p.Character and p.Character:FindFirstChild("Humanoid") then
  1577. p.Character.Humanoid.PlatformStand = true
  1578. p.Character.Torso.CFrame = p.Character.Torso.CFrame * CFrame.Angles(math.rad(90),0,0)
  1579. end
  1580. end)
  1581. end)
  1582. plrwin:drawButton(1/3, 'Freeze', function()
  1583. tk.dp(cval, function(p)
  1584. if p.Character then
  1585. tk.gt(p).Anchored = true
  1586. end
  1587. end)
  1588. end)
  1589. plrwin:drawButton(1/3, 'Thaw', function()
  1590. tk.dp(cval, function(p)
  1591. if p.Character then
  1592. tk.gt(p).Anchored = false
  1593. end
  1594. end)
  1595. end)
  1596. plrwin:drawButton(1/3, 'Superslow', function()
  1597. tk.dp(cval, function(p)
  1598. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1599. p.Character.Humanoid.WalkSpeed = 1
  1600. end
  1601. end)
  1602. end)
  1603. plrwin:drawButton(1/3, 'Highjump', function()
  1604. tk.dp(cval, function(p)
  1605. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1606. p.Character.Humanoid.JumpPower = 125
  1607. end
  1608. end)
  1609. end)
  1610. plrwin:drawButton(1/3, 'God', function()
  1611. tk.dp(cval, function(p)
  1612. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1613. p.Character.Humanoid.MaxHealth = math.huge
  1614. p.Character.Humanoid.Health = math.huge
  1615. end
  1616. end)
  1617. end)
  1618. plrwin:drawButton(1/3, 'Semigod', function()
  1619. tk.dp(cval, function(p)
  1620. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1621. p.Character.Humanoid.MaxHealth = 9e9
  1622. p.Character.Humanoid.Health = 9e9
  1623. end
  1624. end)
  1625. end)
  1626. plrwin:drawButton(1/3, 'Fast', function()
  1627. tk.dp(cval, function(p)
  1628. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1629. p.Character.Humanoid.WalkSpeed = 50
  1630. end
  1631. end)
  1632. end)
  1633. Follow = false;
  1634. plrwin:drawButton(1/3, 'Annoy', function()
  1635. tk.dp(cval, function(p)
  1636. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1637. if Follow == true then
  1638. Follow = false; return
  1639. else Follow = true end
  1640. while Follow == true do
  1641. game:service'Players'.LocalPlayer.Character.HumanoidRootPart.CFrame=
  1642. p.Character.HumanoidRootPart.CFrame
  1643. wait()
  1644. end
  1645. end
  1646. end)
  1647. end)
  1648. plrwin:drawButton(1/3, 'Freefall', function()
  1649. tk.dp(cval, function(p)
  1650. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1651. p.Character.HumanoidRootPart.CFrame = p.Character.HumanoidRootPart.CFrame * CFrame.new(0, 10000, 0)
  1652. end
  1653. end)
  1654. end)
  1655. plrwin:drawButton(1/3, 'Destroy', function()
  1656. tk.dp(cval, function(p)
  1657. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1658. p.Character.Humanoid:Destroy()
  1659. end
  1660. end)
  1661. end)
  1662. plrwin:drawButton(1/3, 'Fix', function()
  1663. tk.dp(cval, function(p)
  1664. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1665. p.Character.Humanoid.Health = 100
  1666. p.Character.Humanoid.MaxHealth = 100
  1667. p.Character.Humanoid.JumpPower = 100
  1668. p.Character.Humanoid.WalkSpeed = 16
  1669. p.Character.Humanoid.PlatformStand = false
  1670. p.Character.Humanoid.Jump = true
  1671. end
  1672. end)
  1673. end)
  1674. plrwin:drawButton(1/3, 'Respawn', function()
  1675. tk.dp(cval, function(p)
  1676. if p.Character then
  1677. local a1 = Instance.new("Model", game:service'Workspace')
  1678. local a2 = Instance.new("Part", game:service'Workspace')
  1679. a2.CanCollide = true
  1680. a2.Anchored = true
  1681. a2.CFrame = CFrame.new(10000, 10000, 10000)
  1682. a2.Name = "Torso"
  1683. local a3 = Instance.new("Humanoid", a1)
  1684. a3.MaxHealth=100;a3.Health=100
  1685. p.Character = a1
  1686. a3.Health=0
  1687. end
  1688. end)
  1689. end)
  1690. plrwin:addSpacing()
  1691. local nameInp
  1692. plrwin:drawButton(1/3, 'Name', function()
  1693. tk.dp(cval, function(z)
  1694. local Character = z.Character
  1695. local newName = Instance.new("Model", z.Character)
  1696. newName.Name = nameInp.Text
  1697. local cl = Character:WaitForChild("Head"):Clone()
  1698. cl.Parent = newName
  1699. cl:WaitForChild("face"):Destroy()
  1700. local hum = Instance.new("Humanoid", newName)
  1701. hum.Name = "NameTag"
  1702. hum.MaxHealth = 0
  1703. hum.Health = 0
  1704. local weld = Instance.new("Weld", cl)
  1705. weld.Part0 = cl
  1706. weld.Part1 = Character:WaitForChild("Head")
  1707. Character:WaitForChild("Head").Transparency = 1
  1708. wait(.5)
  1709. cl.BrickColor = Character:WaitForChild("Head").BrickColor
  1710. end)
  1711. end)
  1712. nameInp = plrwin:drawTextBox(2/3, '')
  1713. local chatInp
  1714. plrwin:drawButton(1/3, 'Chat', function()
  1715. tk.dp(cval, function(z)
  1716. game:GetService('Chat'):Chat(z.Charcter, chatInp.Text)
  1717. end)
  1718. end)
  1719. chatInp = plrwin:drawTextBox(2/3, '')
  1720. local disgInp
  1721. plrwin:drawButton(1/3, 'Disguise', function()
  1722. tk.dp(cval, function(p)
  1723. local id = 0
  1724. if tonumber(disgInp.Text) then
  1725. id = tonumber(disgInp.Text)
  1726. else
  1727. id = game:GetService('Players'):GetUserIdFromNameAsync(disgInp.Text)
  1728. end
  1729. if p.Character:FindFirstChild("Humanoid") then
  1730. p.Character.Humanoid.Health = 0
  1731. end
  1732. p.CharacterAppearance = 'https://assetgame.roblox.com/Asset/CharacterFetch.ashx?userId=' .. tostring(id)
  1733. end)
  1734. end)
  1735. disgInp = plrwin:drawTextBox(2/3, 'ROBLOX')
  1736. plrwin:addSpacing()
  1737. clrR = plrwin:drawTextBox(1/3, '0')
  1738. clrG = plrwin:drawTextBox(1/3, '0')
  1739. clrB = plrwin:drawTextBox(1/3, '0')
  1740. function getColor()
  1741. local r = tonumber(clrR.Text)
  1742. local g = tonumber(clrG.Text)
  1743. local b = tonumber(clrB.Text)
  1744. if not (r and g and b) then return Color3.new(0,0,0) end
  1745. return Color3.new(r/255, g/255, b/255)
  1746. end
  1747. plrwin:drawButton(1/3, 'Sparkles', function()
  1748. tk.dp(cval, function(z)
  1749. Instance.new("Sparkles", tk.gt(z)).SparkleColor = getColor()
  1750. end)
  1751. end)
  1752. plrwin:drawButton(1/3, 'Smoke', function()
  1753. tk.dp(cval, function(z)
  1754. Instance.new("Smoke", tk.gt(z)).Color = getColor()
  1755.  
  1756. end)
  1757. end)
  1758. plrwin:drawButton(1/3, 'Fire', function()
  1759. tk.dp(cval, function(z)
  1760. local fr = Instance.new("Fire", tk.gt(z))
  1761. fr.Color = getColor()
  1762. fr.Heat = 30
  1763. fr.Size = 20
  1764. end)
  1765. end)
  1766. plrwin:drawButton(1/3, 'Forcefield', function()
  1767. tk.dp(cval, function(z)
  1768. if z.Character then
  1769. Instance.new("ForceField", z.Character)
  1770. end
  1771. end)
  1772. end)
  1773. plrwin:drawButton(1/3, 'Select', function()
  1774. tk.dp(cval, function(z)
  1775. if z.Character and tk.gt(z) then
  1776. Instance.new("SelectionBox", tk.gt(z)).Adornee = tk.gt(z)
  1777. end
  1778. end)
  1779. end)
  1780. plrwin:drawButton(1/3, 'Sphere', function()
  1781. tk.dp(cval, function(z)
  1782. if z.Character and tk.gt(z) then
  1783. Instance.new("SelectionSphere", tk.gt(z)).Adornee = tk.gt(z)
  1784. end
  1785. end)
  1786. end)
  1787. plrwin:drawButton(1/3, 'Fling', function()
  1788. tk.dp(cval, function(z)
  1789. spawn(function() --kohls admin commands lol
  1790. if z.Character and tk.gt(z) then
  1791. local xran, zran
  1792. repeat xran = math.random(5555, 9999) until math.abs(xran) >= 5555
  1793. repeat zran = math.random(5555, 9999) until math.abs(zran) >= 5555
  1794. z.Character.Humanoid.Sit = true
  1795. tk.gt(z).Velocity = Vector3.new(0,0,0)
  1796. local frc = Instance.new("BodyForce", tk.gt(z))
  1797. frc.Name = "BFRC"
  1798. frc.force = Vector3.new(xran*4,9999*5,zran*4)
  1799. game:GetService("Debris"):AddItem(frc, 0.1)
  1800. end
  1801. end)
  1802. end)
  1803. end)
  1804. plrwin:drawButton(1/3, 'Explode', function()
  1805. tk.dp(cval, function(z)
  1806. if z.Character and tk.gt(z) then
  1807. local explosion = Instance.new("Explosion")
  1808. explosion.Position = tk.gt(z).Position
  1809. explosion.Parent = workspace
  1810. end
  1811. end)
  1812. end)
  1813. plrwin:drawButton(1/3, 'Nuke', function()
  1814. tk.dp(cval, function(z)
  1815. if z.Character and tk.gt(z) then
  1816. local torso = tk.gt(z)
  1817. local nuke = Instance.new("Part", game.Workspace)
  1818. local opos = torso.CFrame
  1819. nuke.BrickColor = BrickColor.new("Bright yellow")
  1820. nuke.TopSurface = Enum.SurfaceType.Smooth
  1821. nuke.BottomSurface = Enum.SurfaceType.Smooth
  1822. nuke.Anchored = true
  1823. nuke.CanCollide = false
  1824. nuke.Shape = "Ball"
  1825. nuke.Transparency = 0.5
  1826. nuke.CFrame = torso.CFrame
  1827. nuke.Size = Vector3.new(1, 1, 1)
  1828. nuke.Touched:connect(function(p)
  1829. local expl = Instance.new("Explosion", p)
  1830. expl.BlastPressure = 50000
  1831. expl.BlastRadius = 50
  1832. expl.Position = p.Position
  1833. p.Material = Enum.Material.CorrodedMetal
  1834. p:BreakJoints()
  1835. end)
  1836. for i = 1, 150 do
  1837. nuke.Size = Vector3.new(i, i, i)
  1838. nuke.CFrame = opos
  1839. wait(0.08)
  1840. end
  1841. nuke:Destroy()
  1842. end
  1843. end)
  1844. end)
  1845. plrwin:drawButton(1/3, 'No Tools', function()
  1846. tk.dp(cval, function(p)
  1847. for _, t in pairs(p.Backpack:GetChildren()) do
  1848. t:Destroy()
  1849. end
  1850. end)
  1851. end)
  1852. plrwin:drawButton(1/3, 'Take Tools', function()
  1853. tk.dp(cval, function(p)
  1854. for _, t in pairs(p.Backpack:GetChildren()) do
  1855. t.Parent = game:service'Players'.LocalPlayer.Backpack
  1856. end
  1857. end)
  1858. end)
  1859. plrwin:drawButton(1/3, 'BTools', function()
  1860. tk.dp(cval, function(p)
  1861. local a = Instance.new("HopperBin")
  1862. a.BinType = "GameTool"
  1863. a.Parent = p.Backpack
  1864. local a = Instance.new("HopperBin")
  1865. a.BinType = "Clone"
  1866. a.Parent = p.Backpack
  1867. local a = Instance.new("HopperBin")
  1868. a.BinType = "Hammer"
  1869. a.Parent = p.Backpack
  1870. end)
  1871. end)
  1872. plrwin:drawButton(1/3, 'Hotdog', function()
  1873. tk.dp(cval, function(p)
  1874. if p.Character and tk.gt(p) then
  1875. topkek.tools.util.weenieHutJunior(p)
  1876. end
  1877. end)
  1878. end)
  1879. plrwin:drawButton(1/3, 'Quicksand', function()
  1880. tk.dp(cval, function(z)
  1881. if z.Character and z.Character:FindFirstChild("Humanoid") then
  1882. local tor = tk.gt(z)
  1883. local hole = Instance.new("Part", z.Character)
  1884. hole.Anchored = true
  1885. hole.Name = "Hole"
  1886. hole.FormFactor = Enum.FormFactor.Custom
  1887. hole.Size = Vector3.new(7, 1, 7)
  1888. hole.CanCollide = false
  1889. hole.CFrame = tor.CFrame * CFrame.new(0,-3.3,0)
  1890. hole.BrickColor = BrickColor.new("Cool yellow")
  1891. hole.Material = Enum.Material.Sand
  1892. local hm = Instance.new("CylinderMesh", hole)
  1893. tor.Anchored = true
  1894. if z.Character:FindFirstChild("Humanoid") then
  1895. z.Character.Humanoid.Jump = true
  1896. end
  1897. for x,m in pairs(z.Character:GetChildren()) do
  1898. if m:IsA("BasePart") or m:IsA("MeshPart") then
  1899. m.CanCollide = false
  1900. end
  1901. end
  1902. for i=1,75 do
  1903. tor.CFrame=tor.CFrame*CFrame.new(0,-0.1,0)
  1904. wait(0.06)
  1905. end
  1906. tor.CFrame=tor.CFrame*CFrame.new(0,
  1907. -500,0
  1908. )
  1909. z.Character.Humanoid.Health = 0
  1910. end
  1911. end)
  1912. end)
  1913. plrwin:drawButton(1/3, 'Insane', function()
  1914. tk.dp(cval, function(p)
  1915. if p.Character and tk.gt(p) then
  1916. for i,v in pairs(tk.gt(p):GetChildren()) do
  1917. if v:IsA("Motor6D") then
  1918. spawn(function()
  1919. while v do
  1920. v.C0=v.C0*CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  1921. wait()
  1922. end
  1923. end)
  1924. end
  1925. end
  1926. end
  1927. end)
  1928. end)
  1929. plrwin:drawButton(1/3, 'Invisible', function()
  1930. tk.dp(cval, function(p)
  1931. tk.rco(p.Character, 'BasePart', 'Transparency', 1)
  1932. tk.rco(p.Character, 'MeshPart', 'Transparency', 1)
  1933. end)
  1934. end)
  1935. plrwin:drawButton(1/3, 'Visible', function()
  1936. tk.dp(cval, function(p)
  1937. tk.rco(p.Character, 'BasePart', 'Transparency', 0)
  1938. tk.rco(p.Character, 'MeshPart', 'Transparency', 0)
  1939. end)
  1940. end)
  1941. plrwin:drawButton(1/3, 'Bighead', function()
  1942. tk.dp(cval, function(z)
  1943. if z.Character then
  1944. if z.Character:FindFirstChild('Head') then
  1945. z.Character.Head.Mesh.Scale=Vector3.new(5,5,5)
  1946. end
  1947. end
  1948. end)
  1949. end)
  1950. plrwin:drawButton(1/3, 'Goldify', function()
  1951. tk.dp(cval, function(z)
  1952. if z.Character then
  1953. tk.rco(z.Character, 'BasePart', 'Material', 'Marble')
  1954. tk.rco(z.Character, 'MeshPart', 'Material', 'Marble')
  1955. tk.rco(z.Character, 'BasePart', 'BrickColor', BrickColor.new('Bright yellow'))
  1956. tk.rco(z.Character, 'MeshPart', 'BrickColor', BrickColor.new('Bright yellow'))
  1957. end
  1958. end)
  1959. end)
  1960. plrwin:drawButton(1/3, 'Neon', function()
  1961. tk.dp(cval, function(z)
  1962. if z.Character then
  1963. tk.rco(z.Character, 'BasePart', 'Material', 'Neon')
  1964. tk.rco(z.Character, 'MeshPart', 'Material', 'Neon')
  1965. end
  1966. end)
  1967. end)
  1968. plrwin:drawButton(1/3, 'Shiny', function()
  1969. tk.dp(cval, function(z)
  1970. if z.Character then
  1971. tk.rco(z.Character, 'BasePart', 'Reflectance', 1)
  1972. tk.rcm(z.Character, 'MeshPart')
  1973. end
  1974. end)
  1975. end)
  1976. plrwin:drawButton(1/3, 'Shrek', function()
  1977. tk.dp(cval, function(z)
  1978. if z.Character then
  1979. local pchar = z.Character
  1980. for i,v in pairs(pchar:GetChildren()) do
  1981. if v:IsA("Hat") or v:IsA("Accessory") or v:IsA("CharacterMesh") or v:IsA("Shirt") or v:IsA("Pants") then
  1982. v:Destroy()
  1983. end
  1984. end
  1985. for i,v in pairs(pchar.Head:GetChildren()) do
  1986. if v:IsA("Decal") or v:IsA("SpecialMesh") then
  1987. v:Destroy()
  1988. end
  1989. end
  1990.  
  1991. local mesh = Instance.new("SpecialMesh", pchar.Head)
  1992. mesh.MeshType = "FileMesh"
  1993. pchar.Head.Mesh.MeshId = "http://www.roblox.com/asset/?id=19999257"
  1994. pchar.Head.Mesh.Offset = Vector3.new(-0.1, 0.1, 0)
  1995. pchar.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=156397869"
  1996.  
  1997. local Shirt = Instance.new("Shirt", z.Character)
  1998. local Pants = Instance.new("Pants", z.Character)
  1999.  
  2000. Shirt.ShirtTemplate = "rbxassetid://133078194"
  2001. Pants.PantsTemplate = "rbxassetid://133078204"
  2002. end
  2003. end)
  2004. end)
  2005. plrwin:drawButton(1/3, 'Duck', function()
  2006. tk.dp(cval, function(z)
  2007. if z.Character then
  2008. local pchar = z.Character
  2009. for i,v in pairs(pchar:GetChildren()) do
  2010. if v:IsA("Hat") or v:IsA("Accessory") then
  2011. v:Destroy()
  2012. end
  2013. end
  2014. local duck = Instance.new("SpecialMesh", z.Character.HumanoidRootPart)
  2015. duck.MeshType = "FileMesh"
  2016. duck.MeshId = "http://www.roblox.com/asset/?id=9419831"
  2017. duck.TextureId = "http://www.roblox.com/asset/?id=9419827"
  2018. duck.Scale = Vector3.new(5, 5, 5)
  2019. tk.rco(z.Character, 'Instance', 'Transparency', 1)
  2020. z.Character.HumanoidRootPart.Transparency = 0
  2021. end
  2022. end)
  2023. end)
  2024. plrwin:drawButton(1/3, 'Spheres', function()
  2025. tk.dp(cval, function(z)
  2026. if z.Character then
  2027. tk.rco(z.Character, 'BasePart', 'Shape', 'Cylinder')
  2028. end
  2029. end)
  2030. end)
  2031. plrwin:drawButton(1/3, 'Big', function()
  2032. tk.dp(cval, function(z)
  2033. if z.Character then
  2034. topkek.tools.util.scalePlayer(5, z)
  2035. end
  2036. end)
  2037. end)
  2038. plrwin:drawButton(1/3, 'Small', function()
  2039. tk.dp(cval, function(z)
  2040. if z.Character then
  2041. topkek.tools.util.scalePlayer(5, z)
  2042. end
  2043. end)
  2044. end)
  2045. plrwin:drawButton(1/3, 'Giraffe', function()
  2046. tk.dp(cval, function(z)
  2047. if z.Character then
  2048. local char=z.Character
  2049. local h=char.Head
  2050. local tor=char:FindFirstChild("Torso")
  2051. if not tor then return end
  2052. tor.Neck.C0=tor.Neck.C0*CFrame.new(0,0,5)
  2053. local fn=Instance.new("Part",char)
  2054. fn.Size=Vector3.new(1,5.5,1)
  2055. fn.Name="FakeNeck"
  2056. fn.Anchored=false
  2057. fn.CanCollide=false
  2058. if char:FindFirstChild("Body Colors") then
  2059. fn.BrickColor=char["Body Colors"].HeadColor
  2060. end
  2061. local cm=Instance.new("CylinderMesh",fn)
  2062. local we=Instance.new("Weld",h)
  2063. we.Part0=h
  2064. we.Part1=fn
  2065. we.C1=we.C1*CFrame.new(0,2.6,0)
  2066. end
  2067. end)
  2068. end)
  2069. plrwin:drawButton(1/3, 'Dab', function()
  2070. tk.dp(cval, function(z)
  2071. if z.Character and z.Character:FindFirstChild("Torso") then
  2072. local chr = z.Character
  2073. chr.Animate.Disabled = true
  2074. chr.Torso["Left Shoulder"].C1 = CFrame.new(0, 0.699999988, 0, 0.939692616, 0, -0.342020124, -0.330366075, -0.258819044, -0.907673359, -0.0885213241, 0.965925813, -0.243210346)
  2075. chr.Torso["Right Shoulder"].C1 = CFrame.new(-0.600000024, 0.5, -0.200000003, 0.664462984, 0.241844743, 0.707106769, -0.664462984, -0.241844788, 0.707106769, 0.342020154, -0.939692616, -3.09086197e-008)
  2076. chr.Torso["Neck"].C1 = CFrame.new(0, -0.600000024, 0, -0.866025388, 0.5, 0, -0.171010137, -0.29619807, 0.939692616, 0.469846278, 0.813797653, 0.342020124)
  2077. end
  2078. end)
  2079. end)
  2080. plrwin:drawButton(1/3, 'Force Follow', function()
  2081. tk.dp(cval, function(z)
  2082. game:GetService("RunService"):BindToRenderStep("_", 0, function()
  2083. z.Character.Humanoid:MoveTo(topkek.lplr.Character.Head.Position)
  2084. end)
  2085. end)
  2086. end)
  2087. plrwin:drawButton(1/3, 'Camlock', function()
  2088. tk.dp(cval, function(z)
  2089. z.CameraMode = "LockFirstPerson"
  2090. end)
  2091. end)
  2092. --// SERVER //--
  2093. local servwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Server').Container)
  2094. local detailWin = servwin:drawContainer(1, 100, nil, nil, 18)
  2095. detailWin:drawText(1, 'Job ID: ' .. (game.JobId and (game.JobId ~= "") or "???"))
  2096. detailWin:drawText(1, 'Game Name: ' .. game:service'MarketplaceService':GetProductInfo(game.PlaceId).Name)
  2097. detailWin:drawText(1, 'Creator Name: ' .. game:GetService('Players'):GetNameFromUserIdAsync(game.CreatorId))
  2098. pcall(function() detailWin:drawText(1, 'Genre: ' .. tostring(game.Genre)) end)
  2099. servwin:drawButton(1/2, 'Shutdown', function()
  2100. workspace.Gravity = 0/0
  2101. end)
  2102. servwin:drawButton(1/2, 'Clear', function()
  2103. for i,v in pairs(game:service'Workspace':GetChildren()) do
  2104. if (not v:IsA("Terrain"))and(v.Name~="Camera") then
  2105. v:Destroy()
  2106. end
  2107. end
  2108. end)
  2109. servwin:drawButton(1/2, 'Baseplate', function()
  2110. for X = -2500, 2500, 512 do
  2111. for Z = -2500, 2500, 512 do
  2112. local P = Instance.new("Part")
  2113. P.Anchored = true
  2114. P.Locked = true
  2115. P.Size = Vector3.new(512,3,512)
  2116. P.CFrame = CFrame.new(X,0,Z)
  2117. P.BrickColor = BrickColor.Green()
  2118. P.Parent = game:service'Workspace'
  2119. end
  2120. end
  2121. end)
  2122. servwin:drawButton(1/2, 'Reset', function()
  2123. for i,v in pairs(game:service'Workspace':GetChildren()) do
  2124. if (not v:IsA("Terrain"))and(v.Name~="Camera") then
  2125. v:Destroy()
  2126. end
  2127. end
  2128. for X = -2500, 2500, 512 do
  2129. for Z = -2500, 2500, 512 do
  2130. local P = Instance.new("Part")
  2131. P.Anchored = true
  2132. P.Locked = true
  2133. P.Size = Vector3.new(512,3,512)
  2134. P.CFrame = CFrame.new(X,0,Z)
  2135. P.BrickColor = BrickColor.Green()
  2136. P.Parent = game:service'Workspace'
  2137. end
  2138. end
  2139. for i, v in pairs(game:GetService('Players'):GetPlayers()) do
  2140. local a1 = Instance.new("Model", game:service'Workspace')
  2141. local a2 = Instance.new("Part", game:service'Workspace')
  2142. a2.CanCollide = true
  2143. a2.Anchored = true
  2144. a2.CFrame = CFrame.new(10000, 10000, 10000)
  2145. a2.Name = "Torso"
  2146. local a3 = Instance.new("Humanoid", a1)
  2147. a3.MaxHealth=100;a3.Health=100
  2148. v.Character = a1
  2149. a3.Health=0
  2150. end
  2151. end)
  2152. servwin:drawButton(1, 'Remove Sounds', function()
  2153. tk.rcm(game, 'Sound')
  2154. end)
  2155. servwin:addSpacing()
  2156. servwin:drawButton(1, 'Break All', function()
  2157. workspace:BreakJoints(workspace:GetChildren())
  2158. end)
  2159. local gravInp
  2160. servwin:drawButton(1/3, 'Gravity', function()
  2161. if not tonumber(gravInp.Text) then return end
  2162. workspace.Gravity = tonumber(gravInp.Text)
  2163. end)
  2164. gravInp = servwin:drawTextBox(2/3, '')
  2165. servwin:addSpacing()
  2166. servwin:drawButton(1, 'Reset Lighting', function()
  2167. local l = game:service'Lighting'
  2168. l.Ambient = Color3.new(0, 0, 0)
  2169. l.Brightness = 1
  2170. l.GlobalShadows = true
  2171. l.Outlines = true
  2172. l.FogEnd = 100000
  2173. l.FogStart = 0
  2174. l:SetMinutesAfterMidnight(12*60)
  2175. end)
  2176. local brightInp
  2177. servwin:drawButton(1/3, 'Brightness', function()
  2178. if not tonumber(brightInp.Text) then return end
  2179. game:GetService('Lighting').Brightness = tonumber(brightInp.Text)
  2180. end)
  2181. brightInp = servwin:drawTextBox(2/3, '100')
  2182. local fogInp
  2183. servwin:drawButton(1/3, 'Fog', function()
  2184. if not tonumber(fogInp.Text) then return end
  2185. game:GetService('Lighting').FogEnd = tonumber(fogInp.Text)
  2186. end)
  2187. fogInp = servwin:drawTextBox(2/3, '0')
  2188. local timeInp
  2189. servwin:drawButton(1/3, 'Hour', function()
  2190. if not tonumber(timeInp.Text) then return end
  2191. game:GetService('Lighting'):SetMinutesAfterMidnight(60*tonumber(timeInp.Text))
  2192. end)
  2193. timeInp = servwin:drawTextBox(2/3, '12')
  2194. servwin:addSpacing()
  2195. -- private server crap
  2196. local privateToggle
  2197. local privStatus = false
  2198. privateToggle = servwin:drawButton(1, 'Private Server OFF', function()
  2199. if privStatus == false then
  2200. privStatus = true
  2201. privateToggle.Text = 'Private Server ON'
  2202. topkek.banmgr.makePrivate()
  2203. else
  2204. privateToggle.Text = 'Private Server OFF'
  2205. topkek.banmgr.unprivate()
  2206. end
  2207. end)
  2208. servwin:addSpacing()
  2209. servwin:drawText(1, 'Whitelist')
  2210. local plrAddInp
  2211. servwin:drawButton(1/3, 'Add', function()
  2212. topkek.banmgr.doWhitelist(plrAddInp.Text)
  2213. ReorderWL()
  2214. end)
  2215. plrAddInp = servwin:drawTextBox(2/3, '')
  2216. wlCont = servwin:drawScrollingContainer(100)
  2217. function ReorderWL()
  2218. local wl = topkek.banmgr.whitelist
  2219. for i,v in pairs(wlCont:GetChildren()) do
  2220. v:Destroy()
  2221. end
  2222. wlCont:setDrawY(3)
  2223. for i,v in pairs(wl) do
  2224. wlCont:drawText(2/3, v)
  2225. wlCont:drawButton(1/3, 'Remove', function()
  2226. topkek.banmgr.unwhitelist(v)
  2227. ReorderWL()
  2228. end)
  2229. end
  2230. end
  2231. ReorderWL()
  2232. --// LOCALPLAYER //--
  2233. local lpwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('LocalPlayer').Container)
  2234. lpwin:drawButton(1, 'Reset Camera', function()
  2235. game.Workspace.CurrentCamera:remove()
  2236. wait(.1)
  2237. game.Workspace.CurrentCamera.CameraSubject = topkek.lplr.Character.Humanoid or
  2238. game.Workspace[topkek.lplr.Name].Humanoid
  2239. game.Workspace.CurrentCamera.CameraType = "Custom"
  2240. end)
  2241. lpwin:drawButton(1, 'Respawn', function()
  2242. local a1 = Instance.new("Model", game:service'Workspace')
  2243. local a2 = Instance.new("Part", game:service'Workspace')
  2244. a2.CanCollide = true
  2245. a2.Anchored = true
  2246. a2.CFrame = CFrame.new(10000, 10000, 10000)
  2247. a2.Name = "Torso"
  2248. local a3 = Instance.new("Humanoid", a1)
  2249. a3.MaxHealth=100;a3.Health=100
  2250. topkek.lplr.Character = a1
  2251. a3.Health=0
  2252. end)
  2253. lpwin:drawButton(1, 'Rejoin', function()
  2254. game:GetService('TeleportService'):Teleport(game.PlaceId)
  2255. end)
  2256. lpwin:addSpacing()
  2257. lpwin:drawButton(1/2, 'God', function()
  2258. if topkek.lplr.Character:FindFirstChild("Humanoid") then
  2259. topkek.lplr.Character.Humanoid.MaxHealth = math.huge
  2260. topkek.lplr.Character.Humanoid.Health = math.huge
  2261. end
  2262. end)
  2263. lpwin:drawButton(1/2, 'Semigod', function()
  2264. if topkek.lplr.Character:FindFirstChild("Humanoid") then
  2265. topkek.lplr.Character.Humanoid.MaxHealth = 9e9
  2266. topkek.lplr.Character.Humanoid.Health = 9e9
  2267. end
  2268. end)
  2269. Loopgod = false
  2270. lpwin:drawButton(1, 'Loopgod', function()
  2271. if Loopgod == false then
  2272. Loopgod = true
  2273. spawn(function()
  2274. repeat
  2275. topkek.lplr.Character.Humanoid.MaxHealth = math.huge
  2276. topkek.lplr.Character.Humanoid.Health = math.huge
  2277. wait()
  2278. until Loopgod == false
  2279. end)
  2280. else
  2281. Loopgod = false
  2282. end
  2283. end)
  2284. lpwin:addSpacing()
  2285. plrwin:addSpacing()
  2286. local Lev, Clip, Fly
  2287. lpwin:drawButton(1/2, 'Levitate', function()
  2288. if Lev == true then
  2289. Lev = false
  2290. return
  2291. end
  2292. Lev = true
  2293. repeat
  2294. topkek.lplr.Character.Humanoid:ChangeState(10)
  2295. wait(0)
  2296. until Lev == false
  2297. end)
  2298. lpwin:drawButton(1/2, 'Noclip', function()
  2299. if Clip == true then
  2300. Clip = false
  2301. return
  2302. end
  2303. Clip = true
  2304. game:GetService("RunService").Stepped:connect(function()
  2305. tk.gt(topkek.lplr).CanCollide = not Clip
  2306. topkek.lplr.Character.Head.CanCollide = not Clip
  2307. topkek.lplr.Character.HumanoidRootPart.CanCollide = not Clip
  2308. if topkek.lplr.Character.UpperTorso then
  2309. topkek.lplr.Character.LowerTorso.CanCollide = not Clip
  2310. end
  2311. end)
  2312. topkek.lplr.Character.HumanoidRootPart.Changed:connect(function()
  2313. tk.gt(topkek.lplr).CanCollide = not Clip
  2314. topkek.lplr.Character.Head.CanCollide = not Clip
  2315. topkek.lplr.Character.HumanoidRootPart.CanCollide = not Clip
  2316. if topkek.lplr.Character.UpperTorso then
  2317. topkek.lplr.Character.LowerTorso.CanCollide = not Clip
  2318. end
  2319. end)
  2320. end)
  2321. lpwin:drawButton(1/2, 'Fly', function()
  2322. if Fly == true then
  2323. Fly = false
  2324. return
  2325. end
  2326. Fly = true
  2327. local mouse=game.Players.LocalPlayer:GetMouse''
  2328. localplayer=game.Players.LocalPlayer
  2329. game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart")
  2330. local torso = game.Players.LocalPlayer.Character.HumanoidRootPart
  2331. local speed=0
  2332. local keys={a=false,d=false,w=false,s=false}
  2333. local e1
  2334. local e2
  2335. local function start()
  2336. local pos = Instance.new("BodyPosition",torso)
  2337. local gyro = Instance.new("BodyGyro",torso)
  2338. pos.Name="EPIXPOS"
  2339. pos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2340. pos.position = torso.Position
  2341. gyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  2342. gyro.cframe = torso.CFrame
  2343. repeat
  2344. wait()
  2345. localplayer.Character.Humanoid.PlatformStand=true
  2346. local new=gyro.cframe - gyro.cframe.p + pos.position
  2347. if not keys.w and not keys.s and not keys.a and not keys.d then
  2348. speed=1
  2349. end
  2350. if keys.w then
  2351. new = new + workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  2352. speed=speed+0.01
  2353. end
  2354. if keys.s then
  2355. new = new - workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  2356. speed=speed+0.01
  2357. end
  2358. if keys.d then
  2359. new = new * CFrame.new(speed,0,0)
  2360. speed=speed+0.01
  2361. end
  2362. if keys.a then
  2363. new = new * CFrame.new(-speed,0,0)
  2364. speed=speed+0.01
  2365. end
  2366. if speed>5 then
  2367. speed=5
  2368. end
  2369. pos.position=new.p
  2370. if keys.w then
  2371. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(-math.rad(speed*15),0,0)
  2372. elseif keys.s then
  2373. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(math.rad(speed*15),0,0)
  2374. else
  2375. gyro.cframe = workspace.CurrentCamera.CoordinateFrame
  2376. end
  2377. until not Fly
  2378. if gyro then gyro:Destroy() end
  2379. if pos then pos:Destroy() end
  2380. flying=false
  2381. localplayer.Character.Humanoid.PlatformStand=false
  2382. speed=0
  2383. end
  2384. e1=mouse.KeyDown:connect(function(key)
  2385. if not torso or not torso.Parent then flying=false e1:disconnect() e2:disconnect() return end
  2386. if key=="w" then
  2387. keys.w=true
  2388. elseif key=="s" then
  2389. keys.s=true
  2390. elseif key=="a" then
  2391. keys.a=true
  2392. elseif key=="d" then
  2393. keys.d=true
  2394. end
  2395. end)
  2396. e2=mouse.KeyUp:connect(function(key)
  2397. if key=="w" then
  2398. keys.w=false
  2399. elseif key=="s" then
  2400. keys.s=false
  2401. elseif key=="a" then
  2402. keys.a=false
  2403. elseif key=="d" then
  2404. keys.d=false
  2405. end
  2406. end)
  2407. start()
  2408. end)
  2409. lpwin:drawButton(1/2, 'Highjump', function()
  2410. local thrust = Instance.new("BodyVelocity")
  2411. game:GetService('UserInputService').InputBegan:connect(function(i, b)
  2412. if i.KeyCode == Enum.KeyCode.Space then
  2413. print("Got jump")
  2414. coroutine.resume(coroutine.create(function()
  2415. thrust.Parent = game.Players.LocalPlayer.Character.PrimaryPart
  2416. thrust.velocity = Vector3.new(0,50,0)
  2417. thrust.maxForce = Vector3.new(0,4e+050,0)
  2418. wait(0.2)
  2419. thrust.Parent = nil
  2420. end))
  2421. end
  2422. end)
  2423. end)
  2424. lpwin:addSpacing()
  2425. local apprInp
  2426. lpwin:drawButton(1/3, 'Appearance', function()
  2427. local id = 0
  2428. if tonumber(apprInp.Text) then
  2429. id = tonumber(apprInp.Text)
  2430. else
  2431. id = game:GetService('Players'):GetUserIdFromNameAsync(apprInp.Text)
  2432. end
  2433. if topkek.lplr.Character:FindFirstChild("Humanoid") then
  2434. topkek.lplr.Character.Humanoid.Health = 0
  2435. end
  2436. topkek.lplr.CharacterAppearance = 'https://assetgame.roblox.com/Asset/CharacterFetch.ashx?userId=' .. tostring(id)
  2437. end)
  2438. apprInp = lpwin:drawTextBox(2/3, 'ROBLOX')
  2439. local teamInp
  2440. lpwin:drawButton(1/3, 'Team', function()
  2441. topkek.lplr.TeamColor = BrickColor.new(teamInp.Text)
  2442. end)
  2443. teamInp = lpwin:drawTextBox(2/3, 'Bright red')
  2444. lpwin:drawButton(1/2, 'Naked', function()
  2445. topkek.lplr:ClearCharacterAppearance()
  2446. end)
  2447. lpwin:drawButton(1/2, 'Neutral', function()
  2448. topkek.lplr.Neutral = true
  2449. end)
  2450. lpwin:addSpacing()
  2451. lpwin:drawButton(1/2, 'Orb', function()
  2452. game.Players.LocalPlayer.Character = nil
  2453. --lp:Destroy()
  2454. local cam = game.Workspace.CurrentCamera
  2455. local m = Instance.new("Model", game.Workspace)
  2456. m.Name = game.Players.LocalPlayer.Name
  2457. local hum = Instance.new("Humanoid", m)
  2458. hum.Health = 0
  2459. hum.MaxHealth = 0
  2460. local orb = Instance.new("Part", m)
  2461. orb.Size = Vector3.new(1, 1, 1)
  2462. orb.Shape = "Ball"
  2463. orb.Name = "Head"
  2464. orb.Anchored = true
  2465. orb.CanCollide = true
  2466. orb.BottomSurface = Enum.SurfaceType.Smooth
  2467. orb.TopSurface = Enum.SurfaceType.Smooth
  2468. orb.Transparency = 0
  2469. spawn(function()
  2470. while true do
  2471. wait(0.1)
  2472. if orb then
  2473. orb.BrickColor = BrickColor.Random()
  2474. else break end
  2475. end
  2476. end)
  2477. cam.CameraSubject = orb
  2478. cam.CameraType = Enum.CameraType.Fixed
  2479. game:GetService("RunService").RenderStepped:connect(function()
  2480. orb.CFrame = cam.CoordinateFrame * CFrame.new(0, -2, -6)
  2481. end)
  2482. game.Players.LocalPlayer.Chatted:connect(function(a)
  2483. game:GetService("Chat"):Chat(orb, a)
  2484. end)
  2485. end)
  2486. lpwin:drawButton(1/2, 'Freecam', function()
  2487. local cam = game.Workspace.CurrentCamera
  2488. cam.CameraType = "Fixed"
  2489. cam.CameraSubject = nil
  2490. topkek.lplr.Character = nil
  2491. end)
  2492. lpwin:drawButton(1/2, 'NoGrav', function()
  2493. if topkek.lplr.Character then
  2494. for x,m in pairs(topkek.lplr.Character:GetChildren()) do
  2495. if m:IsA("BasePart") then
  2496. local bf = Instance.new("BodyForce", m)
  2497. bf.force = Vector3.new(0, 192.25, 0) * m:GetMass()
  2498. end
  2499. if m:IsA("Hat") or m:IsA("Accessory") then
  2500. if m:findFirstChild("Handle") then
  2501. local bf = Instance.new("BodyForce", m.Handle)
  2502. bf.force = Vector3.new(0, 192.25, 0) * m.Handle:GetMass()
  2503. end
  2504. end
  2505. end
  2506. end
  2507. end)
  2508. lpwin:drawButton(1/2, 'Trowel', function()
  2509. topkek.tools.util.trowel()
  2510. end)
  2511. lpwin:addSpacing()
  2512. lpwin:drawButton(1/2, 'Fedora', function()
  2513. local hats={
  2514. 98346834,
  2515. 215751161,
  2516. 119916949,
  2517. 72082328,
  2518. 147180077,
  2519. 100929604,
  2520. 63043890,
  2521. 1285307,
  2522. 1029025,
  2523. 334663683,
  2524. 259423244
  2525. }
  2526. game:GetObjects("rbxassetid://" .. tostring(hats[math.random(1,#hats)]))[1].Parent = topkek.lplr.Character
  2527. end)
  2528. lpwin:drawButton(1/2, 'Rainbow Name', function()
  2529. topkek.lplr.Neutral = false
  2530. repeat
  2531. wait()
  2532. topkek.lplr.TeamColor = BrickColor.Random()
  2533. until not topkek.lplr.Character.Humanoid
  2534. end)
  2535. local tagInp
  2536. lpwin:drawButton(1/3, 'Tag', function()
  2537. local len = 10
  2538. local bb = Instance.new("BillboardGui")
  2539. bb.Parent = topkek.lplr.Character.Head
  2540. bb.Adornee = topkek.lplr.Character.Head
  2541. bb.AlwaysOnTop = true
  2542. bb.Enabled = true
  2543. bb.Size = UDim2.new(len, 0, 1.5, 0)
  2544. bb.Name = "tag"
  2545. bb.StudsOffset = Vector3.new(0, 3, 0)
  2546. --local fr = Instance.new("Frame")
  2547. --fr.Parent = bb
  2548. --fr.Size = UDim2.new(1, 0, 1, 0)
  2549. --fr.Style = Enum.FrameStyle.RobloxRound
  2550. local tl = Instance.new("TextLabel")
  2551. tl.Parent = bb
  2552. tl.Font = Enum.Font.Code
  2553. tl.BackgroundTransparency = 1
  2554. tl.TextScaled = true
  2555. tl.TextColor3 = Color3.new(15/255, 15/255, 15/255)
  2556. tl.Size = UDim2.new(1, 0, 1, 0)
  2557. tl.Text = tagInp.Text
  2558. tl.Name = "trutag"
  2559. tl.Visible = true
  2560. tl.ZIndex = 2
  2561. end)
  2562. tagInp = lpwin:drawTextBox(2/3, '')
  2563. --// SCRIPTS //--
  2564. local scriptwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Scripts').Container)
  2565. local search = scriptwin:drawTextBox(1,'')
  2566. local origy = scriptwin:getDrawY()
  2567. scriptwin:addSpacing()
  2568. scriptwin:addSpacing()
  2569. local scripts = game:GetObjects("rbxassetid://376553985")[1]
  2570. local container = {}
  2571. function MakeList(condition)
  2572. for i,v in pairs(scriptwin:GetChildren()) do
  2573. if v.Name == "Script" then
  2574. v:Destroy()
  2575. end
  2576. end
  2577. scriptwin:setDrawY(origy)
  2578. for i, v in pairs(scripts:GetChildren()) do
  2579. if string.find(v.Name:lower(), condition:lower()) or (condition == "") or (condition == " ") then
  2580. local scr = scriptwin:drawButton(1, v.Name, function()
  2581. spawn(function() loadstring(v.Source)() end)
  2582. end, 25)
  2583. scr.Name = 'Script'
  2584. end
  2585. end
  2586. end
  2587. game:GetService("UserInputService").InputChanged:connect(function(inp)
  2588. if inp.UserInputType == Enum.UserInputType.TextInput then
  2589. if search:IsFocused() then
  2590. MakeList(search.Text)
  2591. end
  2592. end
  2593. end)
  2594. MakeList('')
  2595. --// DESTRUCTION // --
  2596. local destwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Destruction').Container)
  2597. local decals, seldec = destwin:drawScrollingContainer(100)
  2598. seldec = destwin:drawText(1, 'Selected Decal: None')
  2599. cursel = nil
  2600. local decs = {
  2601. {'Rain', '574772793'},
  2602. {'Robbie', '574773630'},
  2603. {'Pepe', '244905904'},
  2604. {'Troll Face', '48308661'},
  2605. {'Jeff', '109129888'},
  2606. {'Shrek', '170539018'},
  2607. {'Doge', '133720697'},
  2608. {'Dat Boi', '409578848'},
  2609. }
  2610. for _, v in pairs(decs) do
  2611. local b = decals:drawButton(1, v[1], function()seldec.Text="Selected Decal: " ..v[2] cursel=v[2] end,20)
  2612. topkek.tools.gui:addLeftIcon(b,'rbxassetid://'..v[2],20)
  2613. end
  2614. destwin:drawButton(1, 'Spam Decal', function()
  2615. if cursel ~= nil then
  2616. topkek.tools.util.recurseDecal(tonumber(cursel))
  2617. end
  2618. end)
  2619. destwin:drawButton(1, 'Spam Particles', function()
  2620. if cursel ~= nil then
  2621. topkek.tools.util.recurseParticles(tonumber(cursel))
  2622. end
  2623. end)
  2624. destwin:drawButton(1, 'Spam Both', function()
  2625. if cursel ~= nil then
  2626. topkek.tools.util.recurseUltimate(tonumber(cursel))
  2627. end
  2628. end)
  2629. destwin:drawButton(1, 'Rollback', function()
  2630. tk.rcm(workspace, 'Decal')
  2631. tk.rcm(workspace, 'ParticleEmitter')
  2632. end)
  2633. destwin:addSpacing()
  2634. destwin:drawButton(1, '666', function()
  2635. for i,v in next,workspace:children''do
  2636. if(v:IsA'BasePart')then
  2637. me=v;
  2638. bbg=Instance.new('BillboardGui',me);
  2639. bbg.Name='stuf';
  2640. bbg.Adornee=me;
  2641. bbg.Size=UDim2.new(2.5,0,2.5,0)
  2642. --bbg.StudsOffset=Vector3.new(0,2,0)
  2643. tlb=Instance.new'TextLabel';
  2644. tlb.Text='666 666 666 666 666 666';
  2645. tlb.Font='SourceSansBold';
  2646. tlb.FontSize='Size48';
  2647. tlb.TextColor3=Color3.new(1,0,0);
  2648. tlb.Size=UDim2.new(1.25,0,1.25,0);
  2649. tlb.Position=UDim2.new(-0.125,-22,-1.1,0);
  2650. tlb.BackgroundTransparency=1;
  2651. tlb.Parent=bbg;
  2652. end;end;
  2653. --coroutine.wrap(function()while wait''do
  2654. s=Instance.new'Sound';
  2655. s.Parent=workspace;
  2656. s.SoundId='rbxassetid://152840862';
  2657. s.Pitch=1;
  2658. s.Volume=1;
  2659. s.Looped=true;
  2660. s:play();
  2661. --end;end)();
  2662. function xds(dd)
  2663. for i,v in next,dd:children''do
  2664. if(v:IsA'BasePart')then
  2665. v.BrickColor=BrickColor.new'Really black';
  2666. v.TopSurface='Smooth';
  2667. v.BottomSurface='Smooth';
  2668. s=Instance.new('SelectionBox',v);
  2669. s.Adornee=v;
  2670. s.Color=BrickColor.new'Really red';
  2671. a=Instance.new('PointLight',v);
  2672. a.Color=Color3.new(1,0,0);
  2673. a.Range=15;
  2674. a.Brightness=5;
  2675. f=Instance.new('Fire',v);
  2676. f.Size=19;
  2677. f.Heat=22;
  2678. end;
  2679. game.Lighting.TimeOfDay=0;
  2680. game.Lighting.Brightness=0;
  2681. game.Lighting.ShadowColor=Color3.new(0,0,0);
  2682. game.Lighting.Ambient=Color3.new(1,0,0);
  2683. game.Lighting.FogEnd=200;
  2684. game.Lighting.FogColor=Color3.new(0,0,0);
  2685. local dec = 'http://www.roblox.com/asset/?id=19399245';
  2686. local fac = {'Front', 'Back', 'Left', 'Right', 'Top', 'Bottom'}
  2687. --coroutine.wrap(function()
  2688. --for _,__ in pairs(fac) do
  2689. --local ddec = Instance.new("Decal", v)
  2690. --ddec.Face = __
  2691. --ddec.Texture = dec
  2692. --end end)()
  2693. if #(v:GetChildren())>0 then
  2694. xds(v)
  2695. end
  2696. end
  2697. end
  2698. xds(game.Workspace)
  2699. end)
  2700. destwin:drawButton(1, 'Troll', function()
  2701. topkek.tools.util.recurseUltimate('48308661')
  2702. tk.play(154664102)
  2703. end)
  2704. destwin:addSpacing()
  2705. destwin:drawButton(1/2,'Colorize',function() -- when u skid off variable XDDDDDpranked
  2706. local materiallist =
  2707. {Enum.Material.Plastic,Enum.Material.Wood,Enum.Material.Slate,Enum.Material.Concrete,Enum.Material.CorrodedMetal,
  2708. Enum.Material.DiamondPlate,Enum.Material.Foil,Enum.Material.Grass,
  2709. Enum.Material.Ice,Enum.Material.Marble,Enum.Material.Granite,Enum.Material.Brick,
  2710. Enum.Material.Pebble,Enum.Material.Sand,Enum.Material.Sand,
  2711. Enum.Material.Fabric,Enum.Material.SmoothPlastic,Enum.Material.Metal,Enum.Material.WoodPlanks,Enum.Material.Neon,Enum.Material.Cobblestone}
  2712. local function r(where)
  2713. for _,v in pairs (where:GetChildren()) do
  2714. if v:IsA("BasePart") then
  2715. spawn(function() while wait(0.1) do v.Material = materiallist[math.random(#materiallist)] wait() end end) end r(v) end end r(workspace)
  2716. end)
  2717. destwin:drawButton(1/2,'Materialize',function()
  2718. local function r(where)
  2719. for _,v in pairs (where:GetChildren()) do
  2720. if v:IsA("BasePart") then
  2721. spawn(function() while wait(0.1) do v.Transparency = math.random(0,1) wait() end end) end r(v) end end r(workspace)
  2722. end)
  2723. destwin:drawButton(1/2,'Meshify',function()
  2724. local enums={
  2725. Enum.MeshType.Head;
  2726. Enum.MeshType.Torso;
  2727. Enum.MeshType.Wedge;
  2728. Enum.MeshType.Brick;
  2729. Enum.MeshType.Sphere;
  2730. Enum.MeshType.Cylinder;
  2731. }
  2732. tk.rcf('BasePart',function(o)
  2733. local mesh = Instance.new('SpecialMesh', o)
  2734. mesh.MeshType = enums[math.random(1,#enums)]
  2735. end)
  2736. end)
  2737. destwin:drawButton(1/2,'Loop-Meshify',function()
  2738. coroutine.wrap(function()
  2739. while true do
  2740. local enums={
  2741. Enum.MeshType.Head;
  2742. Enum.MeshType.Torso;
  2743. Enum.MeshType.Wedge;
  2744. Enum.MeshType.Brick;
  2745. Enum.MeshType.Sphere;
  2746. Enum.MeshType.Cylinder;
  2747. }
  2748. tk.rcf('BasePart',function(o)
  2749. if o:FindFirstChild("Mesh") then o.Mesh:Destroy() end
  2750. local mesh = Instance.new('SpecialMesh', o)
  2751. mesh.MeshType = enums[math.random(1,#enums)]
  2752. end)
  2753. wait(0.5)
  2754. end
  2755. end)()
  2756. end)
  2757. destwin:addSpacing()
  2758. destwin:drawButton(1, 'Rotations', function()
  2759. tk.rcf('BasePart', function(o)
  2760. o.Rotation = Vector3.new(math.random(0,180),math.random(0,180),math.random(0,180))
  2761. end)
  2762. end)
  2763. destwin:drawButton(1, 'Collisions', function()
  2764. tk.rcf('BasePart', function(o)
  2765. o.CanCollide = false
  2766. end)
  2767. end)
  2768. destwin:drawButton(1, 'Velocity', function()
  2769. tk.rcf('BasePart', function(o)
  2770. o.Velocity = Vector3.new(math.random(0,180),math.random(0,180),math.random(0,180))
  2771. end)
  2772. end)
  2773. destwin:drawButton(1, 'Invisiblity', function()
  2774. tk.rcf('BasePart', function(o)
  2775. o.Transparency = 1
  2776. end)
  2777. end)
  2778. destwin:drawButton(1, 'BreakJoints', function()
  2779. tk.rcf('Model', function(o)
  2780. o:BreakJoints()
  2781. end)
  2782. end)
  2783. destwin:drawButton(1, 'Forces', function()
  2784. tk.rcf('BasePart', function(o)
  2785. local bf = Instance.new("BodyForce", o)
  2786. bf.Force = Vector3.new(math.random(0,180)*5,math.random(0,180)*5,math.random(0,180)*5)
  2787. end)
  2788. end)
  2789. destwin:drawButton(1, 'Brightness', function()
  2790. tk.rcf('BasePart', function(o)
  2791. local light = Instance.new("SpotLight", o)
  2792. light.Brightness = 9e9
  2793. light.Range = 60
  2794. end)
  2795. end)
  2796. --// CATALOG //--
  2797. local catwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Catalog').Container)
  2798. local page, currentkeyword = 1, ""
  2799. local searchbar, search, makeCatalog, res = 0, 0, 0, {}
  2800. local searchbar = catwin:drawTextBox(2/3,'')
  2801. local search = catwin:drawButton(1/3, 'Search', function()
  2802. page = 1
  2803. currentkeyword = searchbar.Text
  2804. makeCatalog(currentkeyword, page)
  2805. end)
  2806. local previous = catwin:drawButton(1/2, 'Previous Page', function()
  2807. if page > 1 then
  2808. page = page - 1
  2809. makeCatalog(currentkeyword, page)
  2810. end
  2811. end)
  2812. local previous = catwin:drawButton(1/2, 'Next Page', function()
  2813. if page >= 1 then
  2814. page = page + 1
  2815. makeCatalog(currentkeyword, page)
  2816. end
  2817. end)
  2818. local catalog_start = catwin:getDrawY()
  2819. function split(str,divider)
  2820. local found = ""
  2821. local results = {}
  2822. for i=1,string.len(str) do
  2823. if (string.lower(string.sub(str,i,i)) == string.lower(divider)) then
  2824. table.insert(results, found)
  2825. found = ""
  2826. else
  2827. found = found..string.sub(str,i,i)
  2828. end
  2829. end
  2830. table.insert(results, found)
  2831. return results
  2832. end
  2833. function GetName(nm)
  2834. local spl = split(nm," ")
  2835. local a,b,c,d,e=spl[1] or "",spl[2] or "",spl[3] or "", spl[4] or "", spl[5] or ""
  2836. return (a.." "..b.." "..c.." "..d.." "..e)
  2837. end
  2838. function makeCatalog(keyword, page)
  2839. local endpoint = "http://search.roblox.com/catalog/json?Category=6&Keyword="..keyword.."&IncludeNotForSale=false&ResultsPerPage=10&PageNumber="..tostring(page)
  2840. local results = game:HttpGet(endpoint, true)
  2841. local parse = game:GetService('HttpService'):JSONDecode(results)
  2842. for i, v in pairs(res) do
  2843. v:Destroy()
  2844. end
  2845. catwin:setDrawY(catalog_start)
  2846. catwin:addSpacing()
  2847. for i, v in pairs(parse) do
  2848. local img = catwin:drawImage(1/2, 'https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId='..tostring(v['AssetId']), 50)
  2849. local below = topkek.tools.util.Object("TextButton", {
  2850. Parent = img;
  2851. BackgroundColor3 = Color3.new(57/255, 57/255, 163/255);
  2852. BorderSizePixel = 0;
  2853. Position = UDim2.new(0, -45, 1, 5);
  2854. Size = UDim2.new(0,img.AbsoluteSize.X, 0, 20);
  2855. Font = 'SourceSans';
  2856. FontSize = 'Size14';
  2857. Text = GetName(v['Name']);
  2858. TextSize = 14;
  2859. TextColor3 = color3(199, 199, 199);
  2860. TextStrokeTransparency = 0.5;
  2861. ClipsDescendants = true;
  2862. })
  2863. below.MouseButton1Down:connect(function()
  2864. local Model = Instance.new("Model", workspace)
  2865. game:GetObjects('rbxassetid://'..tostring(v['AssetId']))[1].Parent = Model
  2866. Model:MakeJoints()
  2867. Model:MoveTo(topkek.lplr.Character.Head.Position)
  2868. end)
  2869. img.Size=UDim2.new(0,50,0,50)
  2870. img.Position=img.Position+UDim2.new(0,45,0,0)
  2871. if (i%2)==0 then
  2872. catwin:setDrawY(catwin:getDrawY() + 25)
  2873. end
  2874. if (i==10) then
  2875. catwin.main.CanvasSize = catwin.main.CanvasSize + UDim2.new(0,0,0,25)
  2876. end
  2877. table.insert(res,img)
  2878. end
  2879. end
  2880. makeCatalog("", 1)
  2881. --// CMDS //--
  2882. cmdwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Commands').Container)
  2883. count = 0
  2884. for _, _ in pairs(cmd.commands.store) do count = count + 1 end
  2885. cmdwin:drawText(1, tostring(count) .. " Commands")
  2886. cmdwin:drawText(1, 'Chat Prefix: /')
  2887. local cmdlist = cmdwin:drawScrollingContainer(260)
  2888. for i, v in pairs(cmd.commands.fmtstore) do
  2889. local xfmt = {}
  2890. local str = " ;" .. i .. " "
  2891. for form in v:gmatch("[^%%]+") do
  2892. if form ~= 'cmd' then
  2893. if form == 'inf' then form = 'str' end
  2894. str = str .. "{" .. form .. "} "
  2895. end
  2896. end
  2897. cmdlist:drawText(1, str)
  2898. end
  2899. --// MUSIC //--
  2900. musicwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Music').Container)
  2901. Sounds = {
  2902. {"caramell", 2303479};
  2903. {"epic", 27697743};
  2904. {"rick", 2027611};
  2905. {"halo", 1034065};
  2906. {"pokemon", 1372261};
  2907. {"cursed", 1372257};
  2908. {"extreme", 11420933};
  2909. {"awaken", 27697277};
  2910. {"alone", 27697392};
  2911. {"mario", 1280470};
  2912. {"choir", 1372258};
  2913. {"chrono" ,1280463};
  2914. {"dotr", 11420922};
  2915. {"entertain", 27697267};
  2916. {"fantasy", 1280473};
  2917. {"final", 787};
  2918. {"organ", 11231513};
  2919. {"tunnel", 9650822}
  2920. }
  2921.  
  2922. local cursel
  2923. local xcursel = 0
  2924. scr = musicwin:drawScrollingContainer(230)
  2925. for i, v in pairs(Sounds) do
  2926. scr:drawButton(1, v[1] .. " - " .. tonumber(v[2]), function()
  2927. cursel.Text = "Currently Selected - " .. v[1]
  2928. xcursel = v[2]
  2929. end)
  2930. end
  2931.  
  2932. cursel = musicwin:drawText(1, "Currently Selected - None")
  2933. local setInp
  2934. musicwin:drawButton(1/3, "Set", function()
  2935. if tonumber(setInp.Text) then
  2936. cursel.Text = "Currently Selected - " .. setInp.Text
  2937. xcursel = tonumber(setInp.Text)
  2938. end
  2939. end)
  2940. setInp = musicwin:drawTextBox(2/3, '')
  2941. musicwin:drawButton(1, "Play", function()
  2942. tk.rcm(game, 'Sound')
  2943. tk.play(xcursel)
  2944. end)
  2945. musicwin:drawButton(1, "Stop", function()
  2946. tk.rcm(game, 'Sound')
  2947. end)
  2948. --// FACES //--
  2949. facwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Faces').Container)
  2950. local faces = {
  2951. {name='Rofl',id=47595647},
  2952. {name='Sparta',id=74142203},
  2953. {name='UJelly',id=48989071},
  2954. {name='Troll',id=45120559},
  2955. {name='Horse',id=62079221},
  2956. {name='Angry',id=48258623},
  2957. {name='Okey',id=62830600},
  2958. {name='Yeaw',id=53646377},
  2959. {name='Here',id=62677045},
  2960. {name='Har',id=48260066},
  2961. {name='Baby Sun',id=47596170},
  2962. {name='LOL',id=48293007},
  2963. {name='Sad',id=53645378},
  2964. {name='Joseph Stalin',id=48290678},
  2965. {name='Doge',id=130742396},
  2966. {name='Forever Alone',id=156886272},
  2967. {name='RickRoll',id=5104631},
  2968. {name='Jim Carrey',id=74885351},
  2969. {name='Meh IRL',id=237553381}
  2970. }
  2971. local cursel, xcursel = nil, 0
  2972. faclist = facwin:drawScrollingContainer(260)
  2973. for i,v in pairs(faces) do
  2974. local btn = faclist:drawButton(1, v['name'], function()
  2975. xcursel = v['id']
  2976. cursel.Text = 'Currently Selected: ' .. v['name']
  2977. end)
  2978. topkek.tools.gui:addLeftIcon(btn,'rbxassetid://'..tostring(v['id']),20)
  2979. end
  2980. cursel = facwin:drawText(1, 'Currently Selected: None')
  2981. facwin:drawButton(1, 'Wear', function()
  2982. if not (xcursel == 0) then
  2983. if topkek.lplr.Character then
  2984. tk.rcm(topkek.lplr.Character, 'Accessory')
  2985. tk.rcm(topkek.lplr.Character, 'Hat')
  2986. topkek.tools.util.applyFace(xcursel)
  2987. end
  2988. end
  2989. end)
  2990. --// SETTINGS // --
  2991. setwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Settings').Container)
  2992. setwin:drawText(1, 'Patch: ' .. topkek.patch)
  2993. setwin:drawText(1, 'Devnote: kys')
  2994. setwin:drawText(1, [[
  2995. I am captured by a windstorm
  2996. Caught on you
  2997. Nothing here can stop me
  2998. When it's windy in my heart
  2999. Captured by a windstorm
  3000. Night and day
  3001. Here is only you and me
  3002. And the light the sky has left behind
  3003.  
  3004. It's time to leave
  3005. Because times that have pass will not return
  3006. Traveling on open seas
  3007. Where everything's like new
  3008. In the future that you hold
  3009.  
  3010. Without regrets I leave my safe harbor
  3011. Free but still tied to a set of open arms
  3012. ]], 260)
  3013. --// BANLIST //--
  3014. banwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Banlist').Container)
  3015. local plrBanInp
  3016. banwin:drawButton(1/3, 'Add', function()
  3017. topkek.settings.get()
  3018. table.insert(topkek.settingsTable['Bans'], plrBanInp.Text)
  3019. topkek.settings.write()
  3020. UpdateBanlist()
  3021. end)
  3022. plrBanInp = banwin:drawTextBox(2/3, '')
  3023. banCont = banwin:drawScrollingContainer(288)
  3024. function UpdateBanlist(x)
  3025. topkek.settings.get()
  3026. local wl = x or topkek.settingsTable['Bans']
  3027. for i,v in pairs(banCont:GetChildren()) do
  3028. v:Destroy()
  3029. end
  3030. banCont:setDrawY(3)
  3031. for i,v in pairs(wl) do
  3032. banCont:drawText(2/3, v)
  3033. banCont:drawButton(1/3, 'Remove', function()
  3034. for x, m in pairs(wl) do
  3035. if m == v then
  3036. table.remove(topkek.settingsTable['Bans'], x)
  3037. topkek.settings.write()
  3038. UpdateBanlist()
  3039. topkek.banmgr.bans = topkek.settingsTable['Bans']
  3040. end
  3041. end
  3042. end)
  3043. end
  3044. end
  3045. UpdateBanlist()
  3046. --// HATS //--
  3047. hatwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Hats').Container)
  3048. local hats={
  3049. {name='Dominus Empyreus',id=21070012},
  3050. {name='Dominus Vespertilio',id=96103379},
  3051. {name='Dominus Infernus',id=31101391},
  3052. {name='Dominus Rex',id=250395631},
  3053. {name='Dominus Frigidus',id=48545806},
  3054. {name='Dominus Astra',id=162067148},
  3055. {name='Dominus Aureus',id=138932314},
  3056. {name='DIY Dominus Empyreus',id=151789690},
  3057. {name='Dominus Messor',id=64444871},
  3058. {name='Demon Skeleton Wings',id=133554007},
  3059. {name='Gilded Wings of Glory',id=250405532},
  3060. {name='Majestic Ice Wings',id=188702967},
  3061. {name='Black Wings',id=215719598},
  3062. {name='Clockworks Shades',id=11748356},
  3063. {name='Faerie Wings',id=19399896},
  3064. {name='Orinthian Wings',id=223751505},
  3065. {name='Clockworks Headphones',id=1235488},
  3066. {name='Perfectly Legitimate Business Hat',id=19027209},
  3067. {name='Sparkling Angel Wings',id=192557913},
  3068. {name='Commander Crows Wings',id=133553855},
  3069. {name='Sunfire Wings',id=158068470},
  3070. {name='Royal Faerie Wings',id=119916756},
  3071. {name='Wings of Freedom',id=164174048},
  3072. {name='Firebrand Wings',id=128160626},
  3073. {name='Frozen Wings',id=136758613},
  3074. {name='Webbed Wings',id=120507280},
  3075. {name='Gargoyle Wings',id=120507201},
  3076. {name='Bat Wings',id=19399858},
  3077. {name='Wings of Fire',id=136758532},
  3078. {name='Headrow',id=1082935},
  3079. {name='Rubber Duckie',id=9254254},
  3080. {name='Valkyrie Helm',id=1365767},
  3081. {name='Hockey Mask',id=5161514}}
  3082. local searchi = hatwin:drawButton(1, '', function()end)
  3083. dropx = GUI.DropDown.New(UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), searchi, {'All'})
  3084. function fixPlayerDropi()
  3085. local t = {'All'}
  3086. for i, v in pairs(game.Players:GetPlayers()) do
  3087. table.insert(t, v.Name)
  3088. end
  3089. dropx.SetTable(t)
  3090. end
  3091. game.Players.PlayerAdded:connect(function()
  3092. fixPlayerDropi()
  3093. end)
  3094. game.Players.PlayerRemoving:connect(function()
  3095. fixPlayerDropi()
  3096. end)
  3097. local eval = 'All'
  3098. dropx.Changed(function(p) eval = p end)
  3099. fixPlayerDrop()
  3100.  
  3101. local hatInp
  3102. hatlist = hatwin:drawScrollingContainer(260)
  3103. for i,v in pairs(hats) do
  3104. hatlist:drawButton(1, v['name'], function()
  3105. hatInp.Text = tostring(v['id'])
  3106. end)
  3107. end
  3108. hatwin:drawButton(1/3, 'Wear', function()
  3109. local hat = game:GetObjects("rbxassetid://"..tonumber(hatInp.Text))[1]
  3110. tk.dp(eval, function(x)
  3111. if x.Character then
  3112. hat:Clone().Parent = x.Character
  3113. end
  3114. end)
  3115. end)
  3116.  
  3117.  
  3118. hatInp = hatwin:drawTextBox(2/3, '')
  3119. topkek.tools.animator.initialAnimation()
  3120. topkek.banmgr.init()
Add Comment
Please, Sign In to add comment