SkeletalScripts

Lib test

Mar 26th, 2020
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.67 KB | None | 0 0
  1. local Library = {}
  2.  
  3. function Library.new()
  4.     local ScreenGui = Instance.new("ScreenGui")
  5.     local Main = Instance.new("Frame")
  6.  
  7.     local TopBar = Instance.new("Frame")
  8.     local Logo = Instance.new("ImageLabel")
  9.     local Close = Instance.new("ImageButton")
  10.     local Minimize = Instance.new("ImageButton")
  11.     local Title = Instance.new("TextLabel")
  12.     local Noob = Instance.new("ImageLabel")
  13.     local Logo_2 = Instance.new("ImageLabel")
  14.     local Stuff = Instance.new("Frame")
  15.     local ToggleText = Instance.new("TextLabel")
  16.     local Toggle = Instance.new("TextButton")
  17.     local BackBox = Instance.new("TextBox")
  18.     local BackBox_2 = Instance.new("TextLabel")
  19.     local Box = Instance.new("TextBox")
  20.  
  21.     ScreenGui.Parent = game:GetService("CoreGui")
  22.     ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  23.     ScreenGui.ResetOnSpawn = false
  24.    
  25.     Main.Name = "Main"
  26.     Main.Parent = ScreenGui
  27.     Main.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  28.     Main.BorderColor3 = Color3.fromRGB(255, 255, 255)
  29.     Main.Position = UDim2.new(0.232680738, 0, 0.245363772, 0)
  30.     Main.Size = UDim2.new(0, 436, 0, 246)
  31.    
  32.     TopBar.Name = "TopBar"
  33.     TopBar.Parent = Main
  34.     TopBar.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  35.     TopBar.BorderColor3 = Color3.fromRGB(255, 255, 255)
  36.     TopBar.Size = UDim2.new(1, 0, 0, 30)
  37.     TopBar.ZIndex = 3
  38.    
  39.     Logo.Name = "Logo"
  40.     Logo.Parent = TopBar
  41.     Logo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  42.     Logo.BackgroundTransparency = 1.000
  43.     Logo.Size = UDim2.new(0, 40, 1, 0)
  44.     Logo.Image = "http://www.roblox.com/asset/?id=4785385649"
  45.    
  46.     Close.Name = "Close"
  47.     Close.Parent = TopBar
  48.     Close.Active = false
  49.     Close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  50.     Close.BackgroundTransparency = 1.000
  51.     Close.Position = UDim2.new(0.924770653, 0, 0, 0)
  52.     Close.Selectable = false
  53.     Close.Size = UDim2.new(-0.0166666675, 40, 1, 0)
  54.     Close.Image = "http://www.roblox.com/asset/?id=54479706"
  55.    
  56.     Minimize.Name = "Minimize"
  57.     Minimize.Parent = TopBar
  58.     Minimize.Active = false
  59.     Minimize.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  60.     Minimize.BackgroundTransparency = 1.000
  61.     Minimize.Position = UDim2.new(0.849541306, 0, -0.0333333351, 0)
  62.     Minimize.Selectable = false
  63.     Minimize.Size = UDim2.new(-0.0166666675, 40, 1, 0)
  64.     Minimize.Image = "http://www.roblox.com/asset/?id=3517304301"
  65.    
  66.     Title.Name = "Title"
  67.     Title.Parent = TopBar
  68.     Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  69.     Title.BackgroundTransparency = 1.000
  70.     Title.Size = UDim2.new(0.999694288, 0, 0, 30)
  71.     Title.Font = Enum.Font.Highway
  72.     Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  73.     Title.TextScaled = true
  74.     Title.TextSize = 14.000
  75.     Title.TextWrapped = true
  76.    
  77.     Noob.Name = "Noob"
  78.     Noob.Parent = TopBar
  79.     Noob.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  80.     Noob.BackgroundTransparency = 1.000
  81.     Noob.Position = UDim2.new(0.181345552, 0, -0.0333333351, 0)
  82.     Noob.Size = UDim2.new(-0.0166666675, 40, 1, 0)
  83.     Noob.Image = "http://www.roblox.com/asset/?id=4786140330"
  84.    
  85.     Logo_2.Name = "Logo"
  86.     Logo_2.Parent = TopBar
  87.     Logo_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  88.     Logo_2.BackgroundTransparency = 1.000
  89.     Logo_2.Position = UDim2.new(0, 40, 0, 0)
  90.     Logo_2.Size = UDim2.new(0, 40, 1, 0)
  91.     Logo_2.Image = "http://www.roblox.com/asset/?id=4785385911"
  92.  
  93.     local NewWindow = {}
  94.    
  95.     function NewWindow:Category(Name)
  96.         local Nav = Instance.new("TextButton")
  97.         local Selection = Instance.new("ScrollingFrame")
  98.         local UIListLayout = Instance.new("UIListLayout")
  99.         local UIGridLayout = Instance.new("UIGridLayout")
  100.         local GUI = {}
  101.         Selection.BackgroundTransparency = 0
  102.         Selection.ScrollBarThickness = 4
  103.         Selection.BorderSizePixel = 1
  104.         Selection.Size = UDim2.new(0.219999984, 0, 0.880284607, 0)
  105.         Selection.ZIndex = 2
  106.         Selection.CanvasSize = UDim2.new(0, 0, 0, 0)
  107.         Selection.ScrollBarImageColor3 = Color3.fromRGB(118, 118, 121)
  108.         Selection.BottomImage = "rbxassetid://967852042"
  109.         Selection.MidImage = "rbxassetid://967852042"
  110.         Selection.TopImage = "rbxassetid://967852042"
  111.         Selection.ScrollBarImageTransparency = 1
  112.         Selection.Name = "Selection"
  113.         Selection.Parent = Main
  114.         Selection.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  115.         Selection.BorderColor3 = Color3.fromRGB(255, 255, 255)
  116.         Selection.Position = UDim2.new(0, 0, 0.125, 0)
  117.        
  118.         UIListLayout.Parent = Selection
  119.         UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  120.         UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  121.         UIListLayout.Padding = UDim.new(0, 10)
  122.        
  123.         Nav.Name = Name.."Button"
  124.         Nav.Parent = Selection
  125.         Nav.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  126.         Nav.BackgroundTransparency = 1.000
  127.         Nav.Position = UDim2.new(0.25, 0, 0, 0)
  128.         Nav.Size = UDim2.new(1, 0, 0, 30)
  129.         Nav.Font = Enum.Font.Fantasy
  130.         Nav.TextColor3 = Color3.fromRGB(255, 255, 255)
  131.         Nav.TextScaled = true
  132.         Nav.TextSize = 14.000
  133.         Nav.TextWrapped = true
  134.         Nav.Text = Name
  135.        
  136.         Stuff.Name = "Container"
  137.         Stuff.Parent = Main
  138.         Stuff.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  139.         Stuff.BackgroundTransparency = 1.000
  140.         Stuff.Position = UDim2.new(0.219999999, 0, 0.125, 0)
  141.         Stuff.Size = UDim2.new(0, 340, 0, 216)
  142.        
  143.         UIGridLayout.Parent = Stuff
  144.         UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  145.         UIGridLayout.CellPadding = UDim2.new(0, 68, 0, 5)
  146.         UIGridLayout.CellSize = UDim2.new(0, 150, 0, 20)
  147.         function GUI:Section(Name)
  148.         local Sect = Instance.new("TextLabel")
  149.         Sect.Name = "Section"
  150.         Sect.Parent = Stuff
  151.         Sect.BackgroundColor3 = Color3.fromRGB(90, 90, 90)
  152.         Sect.BorderSizePixel = 0
  153.         Sect.Position = UDim2.new(0.25, 0, 0, 0)
  154.         Sect.Size = UDim2.new(1, 0, 0, 30)
  155.         Sect.Font = Enum.Font.Fantasy
  156.         Sect.TextColor3 = Color3.fromRGB(255, 255, 255)
  157.         Sect.TextScaled = true
  158.         Sect.TextSize = 14.000
  159.         Sect.TextWrapped = true
  160.         Sect.Text = Name
  161.     end
  162.     function GUI:Button(Name,Callback)
  163.         Callback = Callback or function() end
  164.         local Button = Instance.new("TextButton")
  165.         Button.Name = "Button"
  166.         Button.Parent = Stuff
  167.         Button.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
  168.         Button.BorderSizePixel = 0
  169.         Button.Position = UDim2.new(0.25, 0, 0, 0)
  170.         Button.Size = UDim2.new(1, 0, 0, 30)
  171.         Button.Font = Enum.Font.Fantasy
  172.         Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  173.         Button.TextScaled = true
  174.         Button.TextSize = 14.000
  175.         Button.TextWrapped = true
  176.         Button.Text = Name
  177.         Button.MouseButton1Click:Connect(Callback)
  178.     end
  179.     return GUI;
  180.     end
  181.    
  182.     return NewWindow;
  183.  
  184.  
  185. --[[
  186. ToggleText.Name = "ToggleText"
  187. ToggleText.Parent = Stuff
  188. ToggleText.Active = true
  189. ToggleText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  190. ToggleText.BackgroundTransparency = 1.000
  191. ToggleText.Position = UDim2.new(0.626068354, 0, 0, 0)
  192. ToggleText.Selectable = true
  193. ToggleText.Size = UDim2.new(0.373931617, 0, 0, 30)
  194. ToggleText.Font = Enum.Font.Fantasy
  195. ToggleText.Text = "Toggle"
  196. ToggleText.TextColor3 = Color3.fromRGB(255, 255, 255)
  197. ToggleText.TextScaled = true
  198. ToggleText.TextSize = 14.000
  199. ToggleText.TextWrapped = true
  200.  
  201. Toggle.Name = "Toggle"
  202. Toggle.Parent = ToggleText
  203. Toggle.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  204. Toggle.BorderColor3 = Color3.fromRGB(255, 255, 255)
  205. Toggle.Position = UDim2.new(0.0500000007, 0, 0, 1)
  206. Toggle.Size = UDim2.new(0.140000001, 0, 0.800000012, 0)
  207. Toggle.Font = Enum.Font.Fantasy
  208. Toggle.Text = " "
  209. Toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  210. Toggle.TextScaled = true
  211. Toggle.TextSize = 14.000
  212. Toggle.TextWrapped = true
  213.  
  214. BackBox.Name = "BackBox"
  215. BackBox.Parent = Stuff
  216. BackBox.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  217. BackBox.BorderSizePixel = 0
  218. BackBox.Position = UDim2.new(0.25, 0, 0, 0)
  219. BackBox.Size = UDim2.new(1, 0, 0, 30)
  220. BackBox.Font = Enum.Font.Fantasy
  221. BackBox.PlaceholderText = "Box"
  222. BackBox.Text = ""
  223. BackBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  224. BackBox.TextScaled = true
  225. BackBox.TextSize = 14.000
  226. BackBox.TextWrapped = true
  227.  
  228. BackBox_2.Name = "BackBox"
  229. BackBox_2.Parent = Stuff
  230. BackBox_2.Active = true
  231. BackBox_2.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  232. BackBox_2.BackgroundTransparency = 1.000
  233. BackBox_2.BorderSizePixel = 0
  234. BackBox_2.Position = UDim2.new(0.25, 0, 0, 0)
  235. BackBox_2.Selectable = true
  236. BackBox_2.Size = UDim2.new(1, 0, 0, 30)
  237. BackBox_2.Font = Enum.Font.Fantasy
  238. BackBox_2.Text = "Text"
  239. BackBox_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  240. BackBox_2.TextScaled = true
  241. BackBox_2.TextSize = 14.000
  242. BackBox_2.TextWrapped = true
  243.  
  244. Box.Name = "Box"
  245. Box.Parent = BackBox_2
  246. Box.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  247. Box.BorderColor3 = Color3.fromRGB(255, 255, 255)
  248. Box.Position = UDim2.new(0.0500000007, 0, 0, 1)
  249. Box.Size = UDim2.new(0.300000012, 0, 0.800000012, 0)
  250. Box.Font = Enum.Font.Fantasy
  251. Box.PlaceholderText = "Box"
  252. Box.Text = ""
  253. Box.TextColor3 = Color3.fromRGB(255, 255, 255)
  254. Box.TextScaled = true
  255. Box.TextSize = 14.000
  256. Box.TextWrapped = true]]--
  257. end
  258.  
  259. return Library;
Advertisement
Add Comment
Please, Sign In to add comment