Guest User

Untitled

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