Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NewWindow = Instance.new("Frame")
- local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
- local UIListLayout = Instance.new("UIListLayout")
- local NewButton = Instance.new("TextButton")
- local NewTab = Instance.new("TextButton")
- local NewText = Instance.new("TextLabel")
- --Properties:
- NewWindow.Name = "NewWindow"
- NewWindow.AnchorPoint = Vector2.new(0.5, 0.5)
- NewWindow.BackgroundColor3 = Color3.new(0.156863, 0.117647, 0.156863)
- NewWindow.BorderSizePixel = 0
- NewWindow.Position = UDim2.new(0.5, 0, 0.5, 0)
- NewWindow.Size = UDim2.new(0.300000012, 0, 0.349999994, 0)
- NewWindow.Visible = false
- UIAspectRatioConstraint.Parent = NewWindow
- UIAspectRatioConstraint.AspectRatio = 1.5740000009537
- UIListLayout.Parent = NewWindow
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 5)
- NewButton.Name = "NewButton"
- NewButton.BackgroundColor3 = Color3.new(1, 1, 1)
- NewButton.BackgroundTransparency = 1
- NewButton.Size = UDim2.new(1, 0, 0.100000001, 0)
- NewButton.Font = Enum.Font.SourceSansBold
- NewButton.TextColor3 = Color3.new(1, 1, 1)
- NewButton.TextScaled = true
- NewButton.TextSize = 14
- NewButton.TextWrapped = true
- NewButton.TextXAlignment = Enum.TextXAlignment.Left
- NewTab.Name = "NewTab"
- NewTab.BackgroundColor3 = Color3.new(0.796078, 0.172549, 0.172549)
- NewTab.BackgroundTransparency = 1
- NewTab.BorderSizePixel = 0
- NewTab.Position = UDim2.new(0, 0, 0.300000012, 0)
- NewTab.Size = UDim2.new(1, 0, 0.100000001, 0)
- NewTab.AutoButtonColor = false
- NewTab.Font = Enum.Font.SourceSansBold
- NewTab.Text = "Visuals"
- NewTab.TextColor3 = Color3.new(1, 1, 1)
- NewTab.TextScaled = true
- NewTab.TextSize = 30
- NewTab.TextWrapped = true
- NewText.Name = "NewText"
- NewText.BackgroundColor3 = Color3.new(1, 1, 1)
- NewText.BackgroundTransparency = 1
- NewText.BorderSizePixel = 0
- NewText.Size = UDim2.new(1, 0, 0.100000001, 0)
- NewText.Font = Enum.Font.SourceSansBold
- NewText.Text = ""
- NewText.TextColor3 = Color3.new(1, 1, 1)
- NewText.TextScaled = true
- NewText.TextSize = 14
- NewText.TextWrapped = true
- NewText.TextXAlignment = Enum.TextXAlignment.Left
- -- Gui to Lua
- -- Version: 3
- -- Instances:
- local GamerGui = Instance.new("ScreenGui")
- local GameFrame = Instance.new("Frame")
- local GameName = Instance.new("TextLabel")
- local TabHolder = Instance.new("Frame")
- local UIListLayout = Instance.new("UIListLayout")
- --Properties:
- GamerGui.Name = "ThisIsTheGui"
- GamerGui.ZIndexBehavior = Enum.ZIndexBehavior.Global
- GamerGui.Parent = game.CoreGui
- GameFrame.Name = "GameFrame"
- GameFrame.Parent = GamerGui
- GameFrame.BackgroundColor3 = Color3.new(0.156863, 0.117647, 0.156863)
- GameFrame.BorderSizePixel = 0
- GameFrame.Size = UDim2.new(0.25, 0, 1, 0)
- GameName.Name = "GameName"
- GameName.Parent = GameFrame
- GameName.AnchorPoint = Vector2.new(0.5, 0.5)
- GameName.BackgroundColor3 = Color3.new(1, 1, 1)
- GameName.BackgroundTransparency = 1
- GameName.Position = UDim2.new(0.5, 0, 0.100000001, 0)
- GameName.Size = UDim2.new(0.899999976, 0, 0.075000003, 0)
- GameName.Font = Enum.Font.GothamBold
- GameName.Text = ""
- GameName.TextColor3 = Color3.new(1, 1, 1)
- GameName.TextScaled = true
- GameName.TextSize = 14
- GameName.TextWrapped = true
- TabHolder.Name = "TabHolder"
- TabHolder.Parent = GameFrame
- TabHolder.BackgroundColor3 = Color3.new(1, 1, 1)
- TabHolder.BackgroundTransparency = 1
- TabHolder.Position = UDim2.new(0, 0, 0.300000012, 0)
- TabHolder.Size = UDim2.new(1, 0, 0.699999988, 0)
- UIListLayout.Parent = TabHolder
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 5)
- local tbl = {
- toggles = {},
- addTab = function(self, name, window)
- local newTab = NewTab:Clone()
- newTab.Text = tostring(name)
- newTab.Parent = TabHolder
- newTab.MouseButton1Click:Connect(function()
- window.instance.Visible = not window.instance.Visible
- newTab.BackgroundTransparency = math.abs((newTab.BackgroundTransparency)-1)
- end)
- return newTab
- end,
- setName = function(self, txt)
- GameName.Text = txt
- end,
- }
- tbl.newWindow = function(self, pos)
- local newWindow = NewWindow:Clone()
- newWindow.Position = UDim2.new(pos[1], pos[2], pos[3], pos[4])
- newWindow.Parent = GamerGui
- return {
- instance = newWindow,
- addText = function(self, txt)
- local newText = NewText:Clone()
- newText.Text = " "..txt
- newText.Parent = self.instance
- end,
- addButton = function(self, txt, callback)
- local newBtn = NewButton:Clone()
- newBtn.Text = " "..txt
- newBtn.Parent = self.instance
- newBtn.MouseButton1Click:Connect(callback)
- return newBtn
- end,
- addToggle = function(self, txt, val)
- local newBtn = NewButton:Clone()
- newBtn.Text = " > "..txt
- newBtn.Parent = self.instance
- tbl.toggles[val] = false
- newBtn.MouseButton1Click:Connect(function()
- if tbl.toggles[val] == false then
- tbl.toggles[val] = true
- newBtn.TextColor3 = Color3.fromRGB(203, 44, 44)
- else
- tbl.toggles[val] = false
- newBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- end
- end)
- end
- }
- end
- op = true
- game:GetService("UserInputService").InputBegan:Connect(function(inputObject)
- if inputObject.KeyCode == Enum.KeyCode.Insert then
- if op == true then
- GameFrame:TweenPosition(UDim2.new(-0.3, 0, 0, 0), "Out", "Quad", 0.6, false, function() op = false end)
- else
- GameFrame:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quad", 0.6, false, function() op = true end)
- end
- end
- end)
- return tbl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement