KingOfCrack

Topkek 4.0 Catalog Work

Oct 27th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 92.34 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://678309209")[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(107, 36, 36);
  101. Secondary = color3(113, 39, 39);
  102. Border = color3(127, 44, 44);
  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(163/255, 57/255, 57/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(153, 52, 52);
  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(148/255, 51/255, 51/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(117, 42, 42);
  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(117, 42, 42);
  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. spawn(function() topkek.tools.animator.animateTo(topkek.navigation.currentContainer, cont) topkek.navigation.currentContainer = cont end)
  1323. end
  1324. topkek.navigation.buildNavigator = function()
  1325. local nav = topkek.navigator
  1326. local hook = topkek.tools.gui:hookContainer(nav.Scroll, false)
  1327. local btns = {}
  1328. for l, x in pairs(topkek.data.windows) do
  1329. local container = topkek.tools.util.getContainer(x)
  1330. local btn = hook:drawButton(1, x, function() topkek.navigation.gotoContainer(container) end, 25)
  1331. local ZPos = btn.Position
  1332. btn.Position = btn.Position - UDim2.new(0, 0, 0, 5)
  1333. btn:TweenPosition(ZPos, 'Out', 'Bounce', 0.2)
  1334. btn.LayoutOrder = l
  1335. btn.ZIndex = 4
  1336. local OPos = btn.Position
  1337. btn.MouseEnter:connect(function()
  1338. if AllowHovers == false then
  1339. return
  1340. end
  1341. for i, v in pairs(btns) do
  1342. if v[1] ~= btn then
  1343. v[1]:TweenPosition(v[2], 'Out', 'Quad', 0.1)
  1344. end
  1345. end
  1346. btn:TweenPosition(OPos + UDim2.new(0, 3, 0, 0), 'Out', 'Quad', 0.1)
  1347. end)
  1348. btn.MouseLeave:connect(function()
  1349. btn:TweenPosition(OPos, 'Out', 'Quad', 0.1)
  1350. end)
  1351. table.insert(btns, {btn, OPos})
  1352. wait()
  1353. end
  1354. end
  1355. topkek.navigation.buildTopbar = function()
  1356. local top = topkek.topbar
  1357. local FELabel = top.Controllers.IsFE
  1358. top.PlayerName.Text = topkek.lplr.Name
  1359. if game:GetService('Workspace').FilteringEnabled == true then
  1360. FELabel.Text = "FE Game"
  1361. FELabel.TextColor3 = BrickColor.new("Bright red").Color
  1362. else
  1363. FELabel.Text = "Not FE"
  1364. FELabel.TextColor3 = BrickColor.new("Bright green").Color
  1365. end
  1366. top.Controllers.Hide.MouseButton1Down:connect(function()
  1367. if topkek.navigation.windowState == 0 then
  1368. topkek.navigation.windowState = 1
  1369. topkek.center:TweenSize(UDim2.new(0, 470, 0, 30), 'Out', 'Quint', 0.2)
  1370. else
  1371. topkek.navigation.windowState = 0
  1372. topkek.center:TweenSize(UDim2.new(0, 470, 0, 395), 'Out', 'Quint', 0.2)
  1373. end
  1374. end)
  1375. top.Controllers.Exit.MouseButton1Down:connect(function()
  1376. topkek.center:TweenSize(UDim2.new(0, 470, 0, 30), 'Out', 'Quint', 0.3)
  1377. wait(0.31)
  1378. topkek.center:TweenSize(UDim2.new(0, 0, 0, 0), 'Out', 'Quint', 0.3)
  1379. PlayerChatHook:disconnect()
  1380. end)
  1381.  
  1382. end
  1383. topkek.navigation.initCommandBar = function()
  1384. DistributedCmdBar, cmd = topkek.holder.Command, {}
  1385. loadstring(game:GetObjects("rbxassetid://685510751")[1].Source)()
  1386. DistributedCmdBar.FocusLost:connect(function(e)
  1387. if e == true then
  1388. cmd.commands.run(DistributedCmdBar.Text)
  1389. DistributedCmdBar.Text = ''
  1390. end
  1391. end)
  1392.  
  1393. PlayerChatHook = cmd.players.PlayerChatted:connect(function (_, plr, msg, _)
  1394. if cmd.util.isadmin(plr.Name) then
  1395. if msg:sub(1,1) == cmd.prefix or msg:sub(1,1) == cmd.hidden then
  1396. cmd.commands.run(msg:sub(2, #msg))
  1397. end
  1398. end
  1399. end)
  1400. end
  1401. topkek.navigation.buildHomePage = function()
  1402. local count = 0
  1403. for _, _ in pairs(cmd.commands.store) do count = count + 1 end
  1404. local hook = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Home').Container, true)
  1405. hook:drawText(1, 'T0PK3K 4.0 ProtoSmasher Edition edited by bork')
  1406. hook:drawText(1, 'Patch version 1.0.5')
  1407. hook:drawText(1, 'Commandbase patch version 1.0.0')
  1408. hook:drawText(1, 'Number of commands: ' .. tostring(count))
  1409. local stime = hook:drawText(1, 'Server Time: 0')
  1410. spawn(function()
  1411. while true do
  1412. stime.Text = 'Server Time: ' .. tostring(game:GetService('Workspace').DistributedGameTime)
  1413. wait(0.5)
  1414. end
  1415. end)
  1416. local ssz = hook:drawText(1, 'Server Size: 0')
  1417. spawn(function()
  1418. while true do
  1419. ssz.Text = 'Server Size: ' .. tostring(game:GetService('Players').NumPlayers)
  1420. wait(0.5)
  1421. end
  1422. end)
  1423. local fe = game:GetService('Workspace').FilteringEnabled
  1424. hook:drawText(1, 'FilteringEnabled: ' .. (fe and "YES" or "NO"))
  1425. hook:drawText(1, 'PlaceId: ' .. tostring(game.PlaceId))
  1426. hook:drawText(1, 'same', 55)
  1427. end
  1428. topkek.navigation.buildContainers = function()
  1429. for _, v in pairs(topkek.data.windows) do
  1430. topkek.tools.gui:makeContainer(v)
  1431. end
  1432. end
  1433.  
  1434. topkek.navigation.initCommandBar()
  1435. topkek.navigation.buildContainers()
  1436. topkek.navigation.buildTopbar()
  1437. topkek.navigation.buildHomePage()
  1438. wait()
  1439.  
  1440.  
  1441. --// actual code below lole //--
  1442.  
  1443. --// PLAYERS //--
  1444. local plrwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Players').Container)
  1445. local search = plrwin:drawButton(1, '', function()end)
  1446. drop = GUI.DropDown.New(UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), search, {'All'})
  1447. function fixPlayerDrop()
  1448. local t = {'All'}
  1449. for i, v in pairs(game.Players:GetPlayers()) do
  1450. table.insert(t, v.Name)
  1451. end
  1452. drop.SetTable(t)
  1453. end
  1454. game.Players.PlayerAdded:connect(function()
  1455. fixPlayerDrop()
  1456. end)
  1457. game.Players.PlayerRemoving:connect(function()
  1458. fixPlayerDrop()
  1459. end)
  1460. plrFrame = plrwin:drawContainer(1, 100)
  1461. headshotContainer = plrFrame:drawContainer(0.4, 94, true)
  1462. headshotContainer:setDrawY(20)
  1463. headshot = headshotContainer:drawImage(1, "https://www.roblox.com/bust-thumbnail/image?userId=1&width=420&height=420&format=png", 74)
  1464. headshotContainer:setDrawY(0)
  1465. userNameText = headshotContainer:drawText(1, "[All]")
  1466. userNameText.ClipsDescendants = true
  1467. userNameText.Font = Enum.Font.SourceSansBold
  1468. infoContainer = plrFrame:drawContainer(0.5, 94, true, 0.5)
  1469. infoContainer.BackgroundColor3 = color3(108, 38, 38)
  1470. userIdText = infoContainer:drawText(1, "ID: 0")
  1471. userAgeText = infoContainer:drawText(1, "Age: 0")
  1472. userTeamText = infoContainer:drawText(1, "Team: Neutral")
  1473. cval = 'All'
  1474. fixPlayerDrop()
  1475.  
  1476. function updatePlayer(plri)
  1477. local plr = game:GetService('Players'):FindFirstChild(plri)
  1478. if not plr and plri ~= 'All' then
  1479. print("Couldn't find player!")
  1480. updatePlayer(topkek.lplr)
  1481. else
  1482. headshot.Image = "https://www.roblox.com/bust-thumbnail/image?userId=1&width=420&height=420&format=png"
  1483. userNameText.Text = "[All]"
  1484. userIdText.Text = 'ID: [multiple]'
  1485. userAgeText.Text = 'Age: [multiple]'
  1486. userTeamText.Text = 'Team: [multiple]'
  1487. cval = 'All'
  1488. end
  1489. local team = plr.TeamColor
  1490. if team == nil then
  1491. team = 'Neutral'
  1492. else
  1493. team = tostring(team)
  1494. end
  1495. headshot.Image = "https://www.roblox.com/bust-thumbnail/image?userId=" .. tostring(plr.UserId) .. "&width=420&height=420&format=png"
  1496. userNameText.Text = plr.Name
  1497. userIdText.Text = 'ID: ' .. tostring(plr.UserId)
  1498. userAgeText.Text = 'Age: ' .. tostring(plr.AccountAge)
  1499. userTeamText.Text = 'Team: ' .. team
  1500. cval = plr.Name
  1501.  
  1502. end
  1503. drop.Changed(updatePlayer)
  1504. --actual code ------__-
  1505. plrwin:addSpacing()
  1506. plrwin:drawButton(1/2, 'Kick', function()
  1507. tk.dp(cval, function(p)
  1508. topkek.banmgr.executeKick(p)
  1509. end)
  1510. end)
  1511.  
  1512. plrwin:drawButton(1/2, 'Ban', function()
  1513. tk.dp(cval, function(p)
  1514. topkek.banmgr.addSoftBan(p)
  1515. end)
  1516. end)
  1517. plrwin:drawButton(1/2,'Friendlag', function()
  1518. tk.dp(cval, function(p)
  1519. for i = 1, 10 do
  1520. spawn(function()
  1521. while wait() do
  1522. game.Players.LocalPlayer:RequestFriendship(p)
  1523. game.Players.LocalPlayer:RevokeFriendship(p)
  1524. end
  1525. end)
  1526. end
  1527. end)
  1528. end)
  1529. plrwin:drawButton(1/2, 'Hardban', function()
  1530. tk.dp(cval, function(p)
  1531. topkek.banmgr.addHardBan(p)
  1532. end)
  1533. end)
  1534. plrwin:addSpacing()
  1535. plrwin:drawButton(1/2, 'Bring', function()
  1536. tk.dp(cval, function(z)
  1537. if z.Character then
  1538. z.Character.HumanoidRootPart.CFrame =
  1539. game:service'Players'.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(1,1,1)
  1540. end
  1541. end)
  1542. end)
  1543. plrwin:drawButton(1/2, 'Goto', function()
  1544. tk.dp(cval, function(z)
  1545. game:service'Players'.LocalPlayer.Character.HumanoidRootPart.CFrame =
  1546. z.Character.HumanoidRootPart.CFrame * CFrame.new(1,1,1)
  1547. end)
  1548. end)
  1549. plrwin:addSpacing()
  1550. plrwin:drawButton(1/3, 'Kill', function()
  1551. tk.dp(cval, function(p)
  1552. if p.Character and p.Character:FindFirstChild("Humanoid") then
  1553. p.Character.Humanoid.Health = 0
  1554. end
  1555. end)
  1556. end)
  1557. plrwin:drawButton(1/3, 'Seizure', function()
  1558. tk.dp(cval, function(p)
  1559. if p.Character and p.Character:FindFirstChild("Humanoid") and tk.gt(p) then
  1560. spawn(function()
  1561. p.Character.Humanoid.PlatformStand = true
  1562. tk.gt(p).CFrame = tk.gt(p).CFrame * CFrame.Angles(math.rad(90),0,0)
  1563. repeat
  1564. wait()
  1565. p.Character.Humanoid.PlatformStand = true
  1566. tk.gt(p).Velocity = Vector3.new(math.random(-10,10),-5,math.random(-10,10))
  1567. tk.gt(p).RotVelocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  1568. until not p.Character:FindFirstChild("Humanoid") or not tk.gt(p)
  1569. end)
  1570. end
  1571. end)
  1572. end)
  1573. plrwin:drawButton(1/3, 'Stun', function()
  1574. tk.dp(cval, function(p)
  1575. if p.Character and p.Character:FindFirstChild("Humanoid") then
  1576. p.Character.Humanoid.PlatformStand = true
  1577. p.Character.Torso.CFrame = p.Character.Torso.CFrame * CFrame.Angles(math.rad(90),0,0)
  1578. end
  1579. end)
  1580. end)
  1581. plrwin:drawButton(1/3, 'Freeze', function()
  1582. tk.dp(cval, function(p)
  1583. if p.Character then
  1584. tk.gt(p).Anchored = true
  1585. end
  1586. end)
  1587. end)
  1588. plrwin:drawButton(1/3, 'Thaw', function()
  1589. tk.dp(cval, function(p)
  1590. if p.Character then
  1591. tk.gt(p).Anchored = false
  1592. end
  1593. end)
  1594. end)
  1595. plrwin:drawButton(1/3, 'Superslow', function()
  1596. tk.dp(cval, function(p)
  1597. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1598. p.Character.Humanoid.WalkSpeed = 1
  1599. end
  1600. end)
  1601. end)
  1602. plrwin:drawButton(1/3, 'Highjump', function()
  1603. tk.dp(cval, function(p)
  1604. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1605. p.Character.Humanoid.JumpPower = 125
  1606. end
  1607. end)
  1608. end)
  1609. plrwin:drawButton(1/3, 'God', function()
  1610. tk.dp(cval, function(p)
  1611. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1612. p.Character.Humanoid.MaxHealth = math.huge
  1613. p.Character.Humanoid.Health = math.huge
  1614. end
  1615. end)
  1616. end)
  1617. plrwin:drawButton(1/3, 'Semigod', function()
  1618. tk.dp(cval, function(p)
  1619. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1620. p.Character.Humanoid.MaxHealth = 9e9
  1621. p.Character.Humanoid.Health = 9e9
  1622. end
  1623. end)
  1624. end)
  1625. plrwin:drawButton(1/3, 'Fast', function()
  1626. tk.dp(cval, function(p)
  1627. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1628. p.Character.Humanoid.WalkSpeed = 50
  1629. end
  1630. end)
  1631. end)
  1632. Follow = false;
  1633. plrwin:drawButton(1/3, 'Annoy', function()
  1634. tk.dp(cval, function(p)
  1635. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1636. if Follow == true then
  1637. Follow = false; return
  1638. else Follow = true end
  1639. while Follow == true do
  1640. game:service'Players'.LocalPlayer.Character.HumanoidRootPart.CFrame=
  1641. p.Character.HumanoidRootPart.CFrame
  1642. wait()
  1643. end
  1644. end
  1645. end)
  1646. end)
  1647. plrwin:drawButton(1/3, 'Freefall', function()
  1648. tk.dp(cval, function(p)
  1649. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1650. p.Character.HumanoidRootPart.CFrame = p.Character.HumanoidRootPart.CFrame * CFrame.new(0, 10000, 0)
  1651. end
  1652. end)
  1653. end)
  1654. plrwin:drawButton(1/3, 'Destroy', function()
  1655. tk.dp(cval, function(p)
  1656. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1657. p.Character.Humanoid:Destroy()
  1658. end
  1659. end)
  1660. end)
  1661. plrwin:drawButton(1/3, 'Fix', function()
  1662. tk.dp(cval, function(p)
  1663. if p.Character and p.Character:FindFirstChild('Humanoid') then
  1664. p.Character.Humanoid.Health = 100
  1665. p.Character.Humanoid.MaxHealth = 100
  1666. p.Character.Humanoid.JumpPower = 100
  1667. p.Character.Humanoid.WalkSpeed = 16
  1668. p.Character.Humanoid.PlatformStand = false
  1669. p.Character.Humanoid.Jump = true
  1670. end
  1671. end)
  1672. end)
  1673. plrwin:drawButton(1/3, 'Respawn', function()
  1674. tk.dp(cval, function(p)
  1675. if p.Character then
  1676. local a1 = Instance.new("Model", game:service'Workspace')
  1677. local a2 = Instance.new("Part", game:service'Workspace')
  1678. a2.CanCollide = true
  1679. a2.Anchored = true
  1680. a2.CFrame = CFrame.new(10000, 10000, 10000)
  1681. a2.Name = "Torso"
  1682. local a3 = Instance.new("Humanoid", a1)
  1683. a3.MaxHealth=100;a3.Health=100
  1684. p.Character = a1
  1685. a3.Health=0
  1686. end
  1687. end)
  1688. end)
  1689. plrwin:addSpacing()
  1690. local nameInp
  1691. plrwin:drawButton(1/3, 'Name', function()
  1692. tk.dp(cval, function(z)
  1693. local Character = z.Character
  1694. local newName = Instance.new("Model", z.Character)
  1695. newName.Name = nameInp.Text
  1696. local cl = Character:WaitForChild("Head"):Clone()
  1697. cl.Parent = newName
  1698. cl:WaitForChild("face"):Destroy()
  1699. local hum = Instance.new("Humanoid", newName)
  1700. hum.Name = "NameTag"
  1701. hum.MaxHealth = 0
  1702. hum.Health = 0
  1703. local weld = Instance.new("Weld", cl)
  1704. weld.Part0 = cl
  1705. weld.Part1 = Character:WaitForChild("Head")
  1706. Character:WaitForChild("Head").Transparency = 1
  1707. wait(.5)
  1708. cl.BrickColor = Character:WaitForChild("Head").BrickColor
  1709. end)
  1710. end)
  1711. nameInp = plrwin:drawTextBox(2/3, '')
  1712. local chatInp
  1713. plrwin:drawButton(1/3, 'Chat', function()
  1714. tk.dp(cval, function(z)
  1715. game:GetService('Chat'):Chat(z.Charcter, chatInp.Text)
  1716. end)
  1717. end)
  1718. chatInp = plrwin:drawTextBox(2/3, '')
  1719. local disgInp
  1720. plrwin:drawButton(1/3, 'Disguise', function()
  1721. tk.dp(cval, function(p)
  1722. local id = 0
  1723. if tonumber(disgInp.Text) then
  1724. id = tonumber(disgInp.Text)
  1725. else
  1726. id = game:GetService('Players'):GetUserIdFromNameAsync(disgInp.Text)
  1727. end
  1728. if p.Character:FindFirstChild("Humanoid") then
  1729. p.Character.Humanoid.Health = 0
  1730. end
  1731. p.CharacterAppearance = 'https://assetgame.roblox.com/Asset/CharacterFetch.ashx?userId=' .. tostring(id)
  1732. end)
  1733. end)
  1734. disgInp = plrwin:drawTextBox(2/3, 'ROBLOX')
  1735. plrwin:addSpacing()
  1736. clrR = plrwin:drawTextBox(1/3, '0')
  1737. clrG = plrwin:drawTextBox(1/3, '0')
  1738. clrB = plrwin:drawTextBox(1/3, '0')
  1739. function getColor()
  1740. local r = tonumber(clrR.Text)
  1741. local g = tonumber(clrG.Text)
  1742. local b = tonumber(clrB.Text)
  1743. if not (r and g and b) then return Color3.new(0,0,0) end
  1744. return Color3.new(r/255, g/255, b/255)
  1745. end
  1746. plrwin:drawButton(1/3, 'Sparkles', function()
  1747. tk.dp(cval, function(z)
  1748. Instance.new("Sparkles", tk.gt(z)).SparkleColor = getColor()
  1749. end)
  1750. end)
  1751. plrwin:drawButton(1/3, 'Smoke', function()
  1752. tk.dp(cval, function(z)
  1753. Instance.new("Smoke", tk.gt(z)).Color = getColor()
  1754.  
  1755. end)
  1756. end)
  1757. plrwin:drawButton(1/3, 'Fire', function()
  1758. tk.dp(cval, function(z)
  1759. local fr = Instance.new("Fire", tk.gt(z))
  1760. fr.Color = getColor()
  1761. fr.Heat = 30
  1762. fr.Size = 20
  1763. end)
  1764. end)
  1765. plrwin:drawButton(1/3, 'Forcefield', function()
  1766. tk.dp(cval, function(z)
  1767. if z.Character then
  1768. Instance.new("ForceField", z.Character)
  1769. end
  1770. end)
  1771. end)
  1772. plrwin:drawButton(1/3, 'Select', function()
  1773. tk.dp(cval, function(z)
  1774. if z.Character and tk.gt(z) then
  1775. Instance.new("SelectionBox", tk.gt(z)).Adornee = tk.gt(z)
  1776. end
  1777. end)
  1778. end)
  1779. plrwin:drawButton(1/3, 'Sphere', function()
  1780. tk.dp(cval, function(z)
  1781. if z.Character and tk.gt(z) then
  1782. Instance.new("SelectionSphere", tk.gt(z)).Adornee = tk.gt(z)
  1783. end
  1784. end)
  1785. end)
  1786. plrwin:drawButton(1/3, 'Fling', function()
  1787. tk.dp(cval, function(z)
  1788. spawn(function() --kohls admin commands lol
  1789. if z.Character and tk.gt(z) then
  1790. local xran, zran
  1791. repeat xran = math.random(5555, 9999) until math.abs(xran) >= 5555
  1792. repeat zran = math.random(5555, 9999) until math.abs(zran) >= 5555
  1793. z.Character.Humanoid.Sit = true
  1794. tk.gt(z).Velocity = Vector3.new(0,0,0)
  1795. local frc = Instance.new("BodyForce", tk.gt(z))
  1796. frc.Name = "BFRC"
  1797. frc.force = Vector3.new(xran*4,9999*5,zran*4)
  1798. game:GetService("Debris"):AddItem(frc, 0.1)
  1799. end
  1800. end)
  1801. end)
  1802. end)
  1803. plrwin:drawButton(1/3, 'Explode', function()
  1804. tk.dp(cval, function(z)
  1805. if z.Character and tk.gt(z) then
  1806. local explosion = Instance.new("Explosion")
  1807. explosion.Position = tk.gt(z).Position
  1808. explosion.Parent = workspace
  1809. end
  1810. end)
  1811. end)
  1812. plrwin:drawButton(1/3, 'Nuke', function()
  1813. tk.dp(cval, function(z)
  1814. if z.Character and tk.gt(z) then
  1815. local torso = tk.gt(z)
  1816. local nuke = Instance.new("Part", game.Workspace)
  1817. local opos = torso.CFrame
  1818. nuke.BrickColor = BrickColor.new("Bright yellow")
  1819. nuke.TopSurface = Enum.SurfaceType.Smooth
  1820. nuke.BottomSurface = Enum.SurfaceType.Smooth
  1821. nuke.Anchored = true
  1822. nuke.CanCollide = false
  1823. nuke.Shape = "Ball"
  1824. nuke.Transparency = 0.5
  1825. nuke.CFrame = torso.CFrame
  1826. nuke.Size = Vector3.new(1, 1, 1)
  1827. nuke.Touched:connect(function(p)
  1828. local expl = Instance.new("Explosion", p)
  1829. expl.BlastPressure = 50000
  1830. expl.BlastRadius = 50
  1831. expl.Position = p.Position
  1832. p.Material = Enum.Material.CorrodedMetal
  1833. p:BreakJoints()
  1834. end)
  1835. for i = 1, 150 do
  1836. nuke.Size = Vector3.new(i, i, i)
  1837. nuke.CFrame = opos
  1838. wait(0.08)
  1839. end
  1840. nuke:Destroy()
  1841. end
  1842. end)
  1843. end)
  1844. plrwin:drawButton(1/3, 'No Tools', function()
  1845. tk.dp(cval, function(p)
  1846. for _, t in pairs(p.Backpack:GetChildren()) do
  1847. t:Destroy()
  1848. end
  1849. end)
  1850. end)
  1851. plrwin:drawButton(1/3, 'Take Tools', function()
  1852. tk.dp(cval, function(p)
  1853. for _, t in pairs(p.Backpack:GetChildren()) do
  1854. t.Parent = game:service'Players'.LocalPlayer.Backpack
  1855. end
  1856. end)
  1857. end)
  1858. plrwin:drawButton(1/3, 'BTools', function()
  1859. tk.dp(cval, function(p)
  1860. local a = Instance.new("HopperBin")
  1861. a.BinType = "GameTool"
  1862. a.Parent = p.Backpack
  1863. local a = Instance.new("HopperBin")
  1864. a.BinType = "Clone"
  1865. a.Parent = p.Backpack
  1866. local a = Instance.new("HopperBin")
  1867. a.BinType = "Hammer"
  1868. a.Parent = p.Backpack
  1869. end)
  1870. end)
  1871. plrwin:drawButton(1/3, 'Hotdog', function()
  1872. tk.dp(cval, function(p)
  1873. if p.Character and tk.gt(p) then
  1874. topkek.tools.util.weenieHutJunior(p)
  1875. end
  1876. end)
  1877. end)
  1878. plrwin:drawButton(1/3, 'Quicksand', function()
  1879. tk.dp(cval, function(z)
  1880. if z.Character and z.Character:FindFirstChild("Humanoid") then
  1881. local tor = tk.gt(z)
  1882. local hole = Instance.new("Part", z.Character)
  1883. hole.Anchored = true
  1884. hole.Name = "Hole"
  1885. hole.FormFactor = Enum.FormFactor.Custom
  1886. hole.Size = Vector3.new(7, 1, 7)
  1887. hole.CanCollide = false
  1888. hole.CFrame = tor.CFrame * CFrame.new(0,-3.3,0)
  1889. hole.BrickColor = BrickColor.new("Cool yellow")
  1890. hole.Material = Enum.Material.Sand
  1891. local hm = Instance.new("CylinderMesh", hole)
  1892. tor.Anchored = true
  1893. if z.Character:FindFirstChild("Humanoid") then
  1894. z.Character.Humanoid.Jump = true
  1895. end
  1896. for x,m in pairs(z.Character:GetChildren()) do
  1897. if m:IsA("BasePart") or m:IsA("MeshPart") then
  1898. m.CanCollide = false
  1899. end
  1900. end
  1901. for i=1,75 do
  1902. tor.CFrame=tor.CFrame*CFrame.new(0,-0.1,0)
  1903. wait(0.06)
  1904. end
  1905. tor.CFrame=tor.CFrame*CFrame.new(0,
  1906. -500,0
  1907. )
  1908. z.Character.Humanoid.Health = 0
  1909. end
  1910. end)
  1911. end)
  1912. plrwin:drawButton(1/3, 'Insane', function()
  1913. tk.dp(cval, function(p)
  1914. if p.Character and tk.gt(p) then
  1915. for i,v in pairs(tk.gt(p):GetChildren()) do
  1916. if v:IsA("Motor6D") then
  1917. spawn(function()
  1918. while v do
  1919. v.C0=v.C0*CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  1920. wait()
  1921. end
  1922. end)
  1923. end
  1924. end
  1925. end
  1926. end)
  1927. end)
  1928. plrwin:drawButton(1/3, 'Invisible', function()
  1929. tk.dp(cval, function(p)
  1930. tk.rco(p.Character, 'BasePart', 'Transparency', 1)
  1931. tk.rco(p.Character, 'MeshPart', 'Transparency', 1)
  1932. end)
  1933. end)
  1934. plrwin:drawButton(1/3, 'Visible', function()
  1935. tk.dp(cval, function(p)
  1936. tk.rco(p.Character, 'BasePart', 'Transparency', 0)
  1937. tk.rco(p.Character, 'MeshPart', 'Transparency', 0)
  1938. end)
  1939. end)
  1940. plrwin:drawButton(1/3, 'Bighead', function()
  1941. tk.dp(cval, function(z)
  1942. if z.Character then
  1943. if z.Character:FindFirstChild('Head') then
  1944. z.Character.Head.Mesh.Scale=Vector3.new(5,5,5)
  1945. end
  1946. end
  1947. end)
  1948. end)
  1949. plrwin:drawButton(1/3, 'Goldify', function()
  1950. tk.dp(cval, function(z)
  1951. if z.Character then
  1952. tk.rco(z.Character, 'BasePart', 'Material', 'Marble')
  1953. tk.rco(z.Character, 'MeshPart', 'Material', 'Marble')
  1954. tk.rco(z.Character, 'BasePart', 'BrickColor', BrickColor.new('Bright yellow'))
  1955. tk.rco(z.Character, 'MeshPart', 'BrickColor', BrickColor.new('Bright yellow'))
  1956. end
  1957. end)
  1958. end)
  1959. plrwin:drawButton(1/3, 'Neon', function()
  1960. tk.dp(cval, function(z)
  1961. if z.Character then
  1962. tk.rco(z.Character, 'BasePart', 'Material', 'Neon')
  1963. tk.rco(z.Character, 'MeshPart', 'Material', 'Neon')
  1964. end
  1965. end)
  1966. end)
  1967. plrwin:drawButton(1/3, 'Shiny', function()
  1968. tk.dp(cval, function(z)
  1969. if z.Character then
  1970. tk.rco(z.Character, 'BasePart', 'Reflectance', 1)
  1971. tk.rcm(z.Character, 'MeshPart')
  1972. end
  1973. end)
  1974. end)
  1975. plrwin:drawButton(1/3, 'Shrek', function()
  1976. tk.dp(cval, function(z)
  1977. if z.Character then
  1978. local pchar = z.Character
  1979. for i,v in pairs(pchar:GetChildren()) do
  1980. if v:IsA("Hat") or v:IsA("Accessory") or v:IsA("CharacterMesh") or v:IsA("Shirt") or v:IsA("Pants") then
  1981. v:Destroy()
  1982. end
  1983. end
  1984. for i,v in pairs(pchar.Head:GetChildren()) do
  1985. if v:IsA("Decal") or v:IsA("SpecialMesh") then
  1986. v:Destroy()
  1987. end
  1988. end
  1989.  
  1990. local mesh = Instance.new("SpecialMesh", pchar.Head)
  1991. mesh.MeshType = "FileMesh"
  1992. pchar.Head.Mesh.MeshId = "http://www.roblox.com/asset/?id=19999257"
  1993. pchar.Head.Mesh.Offset = Vector3.new(-0.1, 0.1, 0)
  1994. pchar.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=156397869"
  1995.  
  1996. local Shirt = Instance.new("Shirt", z.Character)
  1997. local Pants = Instance.new("Pants", z.Character)
  1998.  
  1999. Shirt.ShirtTemplate = "rbxassetid://133078194"
  2000. Pants.PantsTemplate = "rbxassetid://133078204"
  2001. end
  2002. end)
  2003. end)
  2004. plrwin:drawButton(1/3, 'Duck', function()
  2005. tk.dp(cval, function(z)
  2006. if z.Character then
  2007. local pchar = z.Character
  2008. for i,v in pairs(pchar:GetChildren()) do
  2009. if v:IsA("Hat") or v:IsA("Accessory") then
  2010. v:Destroy()
  2011. end
  2012. end
  2013. local duck = Instance.new("SpecialMesh", z.Character.HumanoidRootPart)
  2014. duck.MeshType = "FileMesh"
  2015. duck.MeshId = "http://www.roblox.com/asset/?id=9419831"
  2016. duck.TextureId = "http://www.roblox.com/asset/?id=9419827"
  2017. duck.Scale = Vector3.new(5, 5, 5)
  2018. tk.rco(z.Character, 'Instance', 'Transparency', 1)
  2019. z.Character.HumanoidRootPart.Transparency = 0
  2020. end
  2021. end)
  2022. end)
  2023. plrwin:drawButton(1/3, 'Spheres', function()
  2024. tk.dp(cval, function(z)
  2025. if z.Character then
  2026. tk.rco(z.Character, 'BasePart', 'Shape', 'Cylinder')
  2027. end
  2028. end)
  2029. end)
  2030. plrwin:drawButton(1/3, 'Big', function()
  2031. tk.dp(cval, function(z)
  2032. if z.Character then
  2033. topkek.tools.util.scalePlayer(5, z)
  2034. end
  2035. end)
  2036. end)
  2037. plrwin:drawButton(1/3, 'Small', function()
  2038. tk.dp(cval, function(z)
  2039. if z.Character then
  2040. topkek.tools.util.scalePlayer(5, z)
  2041. end
  2042. end)
  2043. end)
  2044. plrwin:drawButton(1/3, 'Giraffe', function()
  2045. tk.dp(cval, function(z)
  2046. if z.Character then
  2047. local char=z.Character
  2048. local h=char.Head
  2049. local tor=char:FindFirstChild("Torso")
  2050. if not tor then return end
  2051. tor.Neck.C0=tor.Neck.C0*CFrame.new(0,0,5)
  2052. local fn=Instance.new("Part",char)
  2053. fn.Size=Vector3.new(1,5.5,1)
  2054. fn.Name="FakeNeck"
  2055. fn.Anchored=false
  2056. fn.CanCollide=false
  2057. if char:FindFirstChild("Body Colors") then
  2058. fn.BrickColor=char["Body Colors"].HeadColor
  2059. end
  2060. local cm=Instance.new("CylinderMesh",fn)
  2061. local we=Instance.new("Weld",h)
  2062. we.Part0=h
  2063. we.Part1=fn
  2064. we.C1=we.C1*CFrame.new(0,2.6,0)
  2065. end
  2066. end)
  2067. end)
  2068. plrwin:drawButton(1/3, 'Dab', function()
  2069. tk.dp(cval, function(z)
  2070. if z.Character and z.Character:FindFirstChild("Torso") then
  2071. local chr = z.Character
  2072. chr.Animate.Disabled = true
  2073. 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)
  2074. 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)
  2075. 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)
  2076. end
  2077. end)
  2078. end)
  2079. plrwin:drawButton(1/3, 'Force Follow', function()
  2080. tk.dp(cval, function(z)
  2081. game:GetService("RunService"):BindToRenderStep("_", 0, function()
  2082. z.Character.Humanoid:MoveTo(topkek.lplr.Character.Head.Position)
  2083. end)
  2084. end)
  2085. end)
  2086. plrwin:drawButton(1/3, 'Camlock', function()
  2087. tk.dp(cval, function(z)
  2088. z.CameraMode = "LockFirstPerson"
  2089. end)
  2090. end)
  2091. --// SERVER //--
  2092. local servwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Server').Container)
  2093. local detailWin = servwin:drawContainer(1, 100, nil, nil, 18)
  2094. detailWin:drawText(1, 'Job ID: ' .. (game.JobId and (game.JobId ~= "") or "???"))
  2095. detailWin:drawText(1, 'Game Name: ' .. game:service'MarketplaceService':GetProductInfo(game.PlaceId).Name)
  2096. detailWin:drawText(1, 'Creator Name: ' .. game:GetService('Players'):GetNameFromUserIdAsync(game.CreatorId))
  2097. detailWin:drawText(1, 'Genre: ' .. tostring(game.Genre))
  2098. servwin:drawButton(1/2, 'Shutdown', function()
  2099. workspace.Gravity = 0/0
  2100. end)
  2101. servwin:drawButton(1/2, 'Clear', function()
  2102. for i,v in pairs(game:service'Workspace':GetChildren()) do
  2103. if (not v:IsA("Terrain"))and(v.Name~="Camera") then
  2104. v:Destroy()
  2105. end
  2106. end
  2107. end)
  2108. servwin:drawButton(1/2, 'Baseplate', function()
  2109. for X = -2500, 2500, 512 do
  2110. for Z = -2500, 2500, 512 do
  2111. local P = Instance.new("Part")
  2112. P.Anchored = true
  2113. P.Locked = true
  2114. P.Size = Vector3.new(512,3,512)
  2115. P.CFrame = CFrame.new(X,0,Z)
  2116. P.BrickColor = BrickColor.Green()
  2117. P.Parent = game:service'Workspace'
  2118. end
  2119. end
  2120. end)
  2121. servwin:drawButton(1/2, 'Reset', function()
  2122. for i,v in pairs(game:service'Workspace':GetChildren()) do
  2123. if (not v:IsA("Terrain"))and(v.Name~="Camera") then
  2124. v:Destroy()
  2125. end
  2126. end
  2127. for X = -2500, 2500, 512 do
  2128. for Z = -2500, 2500, 512 do
  2129. local P = Instance.new("Part")
  2130. P.Anchored = true
  2131. P.Locked = true
  2132. P.Size = Vector3.new(512,3,512)
  2133. P.CFrame = CFrame.new(X,0,Z)
  2134. P.BrickColor = BrickColor.Green()
  2135. P.Parent = game:service'Workspace'
  2136. end
  2137. end
  2138. for i, v in pairs(game:GetService('Players'):GetPlayers()) do
  2139. local a1 = Instance.new("Model", game:service'Workspace')
  2140. local a2 = Instance.new("Part", game:service'Workspace')
  2141. a2.CanCollide = true
  2142. a2.Anchored = true
  2143. a2.CFrame = CFrame.new(10000, 10000, 10000)
  2144. a2.Name = "Torso"
  2145. local a3 = Instance.new("Humanoid", a1)
  2146. a3.MaxHealth=100;a3.Health=100
  2147. v.Character = a1
  2148. a3.Health=0
  2149. end
  2150. end)
  2151. servwin:drawButton(1, 'Remove Sounds', function()
  2152. tk.rcm(game, 'Sound')
  2153. end)
  2154. servwin:addSpacing()
  2155. servwin:drawButton(1, 'Break All', function()
  2156. workspace:BreakJoints(workspace:GetChildren())
  2157. end)
  2158. local gravInp
  2159. servwin:drawButton(1/3, 'Gravity', function()
  2160. if not tonumber(gravInp.Text) then return end
  2161. workspace.Gravity = tonumber(gravInp.Text)
  2162. end)
  2163. gravInp = servwin:drawTextBox(2/3, '')
  2164. servwin:addSpacing()
  2165. servwin:drawButton(1, 'Reset Lighting', function()
  2166. local l = game:service'Lighting'
  2167. l.Ambient = Color3.new(0, 0, 0)
  2168. l.Brightness = 1
  2169. l.GlobalShadows = true
  2170. l.Outlines = true
  2171. l.FogEnd = 100000
  2172. l.FogStart = 0
  2173. l:SetMinutesAfterMidnight(12*60)
  2174. end)
  2175. local brightInp
  2176. servwin:drawButton(1/3, 'Brightness', function()
  2177. if not tonumber(brightInp.Text) then return end
  2178. game:GetService('Lighting').Brightness = tonumber(brightInp.Text)
  2179. end)
  2180. brightInp = servwin:drawTextBox(2/3, '100')
  2181. local fogInp
  2182. servwin:drawButton(1/3, 'Fog', function()
  2183. if not tonumber(fogInp.Text) then return end
  2184. game:GetService('Lighting').FogEnd = tonumber(fogInp.Text)
  2185. end)
  2186. fogInp = servwin:drawTextBox(2/3, '0')
  2187. local timeInp
  2188. servwin:drawButton(1/3, 'Hour', function()
  2189. if not tonumber(timeInp.Text) then return end
  2190. game:GetService('Lighting'):SetMinutesAfterMidnight(60*tonumber(timeInp.Text))
  2191. end)
  2192. timeInp = servwin:drawTextBox(2/3, '12')
  2193. servwin:addSpacing()
  2194. -- private server crap
  2195. local privateToggle
  2196. local privStatus = false
  2197. privateToggle = servwin:drawButton(1, 'Private Server OFF', function()
  2198. if privStatus == false then
  2199. privStatus = true
  2200. privateToggle.Text = 'Private Server ON'
  2201. topkek.banmgr.makePrivate()
  2202. else
  2203. privateToggle.Text = 'Private Server OFF'
  2204. topkek.banmgr.unprivate()
  2205. end
  2206. end)
  2207. servwin:addSpacing()
  2208. servwin:drawText(1, 'Whitelist')
  2209. local plrAddInp
  2210. servwin:drawButton(1/3, 'Add', function()
  2211. topkek.banmgr.doWhitelist(plrAddInp.Text)
  2212. ReorderWL()
  2213. end)
  2214. plrAddInp = servwin:drawTextBox(2/3, '')
  2215. wlCont = servwin:drawScrollingContainer(100)
  2216. function ReorderWL()
  2217. local wl = topkek.banmgr.whitelist
  2218. for i,v in pairs(wlCont:GetChildren()) do
  2219. v:Destroy()
  2220. end
  2221. wlCont:setDrawY(3)
  2222. for i,v in pairs(wl) do
  2223. wlCont:drawText(2/3, v)
  2224. wlCont:drawButton(1/3, 'Remove', function()
  2225. topkek.banmgr.unwhitelist(v)
  2226. ReorderWL()
  2227. end)
  2228. end
  2229. end
  2230. ReorderWL()
  2231. --// LOCALPLAYER //--
  2232. local lpwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('LocalPlayer').Container)
  2233. lpwin:drawButton(1, 'Reset Camera', function()
  2234. game.Workspace.CurrentCamera:remove()
  2235. wait(.1)
  2236. game.Workspace.CurrentCamera.CameraSubject = topkek.lplr.Character.Humanoid or
  2237. game.Workspace[topkek.lplr.Name].Humanoid
  2238. game.Workspace.CurrentCamera.CameraType = "Custom"
  2239. end)
  2240. lpwin:drawButton(1, 'Respawn', function()
  2241. local a1 = Instance.new("Model", game:service'Workspace')
  2242. local a2 = Instance.new("Part", game:service'Workspace')
  2243. a2.CanCollide = true
  2244. a2.Anchored = true
  2245. a2.CFrame = CFrame.new(10000, 10000, 10000)
  2246. a2.Name = "Torso"
  2247. local a3 = Instance.new("Humanoid", a1)
  2248. a3.MaxHealth=100;a3.Health=100
  2249. topkek.lplr.Character = a1
  2250. a3.Health=0
  2251. end)
  2252. lpwin:drawButton(1, 'Rejoin', function()
  2253. game:GetService('TeleportService'):Teleport(game.PlaceId)
  2254. end)
  2255. lpwin:addSpacing()
  2256. lpwin:drawButton(1/2, 'God', function()
  2257. if topkek.lplr.Character:FindFirstChild("Humanoid") then
  2258. topkek.lplr.Character.Humanoid.MaxHealth = math.huge
  2259. topkek.lplr.Character.Humanoid.Health = math.huge
  2260. end
  2261. end)
  2262. lpwin:drawButton(1/2, 'Semigod', function()
  2263. if topkek.lplr.Character:FindFirstChild("Humanoid") then
  2264. topkek.lplr.Character.Humanoid.MaxHealth = 9e9
  2265. topkek.lplr.Character.Humanoid.Health = 9e9
  2266. end
  2267. end)
  2268. Loopgod = false
  2269. lpwin:drawButton(1, 'Loopgod', function()
  2270. if Loopgod == false then
  2271. Loopgod = true
  2272. spawn(function()
  2273. repeat
  2274. topkek.lplr.Character.Humanoid.MaxHealth = math.huge
  2275. topkek.lplr.Character.Humanoid.Health = math.huge
  2276. wait()
  2277. until Loopgod == false
  2278. end)
  2279. else
  2280. Loopgod = false
  2281. end
  2282. end)
  2283. lpwin:addSpacing()
  2284. plrwin:addSpacing()
  2285. local Lev, Clip, Fly
  2286. lpwin:drawButton(1/2, 'Levitate', function()
  2287. if Lev == true then
  2288. Lev = false
  2289. return
  2290. end
  2291. Lev = true
  2292. repeat
  2293. topkek.lplr.Character.Humanoid:ChangeState(10)
  2294. wait(0)
  2295. until Lev == false
  2296. end)
  2297. lpwin:drawButton(1/2, 'Noclip', function()
  2298. if Clip == true then
  2299. Clip = false
  2300. return
  2301. end
  2302. Clip = true
  2303. game:GetService("RunService").Stepped:connect(function()
  2304. tk.gt(topkek.lplr).CanCollide = not Clip
  2305. topkek.lplr.Character.Head.CanCollide = not Clip
  2306. topkek.lplr.Character.HumanoidRootPart.CanCollide = not Clip
  2307. if topkek.lplr.Character.UpperTorso then
  2308. topkek.lplr.Character.LowerTorso.CanCollide = not Clip
  2309. end
  2310. end)
  2311. topkek.lplr.Character.HumanoidRootPart.Changed:connect(function()
  2312. tk.gt(topkek.lplr).CanCollide = not Clip
  2313. topkek.lplr.Character.Head.CanCollide = not Clip
  2314. topkek.lplr.Character.HumanoidRootPart.CanCollide = not Clip
  2315. if topkek.lplr.Character.UpperTorso then
  2316. topkek.lplr.Character.LowerTorso.CanCollide = not Clip
  2317. end
  2318. end)
  2319. end)
  2320. lpwin:drawButton(1/2, 'Fly', function()
  2321. if Fly == true then
  2322. Fly = false
  2323. return
  2324. end
  2325. Fly = true
  2326. local mouse=game.Players.LocalPlayer:GetMouse''
  2327. localplayer=game.Players.LocalPlayer
  2328. game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart")
  2329. local torso = game.Players.LocalPlayer.Character.HumanoidRootPart
  2330. local speed=0
  2331. local keys={a=false,d=false,w=false,s=false}
  2332. local e1
  2333. local e2
  2334. local function start()
  2335. local pos = Instance.new("BodyPosition",torso)
  2336. local gyro = Instance.new("BodyGyro",torso)
  2337. pos.Name="EPIXPOS"
  2338. pos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2339. pos.position = torso.Position
  2340. gyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  2341. gyro.cframe = torso.CFrame
  2342. repeat
  2343. wait()
  2344. localplayer.Character.Humanoid.PlatformStand=true
  2345. local new=gyro.cframe - gyro.cframe.p + pos.position
  2346. if not keys.w and not keys.s and not keys.a and not keys.d then
  2347. speed=1
  2348. end
  2349. if keys.w then
  2350. new = new + workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  2351. speed=speed+0.01
  2352. end
  2353. if keys.s then
  2354. new = new - workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  2355. speed=speed+0.01
  2356. end
  2357. if keys.d then
  2358. new = new * CFrame.new(speed,0,0)
  2359. speed=speed+0.01
  2360. end
  2361. if keys.a then
  2362. new = new * CFrame.new(-speed,0,0)
  2363. speed=speed+0.01
  2364. end
  2365. if speed>5 then
  2366. speed=5
  2367. end
  2368. pos.position=new.p
  2369. if keys.w then
  2370. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(-math.rad(speed*15),0,0)
  2371. elseif keys.s then
  2372. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(math.rad(speed*15),0,0)
  2373. else
  2374. gyro.cframe = workspace.CurrentCamera.CoordinateFrame
  2375. end
  2376. until not Fly
  2377. if gyro then gyro:Destroy() end
  2378. if pos then pos:Destroy() end
  2379. flying=false
  2380. localplayer.Character.Humanoid.PlatformStand=false
  2381. speed=0
  2382. end
  2383. e1=mouse.KeyDown:connect(function(key)
  2384. if not torso or not torso.Parent then flying=false e1:disconnect() e2:disconnect() return end
  2385. if key=="w" then
  2386. keys.w=true
  2387. elseif key=="s" then
  2388. keys.s=true
  2389. elseif key=="a" then
  2390. keys.a=true
  2391. elseif key=="d" then
  2392. keys.d=true
  2393. end
  2394. end)
  2395. e2=mouse.KeyUp:connect(function(key)
  2396. if key=="w" then
  2397. keys.w=false
  2398. elseif key=="s" then
  2399. keys.s=false
  2400. elseif key=="a" then
  2401. keys.a=false
  2402. elseif key=="d" then
  2403. keys.d=false
  2404. end
  2405. end)
  2406. start()
  2407. end)
  2408. lpwin:drawButton(1/2, 'Highjump', function()
  2409. local thrust = Instance.new("BodyVelocity")
  2410. game:GetService('UserInputService').InputBegan:connect(function(i, b)
  2411. if i.KeyCode == Enum.KeyCode.Space then
  2412. print("Got jump")
  2413. coroutine.resume(coroutine.create(function()
  2414. thrust.Parent = game.Players.LocalPlayer.Character.PrimaryPart
  2415. thrust.velocity = Vector3.new(0,50,0)
  2416. thrust.maxForce = Vector3.new(0,4e+050,0)
  2417. wait(0.2)
  2418. thrust.Parent = nil
  2419. end))
  2420. end
  2421. end)
  2422. end)
  2423. lpwin:addSpacing()
  2424. local apprInp
  2425. lpwin:drawButton(1/3, 'Appearance', function()
  2426. local id = 0
  2427. if tonumber(apprInp.Text) then
  2428. id = tonumber(apprInp.Text)
  2429. else
  2430. id = game:GetService('Players'):GetUserIdFromNameAsync(apprInp.Text)
  2431. end
  2432. if topkek.lplr.Character:FindFirstChild("Humanoid") then
  2433. topkek.lplr.Character.Humanoid.Health = 0
  2434. end
  2435. topkek.lplr.CharacterAppearance = 'https://assetgame.roblox.com/Asset/CharacterFetch.ashx?userId=' .. tostring(id)
  2436. end)
  2437. apprInp = lpwin:drawTextBox(2/3, 'ROBLOX')
  2438. local teamInp
  2439. lpwin:drawButton(1/3, 'Team', function()
  2440. topkek.lplr.TeamColor = BrickColor.new(teamInp.Text)
  2441. end)
  2442. teamInp = lpwin:drawTextBox(2/3, 'Bright red')
  2443. lpwin:drawButton(1/2, 'Naked', function()
  2444. topkek.lplr:ClearCharacterAppearance()
  2445. end)
  2446. lpwin:drawButton(1/2, 'Neutral', function()
  2447. topkek.lplr.Neutral = true
  2448. end)
  2449. lpwin:addSpacing()
  2450. lpwin:drawButton(1/2, 'Orb', function()
  2451. game.Players.LocalPlayer.Character = nil
  2452. --lp:Destroy()
  2453. local cam = game.Workspace.CurrentCamera
  2454. local m = Instance.new("Model", game.Workspace)
  2455. m.Name = game.Players.LocalPlayer.Name
  2456. local hum = Instance.new("Humanoid", m)
  2457. hum.Health = 0
  2458. hum.MaxHealth = 0
  2459. local orb = Instance.new("Part", m)
  2460. orb.Size = Vector3.new(1, 1, 1)
  2461. orb.Shape = "Ball"
  2462. orb.Name = "Head"
  2463. orb.Anchored = true
  2464. orb.CanCollide = true
  2465. orb.BottomSurface = Enum.SurfaceType.Smooth
  2466. orb.TopSurface = Enum.SurfaceType.Smooth
  2467. orb.Transparency = 0
  2468. spawn(function()
  2469. while true do
  2470. wait(0.1)
  2471. if orb then
  2472. orb.BrickColor = BrickColor.Random()
  2473. else break end
  2474. end
  2475. end)
  2476. cam.CameraSubject = orb
  2477. cam.CameraType = Enum.CameraType.Fixed
  2478. game:GetService("RunService").RenderStepped:connect(function()
  2479. orb.CFrame = cam.CoordinateFrame * CFrame.new(0, -2, -6)
  2480. end)
  2481. game.Players.LocalPlayer.Chatted:connect(function(a)
  2482. game:GetService("Chat"):Chat(orb, a)
  2483. end)
  2484. end)
  2485. lpwin:drawButton(1/2, 'Freecam', function()
  2486. local cam = game.Workspace.CurrentCamera
  2487. cam.CameraType = "Fixed"
  2488. cam.CameraSubject = nil
  2489. topkek.lplr.Character = nil
  2490. end)
  2491. lpwin:drawButton(1/2, 'NoGrav', function()
  2492. if topkek.lplr.Character then
  2493. for x,m in pairs(topkek.lplr.Character:GetChildren()) do
  2494. if m:IsA("BasePart") then
  2495. local bf = Instance.new("BodyForce", m)
  2496. bf.force = Vector3.new(0, 192.25, 0) * m:GetMass()
  2497. end
  2498. if m:IsA("Hat") or m:IsA("Accessory") then
  2499. if m:findFirstChild("Handle") then
  2500. local bf = Instance.new("BodyForce", m.Handle)
  2501. bf.force = Vector3.new(0, 192.25, 0) * m.Handle:GetMass()
  2502. end
  2503. end
  2504. end
  2505. end
  2506. end)
  2507. lpwin:drawButton(1/2, 'Trowel', function()
  2508. topkek.tools.util.trowel()
  2509. end)
  2510. lpwin:addSpacing()
  2511. lpwin:drawButton(1/2, 'Fedora', function()
  2512. local hats={
  2513. 98346834,
  2514. 215751161,
  2515. 119916949,
  2516. 72082328,
  2517. 147180077,
  2518. 100929604,
  2519. 63043890,
  2520. 1285307,
  2521. 1029025,
  2522. 334663683,
  2523. 259423244
  2524. }
  2525. game:GetObjects("rbxassetid://" .. tostring(hats[math.random(1,#hats)]))[1].Parent = topkek.lplr.Character
  2526. end)
  2527. lpwin:drawButton(1/2, 'Rainbow Name', function()
  2528. topkek.lplr.Neutral = false
  2529. repeat
  2530. wait()
  2531. topkek.lplr.TeamColor = BrickColor.Random()
  2532. until not topkek.lplr.Character.Humanoid
  2533. end)
  2534. local tagInp
  2535. lpwin:drawButton(1/3, 'Tag', function()
  2536. local len = 10
  2537. local bb = Instance.new("BillboardGui")
  2538. bb.Parent = topkek.lplr.Character.Head
  2539. bb.Adornee = topkek.lplr.Character.Head
  2540. bb.AlwaysOnTop = true
  2541. bb.Enabled = true
  2542. bb.Size = UDim2.new(len, 0, 1.5, 0)
  2543. bb.Name = "tag"
  2544. bb.StudsOffset = Vector3.new(0, 3, 0)
  2545. --local fr = Instance.new("Frame")
  2546. --fr.Parent = bb
  2547. --fr.Size = UDim2.new(1, 0, 1, 0)
  2548. --fr.Style = Enum.FrameStyle.RobloxRound
  2549. local tl = Instance.new("TextLabel")
  2550. tl.Parent = bb
  2551. tl.Font = Enum.Font.Code
  2552. tl.BackgroundTransparency = 1
  2553. tl.TextScaled = true
  2554. tl.TextColor3 = Color3.new(15/255, 15/255, 15/255)
  2555. tl.Size = UDim2.new(1, 0, 1, 0)
  2556. tl.Text = tagInp.Text
  2557. tl.Name = "trutag"
  2558. tl.Visible = true
  2559. tl.ZIndex = 2
  2560. end)
  2561. tagInp = lpwin:drawTextBox(2/3, '')
  2562. --// SCRIPTS //--
  2563. local scriptwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Scripts').Container)
  2564. local search = scriptwin:drawTextBox(1,'')
  2565. local origy = scriptwin:getDrawY()
  2566. scriptwin:addSpacing()
  2567. scriptwin:addSpacing()
  2568. local scripts = game:GetObjects("rbxassetid://376553985")[1]
  2569. local container = {}
  2570. function MakeList(condition)
  2571. for i,v in pairs(scriptwin:GetChildren()) do
  2572. if v.Name == "Script" then
  2573. v:Destroy()
  2574. end
  2575. end
  2576. scriptwin:setDrawY(origy)
  2577. for i, v in pairs(scripts:GetChildren()) do
  2578. if string.find(v.Name:lower(), condition:lower()) or (condition == "") or (condition == " ") then
  2579. local scr = scriptwin:drawButton(1, v.Name, function()
  2580. spawn(function() loadstring(v.Source)() end)
  2581. end, 25)
  2582. scr.Name = 'Script'
  2583. end
  2584. end
  2585. end
  2586. game:GetService("UserInputService").InputChanged:connect(function(inp)
  2587. if inp.UserInputType == Enum.UserInputType.TextInput then
  2588. if search:IsFocused() then
  2589. MakeList(search.Text)
  2590. end
  2591. end
  2592. end)
  2593. MakeList('')
  2594. --// DESTRUCTION // --
  2595. local destwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Destruction').Container)
  2596. local decals, seldec = destwin:drawScrollingContainer(100)
  2597. seldec = destwin:drawText(1, 'Selected Decal: None')
  2598. cursel = nil
  2599. local decs = {
  2600. {'Rain', '574772793'},
  2601. {'Robbie', '574773630'},
  2602. {'Pepe', '244905904'},
  2603. {'Troll Face', '48308661'},
  2604. {'Jeff', '109129888'},
  2605. {'Shrek', '170539018'},
  2606. {'Doge', '133720697'},
  2607. {'Dat Boi', '409578848'},
  2608. }
  2609. for _, v in pairs(decs) do
  2610. local b = decals:drawButton(1, v[1], function()seldec.Text="Selected Decal: " ..v[2] cursel=v[2] end,20)
  2611. topkek.tools.gui:addLeftIcon(b,'rbxassetid://'..v[2],20)
  2612. end
  2613. destwin:drawButton(1, 'Spam Decal', function()
  2614. if cursel ~= nil then
  2615. topkek.tools.util.recurseDecal(tonumber(cursel))
  2616. end
  2617. end)
  2618. destwin:drawButton(1, 'Spam Particles', function()
  2619. if cursel ~= nil then
  2620. topkek.tools.util.recurseParticles(tonumber(cursel))
  2621. end
  2622. end)
  2623. destwin:drawButton(1, 'Spam Both', function()
  2624. if cursel ~= nil then
  2625. topkek.tools.util.recurseUltimate(tonumber(cursel))
  2626. end
  2627. end)
  2628. destwin:drawButton(1, 'Rollback', function()
  2629. tk.rcm(workspace, 'Decal')
  2630. tk.rcm(workspace, 'ParticleEmitter')
  2631. end)
  2632. destwin:addSpacing()
  2633. destwin:drawButton(1, '666', function()
  2634. for i,v in next,workspace:children''do
  2635. if(v:IsA'BasePart')then
  2636. me=v;
  2637. bbg=Instance.new('BillboardGui',me);
  2638. bbg.Name='stuf';
  2639. bbg.Adornee=me;
  2640. bbg.Size=UDim2.new(2.5,0,2.5,0)
  2641. --bbg.StudsOffset=Vector3.new(0,2,0)
  2642. tlb=Instance.new'TextLabel';
  2643. tlb.Text='666 666 666 666 666 666';
  2644. tlb.Font='SourceSansBold';
  2645. tlb.FontSize='Size48';
  2646. tlb.TextColor3=Color3.new(1,0,0);
  2647. tlb.Size=UDim2.new(1.25,0,1.25,0);
  2648. tlb.Position=UDim2.new(-0.125,-22,-1.1,0);
  2649. tlb.BackgroundTransparency=1;
  2650. tlb.Parent=bbg;
  2651. end;end;
  2652. --coroutine.wrap(function()while wait''do
  2653. s=Instance.new'Sound';
  2654. s.Parent=workspace;
  2655. s.SoundId='rbxassetid://152840862';
  2656. s.Pitch=1;
  2657. s.Volume=1;
  2658. s.Looped=true;
  2659. s:play();
  2660. --end;end)();
  2661. function xds(dd)
  2662. for i,v in next,dd:children''do
  2663. if(v:IsA'BasePart')then
  2664. v.BrickColor=BrickColor.new'Really black';
  2665. v.TopSurface='Smooth';
  2666. v.BottomSurface='Smooth';
  2667. s=Instance.new('SelectionBox',v);
  2668. s.Adornee=v;
  2669. s.Color=BrickColor.new'Really red';
  2670. a=Instance.new('PointLight',v);
  2671. a.Color=Color3.new(1,0,0);
  2672. a.Range=15;
  2673. a.Brightness=5;
  2674. f=Instance.new('Fire',v);
  2675. f.Size=19;
  2676. f.Heat=22;
  2677. end;
  2678. game.Lighting.TimeOfDay=0;
  2679. game.Lighting.Brightness=0;
  2680. game.Lighting.ShadowColor=Color3.new(0,0,0);
  2681. game.Lighting.Ambient=Color3.new(1,0,0);
  2682. game.Lighting.FogEnd=200;
  2683. game.Lighting.FogColor=Color3.new(0,0,0);
  2684. local dec = 'http://www.roblox.com/asset/?id=19399245';
  2685. local fac = {'Front', 'Back', 'Left', 'Right', 'Top', 'Bottom'}
  2686. --coroutine.wrap(function()
  2687. --for _,__ in pairs(fac) do
  2688. --local ddec = Instance.new("Decal", v)
  2689. --ddec.Face = __
  2690. --ddec.Texture = dec
  2691. --end end)()
  2692. if #(v:GetChildren())>0 then
  2693. xds(v)
  2694. end
  2695. end
  2696. end
  2697. xds(game.Workspace)
  2698. end)
  2699. destwin:drawButton(1, 'Troll', function()
  2700. topkek.tools.util.recurseUltimate('48308661')
  2701. tk.play(154664102)
  2702. end)
  2703. destwin:addSpacing()
  2704. destwin:drawButton(1/2,'Colorize',function() -- when u skid off variable XDDDDDpranked
  2705. local materiallist =
  2706. {Enum.Material.Plastic,Enum.Material.Wood,Enum.Material.Slate,Enum.Material.Concrete,Enum.Material.CorrodedMetal,
  2707. Enum.Material.DiamondPlate,Enum.Material.Foil,Enum.Material.Grass,
  2708. Enum.Material.Ice,Enum.Material.Marble,Enum.Material.Granite,Enum.Material.Brick,
  2709. Enum.Material.Pebble,Enum.Material.Sand,Enum.Material.Sand,
  2710. Enum.Material.Fabric,Enum.Material.SmoothPlastic,Enum.Material.Metal,Enum.Material.WoodPlanks,Enum.Material.Neon,Enum.Material.Cobblestone}
  2711. local function r(where)
  2712. for _,v in pairs (where:GetChildren()) do
  2713. if v:IsA("BasePart") then
  2714. spawn(function() while wait(0.1) do v.Material = materiallist[math.random(#materiallist)] wait() end end) end r(v) end end r(workspace)
  2715. end)
  2716. destwin:drawButton(1/2,'Materialize',function()
  2717. local function r(where)
  2718. for _,v in pairs (where:GetChildren()) do
  2719. if v:IsA("BasePart") then
  2720. spawn(function() while wait(0.1) do v.Transparency = math.random(0,1) wait() end end) end r(v) end end r(workspace)
  2721. end)
  2722. destwin:drawButton(1/2,'Meshify',function()
  2723. local enums={
  2724. Enum.MeshType.Head;
  2725. Enum.MeshType.Torso;
  2726. Enum.MeshType.Wedge;
  2727. Enum.MeshType.Brick;
  2728. Enum.MeshType.Sphere;
  2729. Enum.MeshType.Cylinder;
  2730. }
  2731. tk.rcf('BasePart',function(o)
  2732. local mesh = Instance.new('SpecialMesh', o)
  2733. mesh.MeshType = enums[math.random(1,#enums)]
  2734. end)
  2735. end)
  2736. destwin:drawButton(1/2,'Loop-Meshify',function()
  2737. coroutine.wrap(function()
  2738. while true do
  2739. local enums={
  2740. Enum.MeshType.Head;
  2741. Enum.MeshType.Torso;
  2742. Enum.MeshType.Wedge;
  2743. Enum.MeshType.Brick;
  2744. Enum.MeshType.Sphere;
  2745. Enum.MeshType.Cylinder;
  2746. }
  2747. tk.rcf('BasePart',function(o)
  2748. if o:FindFirstChild("Mesh") then o.Mesh:Destroy() end
  2749. local mesh = Instance.new('SpecialMesh', o)
  2750. mesh.MeshType = enums[math.random(1,#enums)]
  2751. end)
  2752. wait(0.5)
  2753. end
  2754. end)()
  2755. end)
  2756. destwin:addSpacing()
  2757. destwin:drawButton(1, 'Rotations', function()
  2758. tk.rcf('BasePart', function(o)
  2759. o.Rotation = Vector3.new(math.random(0,180),math.random(0,180),math.random(0,180))
  2760. end)
  2761. end)
  2762. destwin:drawButton(1, 'Collisions', function()
  2763. tk.rcf('BasePart', function(o)
  2764. o.CanCollide = false
  2765. end)
  2766. end)
  2767. destwin:drawButton(1, 'Velocity', function()
  2768. tk.rcf('BasePart', function(o)
  2769. o.Velocity = Vector3.new(math.random(0,180),math.random(0,180),math.random(0,180))
  2770. end)
  2771. end)
  2772. destwin:drawButton(1, 'Invisiblity', function()
  2773. tk.rcf('BasePart', function(o)
  2774. o.Transparency = 1
  2775. end)
  2776. end)
  2777. destwin:drawButton(1, 'BreakJoints', function()
  2778. tk.rcf('Model', function(o)
  2779. o:BreakJoints()
  2780. end)
  2781. end)
  2782. destwin:drawButton(1, 'Forces', function()
  2783. tk.rcf('BasePart', function(o)
  2784. local bf = Instance.new("BodyForce", o)
  2785. bf.Force = Vector3.new(math.random(0,180)*5,math.random(0,180)*5,math.random(0,180)*5)
  2786. end)
  2787. end)
  2788. destwin:drawButton(1, 'Brightness', function()
  2789. tk.rcf('BasePart', function(o)
  2790. local light = Instance.new("SpotLight", o)
  2791. light.Brightness = 9e9
  2792. light.Range = 60
  2793. end)
  2794. end)
  2795. --// CATALOG //--
  2796. local catwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Catalog').Container)
  2797. local page, currentkeyword = 1, ""
  2798. local searchbar, search, makeCatalog, res = 0, 0, 0, {}
  2799. local searchbar = catwin:drawTextBox(2/3,'')
  2800. local search = catwin:drawButton(1/3, 'Search', function()
  2801. page = 1
  2802. currentkeyword = searchbar.Text
  2803. makeCatalog(currentkeyword, page)
  2804. end)
  2805. local previous = catwin:drawButton(1/2, 'Previous Page', function()
  2806. if page > 1 then
  2807. page = page - 1
  2808. makeCatalog(currentkeyword, page)
  2809. end
  2810. end)
  2811. local previous = catwin:drawButton(1/2, 'Next Page', function()
  2812. if page >= 1 then
  2813. page = page + 1
  2814. makeCatalog(currentkeyword, page)
  2815. end
  2816. end)
  2817. local catalog_start = catwin:getDrawY()
  2818. function split(str,divider)
  2819. local found = ""
  2820. local results = {}
  2821. for i=1,string.len(str) do
  2822. if (string.lower(string.sub(str,i,i)) == string.lower(divider)) then
  2823. table.insert(results, found)
  2824. found = ""
  2825. else
  2826. found = found..string.sub(str,i,i)
  2827. end
  2828. end
  2829. table.insert(results, found)
  2830. return results
  2831. end
  2832. function GetName(nm)
  2833. local spl = split(nm," ")
  2834. local a,b,c,d,e=spl[1] or "",spl[2] or "",spl[3] or "", spl[4] or "", spl[5] or ""
  2835. return (a.." "..b.." "..c.." "..d.." "..e)
  2836. end
  2837. function makeCatalog(keyword, page)
  2838. local endpoint = "http://search.roblox.com/catalog/json?Category=6&Keyword="..keyword.."&IncludeNotForSale=false&ResultsPerPage=10&PageNumber="..tostring(page)
  2839. local results = game:HttpGet(endpoint, true)
  2840. local parse = game:GetService('HttpService'):JSONDecode(results)
  2841. for i, v in pairs(res) do
  2842. v:Destroy()
  2843. end
  2844. catwin:setDrawY(catalog_start)
  2845. catwin:addSpacing()
  2846. for i, v in pairs(parse) do
  2847. local img = catwin:drawImage(1/2, 'https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId='..tostring(v['AssetId']), 50)
  2848. local below = topkek.tools.util.Object("TextButton", {
  2849. Parent = img;
  2850. BackgroundColor3 = Color3.new(163/255, 57/255, 57/255);
  2851. BorderSizePixel = 0;
  2852. Position = UDim2.new(0, -45, 1, 5);
  2853. Size = UDim2.new(0,img.AbsoluteSize.X, 0, 20);
  2854. Font = 'SourceSans';
  2855. FontSize = 'Size14';
  2856. Text = GetName(v['Name']);
  2857. TextSize = 14;
  2858. TextColor3 = color3(199, 199, 199);
  2859. TextStrokeTransparency = 0.5;
  2860. ClipsDescendants = true;
  2861. })
  2862. below.MouseButton1Down:connect(function()
  2863. local Model = Instance.new("Model", workspace)
  2864. game:GetObjects('rbxassetid://'..tostring(v['AssetId']))[1].Parent = Model
  2865. Model:MakeJoints()
  2866. Model:MoveTo(topkek.lplr.Character.Head.Position)
  2867. end)
  2868. img.Size=UDim2.new(0,50,0,50)
  2869. img.Position=img.Position+UDim2.new(0,45,0,0)
  2870. if (i%2)==0 then
  2871. catwin:setDrawY(catwin:getDrawY() + 25)
  2872. end
  2873. if (i==10) then
  2874. catwin.main.CanvasSize = catwin.main.CanvasSize + UDim2.new(0,0,0,25)
  2875. end
  2876. table.insert(res,img)
  2877. end
  2878. end
  2879. makeCatalog("", 1)
  2880. --// CMDS //--
  2881. cmdwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Commands').Container)
  2882. count = 0
  2883. for _, _ in pairs(cmd.commands.store) do count = count + 1 end
  2884. cmdwin:drawText(1, tostring(count) .. " Commands")
  2885. cmdwin:drawText(1, 'Chat Prefix: /')
  2886. local cmdlist = cmdwin:drawScrollingContainer(260)
  2887. for i, v in pairs(cmd.commands.fmtstore) do
  2888. local xfmt = {}
  2889. local str = " ;" .. i .. " "
  2890. for form in v:gmatch("[^%%]+") do
  2891. if form ~= 'cmd' then
  2892. if form == 'inf' then form = 'str' end
  2893. str = str .. "{" .. form .. "} "
  2894. end
  2895. end
  2896. cmdlist:drawText(1, str)
  2897. end
  2898. --// MUSIC //--
  2899. musicwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Music').Container)
  2900. Sounds = {
  2901. {"caramell", 2303479};
  2902. {"epic", 27697743};
  2903. {"rick", 2027611};
  2904. {"halo", 1034065};
  2905. {"pokemon", 1372261};
  2906. {"cursed", 1372257};
  2907. {"extreme", 11420933};
  2908. {"awaken", 27697277};
  2909. {"alone", 27697392};
  2910. {"mario", 1280470};
  2911. {"choir", 1372258};
  2912. {"chrono" ,1280463};
  2913. {"dotr", 11420922};
  2914. {"entertain", 27697267};
  2915. {"fantasy", 1280473};
  2916. {"final", 787};
  2917. {"organ", 11231513};
  2918. {"tunnel", 9650822}
  2919. }
  2920.  
  2921. local cursel
  2922. local xcursel = 0
  2923. scr = musicwin:drawScrollingContainer(230)
  2924. for i, v in pairs(Sounds) do
  2925. scr:drawButton(1, v[1] .. " - " .. tonumber(v[2]), function()
  2926. cursel.Text = "Currently Selected - " .. v[1]
  2927. xcursel = v[2]
  2928. end)
  2929. end
  2930.  
  2931. cursel = musicwin:drawText(1, "Currently Selected - None")
  2932. local setInp
  2933. musicwin:drawButton(1/3, "Set", function()
  2934. if tonumber(setInp.Text) then
  2935. cursel.Text = "Currently Selected - " .. setInp.Text
  2936. xcursel = tonumber(setInp.Text)
  2937. end
  2938. end)
  2939. setInp = musicwin:drawTextBox(2/3, '')
  2940. musicwin:drawButton(1, "Play", function()
  2941. tk.rcm(game, 'Sound')
  2942. tk.play(xcursel)
  2943. end)
  2944. musicwin:drawButton(1, "Stop", function()
  2945. tk.rcm(game, 'Sound')
  2946. end)
  2947. --// FACES //--
  2948. facwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Faces').Container)
  2949. local faces = {
  2950. {name='Rofl',id=47595647},
  2951. {name='Sparta',id=74142203},
  2952. {name='UJelly',id=48989071},
  2953. {name='Troll',id=45120559},
  2954. {name='Horse',id=62079221},
  2955. {name='Angry',id=48258623},
  2956. {name='Okey',id=62830600},
  2957. {name='Yeaw',id=53646377},
  2958. {name='Here',id=62677045},
  2959. {name='Har',id=48260066},
  2960. {name='Baby Sun',id=47596170},
  2961. {name='LOL',id=48293007},
  2962. {name='Sad',id=53645378},
  2963. {name='Joseph Stalin',id=48290678},
  2964. {name='Doge',id=130742396},
  2965. {name='Forever Alone',id=156886272},
  2966. {name='RickRoll',id=5104631},
  2967. {name='Jim Carrey',id=74885351},
  2968. {name='Meh IRL',id=237553381}
  2969. }
  2970. local cursel, xcursel = nil, 0
  2971. faclist = facwin:drawScrollingContainer(260)
  2972. for i,v in pairs(faces) do
  2973. local btn = faclist:drawButton(1, v['name'], function()
  2974. xcursel = v['id']
  2975. cursel.Text = 'Currently Selected: ' .. v['name']
  2976. end)
  2977. topkek.tools.gui:addLeftIcon(btn,'rbxassetid://'..tostring(v['id']),20)
  2978. end
  2979. cursel = facwin:drawText(1, 'Currently Selected: None')
  2980. facwin:drawButton(1, 'Wear', function()
  2981. if not (xcursel == 0) then
  2982. if topkek.lplr.Character then
  2983. tk.rcm(topkek.lplr.Character, 'Accessory')
  2984. tk.rcm(topkek.lplr.Character, 'Hat')
  2985. topkek.tools.util.applyFace(xcursel)
  2986. end
  2987. end
  2988. end)
  2989. --// SETTINGS // --
  2990. setwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Settings').Container)
  2991. setwin:drawText(1, 'Patch: ' .. topkek.patch)
  2992. setwin:drawText(1, 'Devnote: foh skids')
  2993. setwin:drawText(1, [[
  2994. === CREDITS ===
  2995.  
  2996. Variable - retard that created Stella
  2997. KrystalTeam - provided critical design tips & advice
  2998. Circumvention - lol joey salads
  2999.  
  3000. Thanks to everyone that supported T0PK3K 4.0!
  3001.  
  3002. ]], 260)
  3003. --// BANLIST //--
  3004. banwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Banlist').Container)
  3005. local plrBanInp
  3006. banwin:drawButton(1/3, 'Add', function()
  3007. topkek.settings.get()
  3008. table.insert(topkek.settingsTable['Bans'], plrBanInp.Text)
  3009. topkek.settings.write()
  3010. UpdateBanlist()
  3011. end)
  3012. plrBanInp = banwin:drawTextBox(2/3, '')
  3013. banCont = banwin:drawScrollingContainer(288)
  3014. function UpdateBanlist(x)
  3015. topkek.settings.get()
  3016. local wl = x or topkek.settingsTable['Bans']
  3017. for i,v in pairs(banCont:GetChildren()) do
  3018. v:Destroy()
  3019. end
  3020. banCont:setDrawY(3)
  3021. for i,v in pairs(wl) do
  3022. banCont:drawText(2/3, v)
  3023. banCont:drawButton(1/3, 'Remove', function()
  3024. for x, m in pairs(wl) do
  3025. if m == v then
  3026. table.remove(topkek.settingsTable['Bans'], x)
  3027. topkek.settings.write()
  3028. UpdateBanlist()
  3029. topkek.banmgr.bans = topkek.settingsTable['Bans']
  3030. end
  3031. end
  3032. end)
  3033. end
  3034. end
  3035. UpdateBanlist()
  3036. --// HATS //--
  3037. hatwin = topkek.tools.gui:hookContainer(topkek.tools.util.getContainer('Hats').Container)
  3038. local hats={
  3039. {name='Dominus Empyreus',id=21070012},
  3040. {name='Dominus Vespertilio',id=96103379},
  3041. {name='Dominus Infernus',id=31101391},
  3042. {name='Dominus Rex',id=250395631},
  3043. {name='Dominus Frigidus',id=48545806},
  3044. {name='Dominus Astra',id=162067148},
  3045. {name='Dominus Aureus',id=138932314},
  3046. {name='DIY Dominus Empyreus',id=151789690},
  3047. {name='Dominus Messor',id=64444871},
  3048. {name='Demon Skeleton Wings',id=133554007},
  3049. {name='Gilded Wings of Glory',id=250405532},
  3050. {name='Majestic Ice Wings',id=188702967},
  3051. {name='Black Wings',id=215719598},
  3052. {name='Clockworks Shades',id=11748356},
  3053. {name='Faerie Wings',id=19399896},
  3054. {name='Orinthian Wings',id=223751505},
  3055. {name='Clockworks Headphones',id=1235488},
  3056. {name='Perfectly Legitimate Business Hat',id=19027209},
  3057. {name='Sparkling Angel Wings',id=192557913},
  3058. {name='Commander Crows Wings',id=133553855},
  3059. {name='Sunfire Wings',id=158068470},
  3060. {name='Royal Faerie Wings',id=119916756},
  3061. {name='Wings of Freedom',id=164174048},
  3062. {name='Firebrand Wings',id=128160626},
  3063. {name='Frozen Wings',id=136758613},
  3064. {name='Webbed Wings',id=120507280},
  3065. {name='Gargoyle Wings',id=120507201},
  3066. {name='Bat Wings',id=19399858},
  3067. {name='Wings of Fire',id=136758532},
  3068. {name='Headrow',id=1082935},
  3069. {name='Rubber Duckie',id=9254254},
  3070. {name='Valkyrie Helm',id=1365767},
  3071. {name='Hockey Mask',id=5161514}}
  3072. local searchi = hatwin:drawButton(1, '', function()end)
  3073. dropx = GUI.DropDown.New(UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), searchi, {'All'})
  3074. function fixPlayerDropi()
  3075. local t = {'All'}
  3076. for i, v in pairs(game.Players:GetPlayers()) do
  3077. table.insert(t, v.Name)
  3078. end
  3079. dropx.SetTable(t)
  3080. end
  3081. game.Players.PlayerAdded:connect(function()
  3082. fixPlayerDropi()
  3083. end)
  3084. game.Players.PlayerRemoving:connect(function()
  3085. fixPlayerDropi()
  3086. end)
  3087. local eval = 'All'
  3088. dropx.Changed(function(p) eval = p end)
  3089. fixPlayerDrop()
  3090.  
  3091. local hatInp
  3092. hatlist = hatwin:drawScrollingContainer(260)
  3093. for i,v in pairs(hats) do
  3094. hatlist:drawButton(1, v['name'], function()
  3095. hatInp.Text = tostring(v['id'])
  3096. end)
  3097. end
  3098. hatwin:drawButton(1/3, 'Wear', function()
  3099. local hat = game:GetObjects("rbxassetid://"..tonumber(hatInp.Text))[1]
  3100. tk.dp(eval, function(x)
  3101. if x.Character then
  3102. hat:Clone().Parent = x.Character
  3103. end
  3104. end)
  3105. end)
  3106.  
  3107.  
  3108. hatInp = hatwin:drawTextBox(2/3, '')
  3109. topkek.tools.animator.initialAnimation()
  3110. topkek.banmgr.init()
Add Comment
Please, Sign In to add comment