DEXLTH

topkek 4

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