SkeletalScripts

LE TESt

Mar 18th, 2020
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.75 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.     local Selection = Instance.new("Frame")
  7.     local UIListLayout = Instance.new("UIListLayout")
  8.     local TopBar = Instance.new("Frame")
  9.     local Logo = Instance.new("ImageLabel")
  10.     local Close = Instance.new("ImageButton")
  11.     local Minimize = Instance.new("ImageButton")
  12.     local Title = Instance.new("TextLabel")
  13.     local Noob = Instance.new("ImageLabel")
  14.     local BackBox = Instance.new("TextBox")
  15.     local DropDown = Instance.new("TextButton")
  16.     local Frame_2 = Instance.new("Frame")
  17.     local Button_2 = Instance.new("TextButton")
  18.     local UIListLayout_2 = Instance.new("UIListLayout")
  19.     local Credits = Instance.new("Frame")
  20.     local GiveCredit = Instance.new("TextLabel")
  21.     local Frame = Instance.new("Frame")
  22.     ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  23.     ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  24.     ScreenGui.ResetOnSpawn = false
  25.    
  26.     Main.Name = "Main"
  27.     Main.Parent = ScreenGui
  28.     Main.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  29.     Main.BorderColor3 = Color3.fromRGB(255, 255, 255)
  30.     Main.Position = UDim2.new(0.232680723, 0, 0.245363772, 0)
  31.     Main.Size = UDim2.new(0, 600, 0, 400)
  32.    
  33.     Selection.Name = "Selection"
  34.     Selection.Parent = Main
  35.     Selection.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  36.     Selection.BorderColor3 = Color3.fromRGB(255, 255, 255)
  37.     Selection.Position = UDim2.new(0, 0, 0.075000003, 0)
  38.     Selection.Size = UDim2.new(0.219999999, 0, 0.925000012, 0)
  39.     Selection.ZIndex = 2
  40.    
  41.     UIListLayout.Parent = Selection
  42.     UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  43.     UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  44.     UIListLayout.Padding = UDim.new(0, 10)
  45.    
  46.     TopBar.Name = "TopBar"
  47.     TopBar.Parent = Main
  48.     TopBar.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  49.     TopBar.BorderColor3 = Color3.fromRGB(255, 255, 255)
  50.     TopBar.Size = UDim2.new(1, 0, 0, 30)
  51.     TopBar.ZIndex = 3
  52.    
  53.     Logo.Name = "Logo"
  54.     Logo.Parent = TopBar
  55.     Logo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  56.     Logo.BackgroundTransparency = 1.000
  57.     Logo.Size = UDim2.new(0, 40, 1, 0)
  58.     Logo.Image = "http://www.roblox.com/asset/?id=4785385649"
  59.    
  60.     Close.Name = "Close"
  61.     Close.Parent = TopBar
  62.     Close.Active = false
  63.     Close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  64.     Close.BackgroundTransparency = 1.000
  65.     Close.Position = UDim2.new(0.949999988, 0, 0, 0)
  66.     Close.Selectable = false
  67.     Close.Size = UDim2.new(-0.0166666675, 40, 1, 0)
  68.     Close.Image = "http://www.roblox.com/asset/?id=54479706"
  69.    
  70.     Minimize.Name = "Minimize"
  71.     Minimize.Parent = TopBar
  72.     Minimize.Active = false
  73.     Minimize.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  74.     Minimize.BackgroundTransparency = 1.000
  75.     Minimize.Position = UDim2.new(0.899999976, 0, 0, 0)
  76.     Minimize.Selectable = false
  77.     Minimize.Size = UDim2.new(-0.0166666675, 40, 1, 0)
  78.     Minimize.Image = "http://www.roblox.com/asset/?id=3517304301"
  79.    
  80.     Title.Name = "Title"
  81.     Title.Parent = TopBar
  82.     Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  83.     Title.BackgroundTransparency = 1.000
  84.     Title.Position = UDim2.new(0.116666667, 0, 0, 0)
  85.     Title.Size = UDim2.new(0, 470, 0, 30)
  86.     Title.Font = Enum.Font.Highway
  87.     Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  88.     Title.TextScaled = true
  89.     Title.TextSize = 14.000
  90.     Title.TextWrapped = true
  91.    
  92.     Noob.Name = "Noob"
  93.     Noob.Parent = TopBar
  94.     Noob.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  95.     Noob.BackgroundTransparency = 1.000
  96.     Noob.Position = UDim2.new(0.0666666701, 0, 0, 0)
  97.     Noob.Size = UDim2.new(-0.0166666675, 40, 1, 0)
  98.     Noob.Image = "http://www.roblox.com/asset/?id=4786140330"
  99.    
  100.     local SKiDUi = {}
  101.    
  102.     function SKiDUi:Category(name)
  103.         local Nav = Instance.new("TextButton")
  104.         local UIGridLayout = Instance.new("UIGridLayout")
  105.         Nav.Name = "Nav"
  106.         Nav.Parent = Selection
  107.         Nav.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  108.         Nav.BackgroundTransparency = 1.000
  109.         Nav.Position = UDim2.new(0.25, 0, 0, 0)
  110.         Nav.Size = UDim2.new(1, 0, 0, 20)
  111.         Nav.Font = Enum.Font.Fantasy
  112.         Nav.TextColor3 = Color3.fromRGB(255, 255, 255)
  113.         Nav.TextScaled = true
  114.         Nav.TextSize = 14.000
  115.         Nav.TextWrapped = true
  116.    
  117.        
  118.         Frame.Parent = Main
  119.         Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  120.         Frame.BackgroundTransparency = 1.000
  121.         Frame.Position = UDim2.new(0.219999999, 0, 0.075000003, 0)
  122.         Frame.Size = UDim2.new(0, 468, 0, 370)
  123.         Frame.Name = name.."Frame"
  124.            
  125.         UIGridLayout.Parent = Frame
  126.         UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  127.         UIGridLayout.CellPadding = UDim2.new(0, 68, 0, 5)
  128.         UIGridLayout.CellSize = UDim2.new(0, 200, 0, 20)
  129.        
  130.         Nav.MouseButton1Click:Connect(function()
  131.             for i,v in pairs(Main:GetChildren()) do
  132.                 if v.Name ~= "Credits" or "Selection" or "TopBar" then
  133.                     v.Visible = false
  134.                     Frame.Visible = true
  135.                 end
  136.             end
  137.         end)
  138.     end
  139.    
  140.     function SKiDUi:Button(name,callback)
  141.         callback = callback or function() end
  142.         local Button = Instance.new("TextButton")
  143.         Button.Name = "Button"
  144.         Button.Text = name
  145.         Button.Parent = Frame
  146.         Button.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  147.         Button.BorderSizePixel = 0
  148.         Button.Position = UDim2.new(0.25, 0, 0, 0)
  149.         Button.Size = UDim2.new(1, 0, 0, 30)
  150.         Button.Font = Enum.Font.Fantasy
  151.         Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  152.         Button.TextScaled = true
  153.         Button.TextSize = 14.000
  154.         Button.TextWrapped = true
  155.         Button.MouseButton1Click:Connect(callback)
  156.     end
  157.    
  158.     function SKiDUi:Toggle(name,callback)
  159.         callback = callback or function() end
  160.         local toggle = 0
  161.         local ToggleText = Instance.new("TextLabel")
  162.         local Toggle = Instance.new("TextButton")
  163.         ToggleText.Name = "ToggleText"
  164.         ToggleText.Parent = Frame
  165.         ToggleText.Active = true
  166.         ToggleText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  167.         ToggleText.BackgroundTransparency = 1.000
  168.         ToggleText.Position = UDim2.new(0.626068354, 0, 0, 0)
  169.         ToggleText.Selectable = true
  170.         ToggleText.Size = UDim2.new(0.373931617, 0, 0, 30)
  171.         ToggleText.Font = Enum.Font.Fantasy
  172.         ToggleText.Text = name
  173.         ToggleText.TextColor3 = Color3.fromRGB(255, 255, 255)
  174.         ToggleText.TextScaled = true
  175.         ToggleText.TextSize = 14.000
  176.         ToggleText.TextWrapped = true
  177.        
  178.         Toggle.Name = "Toggle"
  179.         Toggle.Parent = ToggleText
  180.         Toggle.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  181.         Toggle.BorderColor3 = Color3.fromRGB(255, 255, 255)
  182.         Toggle.Position = UDim2.new(0, 1, 0, 1)
  183.         Toggle.Size = UDim2.new(0.0900000036, 0, 0, 18)
  184.         Toggle.Font = Enum.Font.Fantasy
  185.         Toggle.Text = ""
  186.         Toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  187.         Toggle.TextScaled = true
  188.         Toggle.TextSize = 14.000
  189.         Toggle.TextWrapped = true
  190.        
  191.         Toggle.MouseButton1Click:Connect(function()
  192.             if toggle == 0 then
  193.                 toggle = 1
  194.                 callback()
  195.                 print("On")
  196.                 Toggle.Text = "βœ“"
  197.             elseif toggle == 1 then
  198.                 toggle = 0
  199.                 print("Off")
  200.                 Toggle.Text = ""
  201.             end
  202.         end)
  203.     end
  204.    
  205.     function SKiDUi:Box(name,callback)
  206.         callback = callback or function() end
  207.         local BoxText = Instance.new("TextLabel")
  208.         local Box = Instance.new("TextBox")
  209.         BoxText.Name = "BoxText"
  210.         BoxText.Parent = Frame
  211.         BoxText.Active = true
  212.         BoxText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  213.         BoxText.BackgroundTransparency = 1.000
  214.         BoxText.Position = UDim2.new(0.626068354, 0, 0, 0)
  215.         BoxText.Selectable = true
  216.         BoxText.Size = UDim2.new(0.373931617, 0, 0, 30)
  217.         BoxText.Font = Enum.Font.Fantasy
  218.         BoxText.Text = name
  219.         BoxText.TextColor3 = Color3.fromRGB(255, 255, 255)
  220.         BoxText.TextScaled = true
  221.         BoxText.TextSize = 14.000
  222.         BoxText.TextWrapped = true
  223.        
  224.         Box.Name = "Box"
  225.         Box.Parent = BoxText
  226.         Box.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  227.         Box.BorderColor3 = Color3.fromRGB(255, 255, 255)
  228.         Box.Position = UDim2.new(0, 1, 0, 0)
  229.         Box.Size = UDim2.new(0.25, 0, 0.0670000017, 18)
  230.         Box.Font = Enum.Font.Fantasy
  231.         Box.Text = ""
  232.         Box.TextColor3 = Color3.fromRGB(255, 255, 255)
  233.         Box.TextScaled = true
  234.         Box.TextSize = 14.000
  235.         Box.TextWrapped = true
  236.         Box:GetPropertyChangedSignal("Text"):Connect(callback)
  237.     end
  238.  
  239. function SKiDUi:BackBox(name,callback)
  240.     BackBox.Name = "BackBox"
  241.     BackBox.Parent = Frame
  242.     BackBox.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  243.     BackBox.BorderSizePixel = 0
  244.     BackBox.Position = UDim2.new(0.25, 0, 0, 0)
  245.     BackBox.Size = UDim2.new(1, 0, 0, 30)
  246.     BackBox.Font = Enum.Font.Fantasy
  247.     BackBox.PlaceholderText = "Box"
  248.     BackBox.Text = ""
  249.     BackBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  250.     BackBox.TextScaled = true
  251.     BackBox.TextSize = 14.000
  252.     BackBox.TextWrapped = true
  253.     BackBox:GetPropertyChangedSignal("Text"):Connect(callback)
  254. end
  255. --[[
  256. DropDown.Name = "DropDown"
  257. DropDown.Parent = Frame
  258. DropDown.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  259. DropDown.BorderSizePixel = 0
  260. DropDown.Position = UDim2.new(0.25, 0, 0, 0)
  261. DropDown.Size = UDim2.new(1, 0, 0, 30)
  262. DropDown.Font = Enum.Font.Fantasy
  263. DropDown.Text = "DropDown  >"
  264. DropDown.TextColor3 = Color3.fromRGB(255, 255, 255)
  265. DropDown.TextScaled = true
  266. DropDown.TextSize = 14.000
  267. DropDown.TextWrapped = true
  268.  
  269. Frame_2.Parent = DropDown
  270. Frame_2.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  271. Frame_2.BorderColor3 = Color3.fromRGB(100, 100, 100)
  272. Frame_2.BorderSizePixel = 2
  273. Frame_2.Position = UDim2.new(0, 0, 1, 0)
  274. Frame_2.Size = UDim2.new(0, 200, 0, 30)
  275. Frame_2.Visible = false
  276.  
  277. Button_2.Name = "Button"
  278. Button_2.Parent = Frame_2
  279. Button_2.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  280. Button_2.BorderColor3 = Color3.fromRGB(27, 42, 53)
  281. Button_2.BorderSizePixel = 0
  282. Button_2.Position = UDim2.new(0, 0, 0.232142851, 0)
  283. Button_2.Size = UDim2.new(1, 0, 0, 30)
  284. Button_2.Font = Enum.Font.Fantasy
  285. Button_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  286. Button_2.TextScaled = true
  287. Button_2.TextSize = 14.000
  288. Button_2.TextWrapped = true
  289.  
  290. UIListLayout_2.Parent = Frame_2
  291. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  292. ]]--
  293.  return SKiDUi
  294. end
  295. return Library
Advertisement
Add Comment
Please, Sign In to add comment