FireyBFDI

Untitled

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