Advertisement
LilPastebin

Announcemnets

Aug 18th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.62 KB | None | 0 0
  1. local Model = Instance.new("Model")
  2. local WaitForChild = Model.WaitForChild
  3. local GetService = game.GetService
  4.  
  5. local gui = script.Parent
  6. local Main = gui:WaitForChild('Main')
  7. local Blacklist = WaitForChild(gui,'BlacklistError')
  8. local NotOwned = WaitForChild(gui,'PurchaseError')
  9. local tabs = WaitForChild(gui,'Tabs')
  10.  
  11. local registry = {}
  12. local buttonfunctions = {}
  13. local functions = { }
  14. local menu = {}
  15. local Settings = {}
  16. local TabsTable = {
  17.    
  18.     ['AS'] = WaitForChild(tabs, 'AimAndShoot'),
  19.     ['V'] = WaitForChild(tabs, 'Visuals'),
  20.     ['Sk'] = WaitForChild(tabs, 'Skins'),
  21.     ['Mi'] = WaitForChild(tabs, 'Misc'),
  22.     ['Pl'] = WaitForChild(tabs, 'Players'),
  23.    
  24.    
  25. }
  26.  
  27.  
  28.  
  29. function functions:SetUpSetting(Name,Value)
  30.     Settings[Name] = Value
  31. end
  32. function functions:Aimassist(force)
  33.     print('enable')
  34. end
  35.  
  36. function menu:OpenTab(Tab)
  37.     local TabFolder = TabsTable[Tab]
  38.     if TabFolder then
  39.         menu:CloseCurrentTab()
  40.         local Children = TabFolder:GetChildren()
  41.         if #Children > 1 then
  42.            
  43.         elseif #Children == 1 then
  44.             Main.Holder.Home.Visible = false
  45.             local T = Children[1]:Clone()
  46.             T.Parent = Main.Holder
  47.             T.Visible = true
  48.             Settings['CurrentTab1'] = TabFolder.Name
  49.             Settings['CurrentTab2'] = T.Name
  50.         end
  51.     end
  52. end
  53.  
  54. function menu:CloseCurrentTab()
  55.     if Settings['CurrentTab1'] ~= 'Home' and Settings['CurrentTab2'] ~= nil then
  56.         Settings['CurrentTab1'] = 'Home'
  57.         Main.Holder[Settings['CurrentTab2']]:Remove()
  58.         Settings['CurrentTab2'] = nil
  59.         Main.Holder.Home.Visible = true
  60.     end
  61. end
  62.  
  63. functions:SetUpSetting('CanceBlacklist',nil,function()
  64.     Blacklist.Visible = false
  65.     pcall(function()
  66.         GetService(game, 'Players').LocalPlayer:Kick('Blacklisted!')
  67.         while true do
  68.            
  69.         end
  70.     end)
  71. end)
  72.  
  73. functions:SetUpSetting('CurrentTab1','Home')
  74. functions:SetUpSetting('CurrentTab2',nil)
  75. functions:SetUpSetting('Se',function()
  76.    
  77. end)
  78. functions:SetUpSetting('V',function()
  79.     menu:OpenTab('V')
  80. end)
  81. functions:SetUpSetting('AS',function()
  82.     menu:OpenTab('AS')
  83. end)
  84. functions:SetUpSetting('Mi',function()
  85.     menu:OpenTab('Mi')
  86. end)
  87. functions:SetUpSetting('Pl',function()
  88.     menu:OpenTab('Pl')
  89. end)
  90. functions:SetUpSetting('Sk',function()
  91.     menu:OpenTab('Sk')
  92. end)
  93. functions:SetUpSetting('HomeButtonReturn',function()
  94.     menu:CloseCurrentTab()
  95.     Main.Holder.Home.Visible = true
  96. end)
  97.  
  98. local function RegisterFunctionInstances()
  99.     for i,v in pairs(gui:GetDescendants()) do
  100.         if v:IsA("TextButton") or v:IsA("ImageButton") then
  101.             if Settings[v.Name] then
  102.                 print('Button has function')
  103.                 v.MouseButton1Click:connect(Settings[v.Name])
  104.             end
  105.         end
  106.     end
  107. end
  108.  
  109. local function Start()
  110.    
  111. end
  112.  
  113. RegisterFunctionInstances()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement