Molodejkaoff

Untitled

Jun 28th, 2022
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6.  
  7.  
  8.  
  9. local Library = {}
  10.  
  11. function Library:CreateMain()
  12. local ScreenGui = Instance.new("ScreenGui")
  13. local Frame = Instance.new("Frame")
  14. local Visible = Instance.new("TextButton")
  15. local AC = Instance.new("TextButton")
  16. local ScrollingFrame = Instance.new("ScrollingFrame")
  17. local UIListLayout = Instance.new("UIListLayout")
  18.  
  19.  
  20. ScreenGui.Parent = game:GetService("CoreGui")
  21. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  22.  
  23. Frame.Parent = ScreenGui
  24. Frame.Active = true
  25. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  26. Frame.Position = UDim2.new(0.899857938, -187, 0.680412412, -116)
  27. Frame.Size = UDim2.new(0, 37, 0, 133)
  28. Frame.Draggable = true;
  29.  
  30. Visible.Name = "Visible"
  31. Visible.Parent = Frame
  32. Visible.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  33. Visible.Position = UDim2.new(-0.00321506802, 0, 0, 0)
  34. Visible.Size = UDim2.new(0, 37, 0, 50)
  35. Visible.Font = Enum.Font.SourceSans
  36. Visible.Text = "Visible"
  37. Visible.TextColor3 = Color3.fromRGB(0, 0, 0)
  38. Visible.TextSize = 14.000
  39. Visible.MouseButton1Click:Connect(function()
  40. if ScrollingFrame.Visible then
  41. ScrollingFrame.Visible = false
  42. else
  43. ScrollingFrame.Visible = true
  44. end
  45. end)
  46.  
  47. AC.Name = "AC"
  48. AC.Parent = Frame
  49. AC.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  50. AC.Position = UDim2.new(0, 0, 0.619982123, 0)
  51. AC.Size = UDim2.new(0, 37, 0, 50)
  52. AC.Font = Enum.Font.SourceSans
  53. AC.Text = "WORKING"
  54. AC.TextColor3 = Color3.fromRGB(0, 0, 0)
  55. AC.TextSize = 14.000
  56. AC.MouseButton1Click:Connect(function()
  57. if getgenv().Active then
  58. getgenv().Active = false;
  59. AC.Text = "STOPED"
  60. else
  61. getgenv().Active = true;
  62. AC.Text = "WORKING"
  63. end
  64. end)
  65.  
  66. ScrollingFrame.Parent = Frame
  67. ScrollingFrame.Active = true
  68. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  69. ScrollingFrame.Position = UDim2.new(1.2900238, 0, 0, 0)
  70. ScrollingFrame.Size = UDim2.new(0, 273, 0, 295)
  71.  
  72. UIListLayout.Parent = ScrollingFrame
  73. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  74. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  75.  
  76.  
  77.  
  78.  
  79. local Items = {};
  80. local Buttons = {};
  81.  
  82. function Items:NewBtn(Item)
  83. local TextButton = Instance.new("TextButton")
  84. table.insert(Buttons,TextButton);
  85.  
  86. TextButton.Parent = ScrollingFrame
  87. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  88. TextButton.Size = UDim2.new(0, 200, 0, 50)
  89. TextButton.Font = Enum.Font.SourceSans
  90. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  91. TextButton.TextSize = 14.000
  92. TextButton.Text = Item.Name;
  93. TextButton.Name = Item.Name
  94. TextButton.MouseButton1Click:Connect(function()
  95. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = Item.Handle.CFrame;
  96. end)
  97. end
  98.  
  99. function Items:RmvBtn(ItemName)
  100. for i,v in pairs(Buttons)do
  101. if v.Name == ItemName then
  102. v:Destroy()
  103. end
  104. end
  105. end
  106. return Items;
  107. end
  108.  
  109.  
  110. return Library;
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
Add Comment
Please, Sign In to add comment