Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local PurpleGUI = Instance.new("ScreenGui")
- local Loginframe2 = Instance.new("Frame")
- local Tbar2 = Instance.new("Frame")
- local Tbar1 = Instance.new("Frame")
- local user = Instance.new("TextBox")
- local pass = Instance.new("TextBox")
- local Tloginbutton = Instance.new("TextButton")
- local TPurpleGuiTextLabel = Instance.new("TextLabel")
- local test1 = Instance.new("Frame")
- local worked = Instance.new("TextLabel")
- -- Properties
- PurpleGUI.Name = "PurpleGUI"
- PurpleGUI.Parent = game.CoreGui
- Loginframe2.Name = "Loginframe2"
- Loginframe2.Parent = PurpleGUI
- Loginframe2.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- Loginframe2.Position = UDim2.new(-0.00928504765, 0, 0.148221344, 0)
- Loginframe2.Size = UDim2.new(0, 276, 0, 335)
- Tbar2.Name = "Tbar2"
- Tbar2.Parent = Loginframe2
- Tbar2.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Tbar2.BorderSizePixel = 0
- Tbar2.Size = UDim2.new(0, 276, 0, 40)
- Tbar1.Name = "Tbar1"
- Tbar1.Parent = Loginframe2
- Tbar1.BackgroundColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
- Tbar1.BorderSizePixel = 0
- Tbar1.Position = UDim2.new(0, 0, 0.101492539, 0)
- Tbar1.Size = UDim2.new(0, 276, 0, 6)
- user.Name = "user"
- user.Parent = Loginframe2
- user.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- user.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
- user.BorderSizePixel = 4
- user.Position = UDim2.new(0.137681156, 0, 0.379104465, 0)
- user.Size = UDim2.new(0, 200, 0, 27)
- user.Font = Enum.Font.SourceSansBold
- user.PlaceholderColor3 = Color3.new(1, 1, 1)
- user.Text = "Username"
- user.TextColor3 = Color3.new(1, 1, 1)
- user.TextScaled = true
- user.TextSize = 14
- user.TextWrapped = true
- user.TextXAlignment = Enum.TextXAlignment.Left
- pass.Name = "pass"
- pass.Parent = Loginframe2
- pass.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- pass.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
- pass.BorderSizePixel = 4
- pass.Position = UDim2.new(0.137681156, 0, 0.594029844, 0)
- pass.Size = UDim2.new(0, 200, 0, 27)
- pass.Font = Enum.Font.SourceSansBold
- pass.PlaceholderColor3 = Color3.new(1, 1, 1)
- pass.Text = "Password"
- pass.TextColor3 = Color3.new(1, 1, 1)
- pass.TextScaled = true
- pass.TextSize = 14
- pass.TextWrapped = true
- pass.TextXAlignment = Enum.TextXAlignment.Left
- Tloginbutton.Name = "Tloginbutton"
- Tloginbutton.Parent = Loginframe2
- Tloginbutton.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Tloginbutton.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
- Tloginbutton.BorderSizePixel = 4
- Tloginbutton.Position = UDim2.new(0.260869563, 0, 0.75522387, 0)
- Tloginbutton.Size = UDim2.new(0, 132, 0, 53)
- Tloginbutton.Font = Enum.Font.SourceSansBold
- Tloginbutton.Text = "Login"
- Tloginbutton.TextColor3 = Color3.new(1, 1, 1)
- Tloginbutton.TextSize = 30
- Tloginbutton.TextWrapped = true
- TPurpleGuiTextLabel.Name = "TPurpleGuiTextLabel"
- TPurpleGuiTextLabel.Parent = Loginframe2
- TPurpleGuiTextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TPurpleGuiTextLabel.BackgroundTransparency = 1
- TPurpleGuiTextLabel.BorderSizePixel = 0
- TPurpleGuiTextLabel.Position = UDim2.new(0, 0, 0.140298501, 0)
- TPurpleGuiTextLabel.Size = UDim2.new(0, 276, 0, 50)
- TPurpleGuiTextLabel.Font = Enum.Font.SourceSansBold
- TPurpleGuiTextLabel.Text = "PurpleGui"
- TPurpleGuiTextLabel.TextColor3 = Color3.new(0.666667, 0, 1)
- TPurpleGuiTextLabel.TextSize = 40
- TPurpleGuiTextLabel.TextWrapped = true
- test1.Name = "test1"
- test1.Parent = PurpleGUI
- test1.BackgroundColor3 = Color3.new(1, 1, 1)
- test1.Position = UDim2.new(0.350077748, 0, 0.282519907, 0)
- test1.Size = UDim2.new(0, 166, 0, 219)
- test1.Visible = false
- worked.Name = "worked"
- worked.Parent = test1
- worked.BackgroundColor3 = Color3.new(1, 1, 1)
- worked.Size = UDim2.new(0, 166, 0, 50)
- worked.Font = Enum.Font.SourceSans
- worked.Text = "Worked"
- worked.TextSize = 14
- --functions
- Tloginbutton.MouseButton1Down:connect(function()
- if user.Text == "test" and pass.Text == "test" then
- test1.Visible = true
- Loginframe2.Visible = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement