Advertisement
SkeletalScripts

Future MC to RBLX UI Lib

Mar 30th, 2020
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.23 KB | None | 0 0
  1. local Lib = {}
  2.  
  3. local FutureUI = Instance.new("ScreenGui")
  4.  
  5. FutureUI.Name = "Future UI"
  6. FutureUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  7. FutureUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  8. FutureUI.ResetOnSpawn = false
  9. local Logos = Instance.new("ImageLabel")
  10.  
  11. Logos.Name = "Logos"
  12.     Logos.Parent = FutureUI
  13.     Logos.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  14.     Logos.BackgroundTransparency = 1.000
  15.     Logos.Size = UDim2.new(0, 176, 0, 101)
  16.     Logos.Visible = true
  17.     Logos.Image = "http://www.roblox.com/asset/?id=4832322413"
  18.     local am = 0
  19. for i = 1,10 do
  20.     Logos.ImageTransparency = am
  21.     am = am + 0.1
  22.     wait(0.05)
  23. end
  24. Logos.Visible = false
  25. wait(0.2)
  26. local Title_2 = Instance.new("TextLabel")
  27.     Title_2.Name = "Title"
  28.     Title_2.Parent = FutureUI
  29.     Title_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  30.     Title_2.BackgroundTransparency = 1.000
  31.     Title_2.Size = UDim2.new(0, 120, 0, 18)
  32.     Title_2.Font = Enum.Font.GothamBold
  33.     Title_2.Text = "Future v ROBLOX"
  34.     Title_2.TextColor3 = Color3.fromRGB(169, 37, 39)
  35.     Title_2.TextScaled = true
  36.     Title_2.TextSize = 14.000
  37.     Title_2.TextWrapped = true
  38.    
  39. function Lib:CreateWindow(name)
  40.     wait(0.6)
  41.     local pos = 0.015
  42.     local get =  FutureUI:GetChildren()
  43.     if FutureUI:FindFirstChild("MContainer") ~= nil then -- checking if there is already a menu
  44.         for i = 1, #get do
  45.             pos = pos + 0.125
  46.         end
  47.     else
  48.         pos = 0.015
  49.     end
  50.     local MContainer = Instance.new("Frame")
  51.     local Title = Instance.new("TextLabel")
  52.     local ImageButton = Instance.new("ImageButton")
  53.     local Container = Instance.new("Frame")
  54.     local UIListLayout_2 = Instance.new("UIListLayout")
  55.     MContainer.Name = "MContainer"
  56.     MContainer.Parent = FutureUI
  57.     MContainer.BackgroundColor3 = Color3.fromRGB(194, 42, 45)
  58.     MContainer.Position = UDim2.new(pos, 0, 0.0256776027, 0)
  59.     MContainer.Size = UDim2.new(0, 150, 0, 26)
  60.    
  61.     Title.Name = "Title"
  62.     Title.Parent = MContainer
  63.     Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  64.     Title.BackgroundTransparency = 1.000
  65.     Title.Size = UDim2.new(0.800000012, 0, 1, 0)
  66.     Title.Font = Enum.Font.GothamBold
  67.     Title.Text = "Exploiting is fun"
  68.     Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  69.     Title.TextScaled = true
  70.     Title.TextSize = 14.000
  71.     Title.TextWrapped = true
  72.     Title.TextXAlignment = Enum.TextXAlignment.Left
  73.    
  74.     ImageButton.Parent = MContainer
  75.     ImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  76.     ImageButton.BackgroundTransparency = 1.000
  77.     ImageButton.BorderSizePixel = 0
  78.     ImageButton.Position = UDim2.new(0.800000012, 0, 0, 0)
  79.     ImageButton.Size = UDim2.new(0, 30, 0, 26)
  80.     ImageButton.Image = "http://www.roblox.com/asset/?id=4832349921"
  81.     ImageButton.ScaleType = Enum.ScaleType.Fit
  82.    
  83.     Container.Name = "Container"
  84.     Container.Parent = MContainer
  85.     Container.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
  86.     Container.BackgroundTransparency = 0.600
  87.     Container.Position = UDim2.new(0, 0, 1, 0)
  88.     Container.Size = UDim2.new(0, 150, 0, 0)
  89.     Container.ClipsDescendants = true
  90.    
  91.    
  92.     UIListLayout_2.Parent = Container
  93.     UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  94.    
  95.    
  96.     local N00B = {}
  97.    
  98.     function N00B:Hack(name,option,callback)
  99.         callback = callback or function() end
  100.         local Button = Instance.new("TextButton")
  101.        
  102.         Button.Name = "Button"
  103.         Button.Parent = Container
  104.         Button.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
  105.         Button.BackgroundTransparency = 0.600
  106.         Button.BorderColor3 = Color3.fromRGB(0, 0, 0)
  107.         Button.Size = UDim2.new(0, 150, 0, 26)
  108.         Button.Font = Enum.Font.SourceSansSemibold
  109.         Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  110.         Button.TextScaled = true
  111.         Button.TextSize = 14.000
  112.         Button.TextWrapped = true
  113.         Button.TextXAlignment = Enum.TextXAlignment.Left
  114.         Button.Text = name
  115.         Container.Size.Y.Offset = Container.Size.Y.Offset + Button.Size.Y.Offset
  116.        
  117.        
  118.         local togg = 0
  119.         Button.MouseButton1Click:Connect(function()
  120.             if option == "Toggle" then
  121.                 if togg == 0 then
  122.                     togg = 1
  123.                     Button.BackgroundColor3 = Color3.fromRGB(194, 42, 45)
  124.                     Button.BackgroundTransparency = 0.4
  125.                     callback()
  126.                 else
  127.                     togg =  0
  128.                     Button.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
  129.                     Button.BackgroundTransparency = 0.6
  130.                 end
  131.             elseif option == "Button" then
  132.                 Button.BackgroundColor3 = Color3.fromRGB(194, 42, 45)
  133.                 local tim = 1
  134.                 for i = 1,10 do
  135.                     wait(0.005)
  136.                     Button.BackgroundTransparency = tim
  137.                     tim = tim - 0.1
  138.                 end
  139.                 callback()
  140.                 for i = 1,10 do
  141.                     wait(0.005)
  142.                     Button.BackgroundTransparency = tim
  143.                     tim = tim + 0.1
  144.                 end
  145.                 for i = 1,4 do
  146.                     wait(0.005)
  147.                     Button.BackgroundTransparency = tim
  148.                     tim = tim - 0.1
  149.                 end
  150.                 Button.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
  151.  
  152.             end
  153.         end)
  154.         local op = true
  155.         local rot = 180
  156.         local save = Container.Size
  157.         ImageButton.MouseButton1Click:Connect(function()
  158.             if op == false then
  159.                 op = true
  160.                 for i = 1,45 do
  161.                     wait(0.01)
  162.                     ImageButton.Rotation = rot
  163.                     rot = rot + 4
  164.                 end
  165.                 Container:TweenSize(save, "Out", 4,0.5,false,nil)
  166.             else
  167.                 op = false
  168.                 for i = 1,45 do
  169.                     wait(0.01)
  170.                     ImageButton.Rotation = rot
  171.                     rot = rot - 4
  172.                 end
  173.                 Container:TweenSize(UDim2.new(0,150,0,0), "In", 4,0.5,false,nil)
  174.             end
  175.         end)
  176.     end
  177.    
  178.     return N00B;
  179. end
  180.  
  181. return Lib;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement