Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local Library = {}
- function Library:CreateMain()
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Visible = Instance.new("TextButton")
- local AC = Instance.new("TextButton")
- local ScrollingFrame = Instance.new("ScrollingFrame")
- local UIListLayout = Instance.new("UIListLayout")
- ScreenGui.Parent = game:GetService("CoreGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.Active = true
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.Position = UDim2.new(0.899857938, -187, 0.680412412, -116)
- Frame.Size = UDim2.new(0, 37, 0, 133)
- Frame.Draggable = true;
- Visible.Name = "Visible"
- Visible.Parent = Frame
- Visible.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Visible.Position = UDim2.new(-0.00321506802, 0, 0, 0)
- Visible.Size = UDim2.new(0, 37, 0, 50)
- Visible.Font = Enum.Font.SourceSans
- Visible.Text = "Visible"
- Visible.TextColor3 = Color3.fromRGB(0, 0, 0)
- Visible.TextSize = 14.000
- Visible.MouseButton1Click:Connect(function()
- if ScrollingFrame.Visible then
- ScrollingFrame.Visible = false
- else
- ScrollingFrame.Visible = true
- end
- end)
- AC.Name = "AC"
- AC.Parent = Frame
- AC.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- AC.Position = UDim2.new(0, 0, 0.619982123, 0)
- AC.Size = UDim2.new(0, 37, 0, 50)
- AC.Font = Enum.Font.SourceSans
- AC.Text = "WORKING"
- AC.TextColor3 = Color3.fromRGB(0, 0, 0)
- AC.TextSize = 14.000
- AC.MouseButton1Click:Connect(function()
- if getgenv().Active then
- getgenv().Active = false;
- AC.Text = "STOPED"
- else
- getgenv().Active = true;
- AC.Text = "WORKING"
- end
- end)
- ScrollingFrame.Parent = Frame
- ScrollingFrame.Active = true
- ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScrollingFrame.Position = UDim2.new(1.2900238, 0, 0, 0)
- ScrollingFrame.Size = UDim2.new(0, 273, 0, 295)
- UIListLayout.Parent = ScrollingFrame
- UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- local Items = {};
- local Buttons = {};
- function Items:NewBtn(Item)
- local TextButton = Instance.new("TextButton")
- table.insert(Buttons,TextButton);
- TextButton.Parent = ScrollingFrame
- TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.Size = UDim2.new(0, 200, 0, 50)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.TextSize = 14.000
- TextButton.Text = Item.Name;
- TextButton.Name = Item.Name
- TextButton.MouseButton1Click:Connect(function()
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = Item.Handle.CFrame;
- end)
- end
- function Items:RmvBtn(ItemName)
- for i,v in pairs(Buttons)do
- if v.Name == ItemName then
- v:Destroy()
- end
- end
- end
- return Items;
- end
- return Library;
Add Comment
Please, Sign In to add comment