Yayhey

some gay topkek4.0 thing

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