Guest User

Untitled

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