Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MainGUI = Instance.new("ScreenGui",game.CoreGui)
- MainGUI.Name = "MainGUI"
- MainGUI.ResetOnSpawn = false
- MainArea = Instance.new("ScrollingFrame",MainGUI)
- MainArea.Name = "MAIN"
- MainArea.Size = UDim2.new(0,500,0,640)
- MainArea.Position = UDim2.new(0,0,0,0)
- MainArea.BackgroundColor3 = Color3.new(0,0,0)
- MainArea.BackgroundTransparency = 0.60
- MainArea.BorderSizePixel = 0
- MainArea.ScrollBarThickness = 0
- MainArea.Active = true
- MainArea.Draggable = true
- qw = Instance.new("Frame",MainGUI)
- qw.Name = "CloseFrame"
- qw.Position = UDim2.new(0,1000,0,1000)
- qw.BackgroundColor3 = Color3.new(255,255,255)
- qw.BackgroundTransparency = 60
- qw.BorderSizePixel = 0
- qwe = Instance.new("TextButton",CloseFrame)
- qwe.Name = "CloseButton"
- qwe.Position = UDim2.new(0,1000,0,1000)
- qwe.BackgroundColor3 = Color3.new(255,255,255)
- qwe.BackgroundTransparency = 85
- qwe.BorderSizePixel = 0
- qwe.Font = "SourceSansLight"
- qwe.FontSize = "Size12"
- qwe.Text = "Close"
- qwe.TextColor3 = Color3.new(0,0,0)
- Name = Instance.new("TextLabel",MainArea)
- Name.Name = "NameBar"
- Name.Size = UDim2.new(0,320,0,25)
- Name.BackgroundColor3 = Color3.new(0,255,255)
- Name.BackgroundTransparency = .4
- Name.BorderSizePixel = 0
- Name.Font = "SourceSans"
- Name.FontSize = "Size14"
- Name.Text = ("Script Hub by Stefanuk12")
- Name.TextColor3 = Color3.new(0,0,0)
- Text1 = 25
- function c1(txt)
- local lol = Instance.new("TextButton",MainArea)
- lol.Name = (txt)
- lol.Size = UDim2.new(0,150,0,40)
- lol.Position = UDim2.new(0,15,0,Text1)
- lol.BackgroundColor3 = Color3.new(255,255,255)
- lol.BackgroundTransparency = 40
- lol.BorderSizePixel = 0
- lol.Font = "SourceSansLight"
- lol.FontSize = "Size24"
- lol.Text = (txt)
- lol.TextColor3 = Color3.new(52,72,255)
- Text1 = pos1+40
- return lol
- end
- Text2 = 25
- function c2(txt)
- local a = Instance.new("TextButton",MainArea)
- lol.Name = (txt)
- lol.Size = UDim2.new(0,150,0,40)
- lol.Position = UDim2.new(0,170,0,Text2)
- lol.BackgroundColor3 = Color3.new(255,255,255)
- lol.BackgroundTransparency = 40
- lol.BorderSizePixel = 0
- lol.Font = "SourceSansLight"
- lol.FontSize = "Size24"
- lol.Text = (txt)
- lol.TextColor3 = Color3.new(52,72,255)
- Text2 = Text2+40
- return lol
- end
- MainUI = game.CoreGui.MainGUI
- MainUI.CloseFrame.CloseButton.MouseButton1Down:connect(function()
- if MainUI.Visible == true then
- MainUI.Visible = false
- MainUI.Active = false
- MainUI.CloseFrame.CloseButton.Text = "Open"
- elseif MainUI.Visible == false then
- MainUI.Visible = true
- MainUI.Active = true
- MainUI.CloseFrame.CloseButton.Text = "Close"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement