Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Model = Instance.new("Model")
- local WaitForChild = Model.WaitForChild
- local GetService = game.GetService
- local gui = script.Parent
- local Main = gui:WaitForChild('Main')
- local Blacklist = WaitForChild(gui,'BlacklistError')
- local NotOwned = WaitForChild(gui,'PurchaseError')
- local tabs = WaitForChild(gui,'Tabs')
- local registry = {}
- local buttonfunctions = {}
- local functions = { }
- local menu = {}
- local Settings = {}
- local TabsTable = {
- ['AS'] = WaitForChild(tabs, 'AimAndShoot'),
- ['V'] = WaitForChild(tabs, 'Visuals'),
- ['Sk'] = WaitForChild(tabs, 'Skins'),
- ['Mi'] = WaitForChild(tabs, 'Misc'),
- ['Pl'] = WaitForChild(tabs, 'Players'),
- }
- function functions:SetUpSetting(Name,Value)
- Settings[Name] = Value
- end
- function functions:Aimassist(force)
- print('enable')
- end
- function menu:OpenTab(Tab)
- local TabFolder = TabsTable[Tab]
- if TabFolder then
- menu:CloseCurrentTab()
- local Children = TabFolder:GetChildren()
- if #Children > 1 then
- elseif #Children == 1 then
- Main.Holder.Home.Visible = false
- local T = Children[1]:Clone()
- T.Parent = Main.Holder
- T.Visible = true
- Settings['CurrentTab1'] = TabFolder.Name
- Settings['CurrentTab2'] = T.Name
- end
- end
- end
- function menu:CloseCurrentTab()
- if Settings['CurrentTab1'] ~= 'Home' and Settings['CurrentTab2'] ~= nil then
- Settings['CurrentTab1'] = 'Home'
- Main.Holder[Settings['CurrentTab2']]:Remove()
- Settings['CurrentTab2'] = nil
- Main.Holder.Home.Visible = true
- end
- end
- functions:SetUpSetting('CanceBlacklist',nil,function()
- Blacklist.Visible = false
- pcall(function()
- GetService(game, 'Players').LocalPlayer:Kick('Blacklisted!')
- while true do
- end
- end)
- end)
- functions:SetUpSetting('CurrentTab1','Home')
- functions:SetUpSetting('CurrentTab2',nil)
- functions:SetUpSetting('Se',function()
- end)
- functions:SetUpSetting('V',function()
- menu:OpenTab('V')
- end)
- functions:SetUpSetting('AS',function()
- menu:OpenTab('AS')
- end)
- functions:SetUpSetting('Mi',function()
- menu:OpenTab('Mi')
- end)
- functions:SetUpSetting('Pl',function()
- menu:OpenTab('Pl')
- end)
- functions:SetUpSetting('Sk',function()
- menu:OpenTab('Sk')
- end)
- functions:SetUpSetting('HomeButtonReturn',function()
- menu:CloseCurrentTab()
- Main.Holder.Home.Visible = true
- end)
- local function RegisterFunctionInstances()
- for i,v in pairs(gui:GetDescendants()) do
- if v:IsA("TextButton") or v:IsA("ImageButton") then
- if Settings[v.Name] then
- print('Button has function')
- v.MouseButton1Click:connect(Settings[v.Name])
- end
- end
- end
- end
- local function Start()
- end
- RegisterFunctionInstances()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement