Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Farewell infortality
- -- Revamp by ImFrostic, Version 2.81
- -- Objects
- local Cursed = Instance.new("ScreenGui")
- local home = Instance.new("Frame")
- local close = Instance.new("TextButton")
- local Frame = Instance.new("Frame")
- local pass = Instance.new("TextBox")
- local user = Instance.new("TextBox")
- local login = Instance.new("TextButton")
- local invalidlogin = Instance.new("Frame")
- local exit = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local Frame_2 = Instance.new("Frame")
- local TextLabel_2 = Instance.new("TextLabel")
- local settings = Instance.new("Frame")
- local exit_2 = Instance.new("TextButton")
- local TextLabel_3 = Instance.new("TextLabel")
- local Frame_3 = Instance.new("Frame")
- local TextLabel_4 = Instance.new("TextLabel")
- local Main = Instance.new("Frame")
- local close_2 = Instance.new("TextButton")
- --Whitelist check
- local whitelisted = {"CursedReborn"}--allow players in, if you're not here you will be notified
- local blacklisted = {""}--disconnect them
- local userAllowed = false
- local player = game.Players.LocalPlayer
- function checkcode()
- -- blacklist checking --
- local bindableFunction = Instance.new("BindableFunction")
- bindableFunction.OnInvoke = callback
- for i,v in pairs(blacklisted) do
- if string.lower(player.Name) == string.lower(v) then
- userAllowed = false
- game.StarterGui:SetCore("SendNotification", {
- Title = "KICKING...";
- Text = "";
- Icon = "";
- Duration = 5;
- Callback = bindableFunction;
- Button1 = "";
- Button2 = "";
- })
- if userAllowed == false then
- local function callback(textt)
- if textt == "Yes" then
- print("")
- elseif textt == "No" then
- print("")
- -- notify
- local bindableFunction = Instance.new("BindableFunction")
- bindableFunction.OnInvoke = callback
- game.StarterGui:SetCore("SendNotification", {
- Title = "Couldn't load";
- Text = "GUI couldn't load because you aren't whitelisted";
- Icon = "";
- Duration = 8;
- Callback = bindableFunction;
- Button1 = "";
- Button2 = "";
- })
- else
- if userAllowed == true then
- local bindableFunction = Instance.new("BindableFunction")
- bindableFunction.OnInvoke = callback
- game.StarterGui:SetCore("SendNotification", {
- Title = "Loading...";
- Text = ":)";
- Icon = "";
- Duration = 8;
- Callback = bindableFunction;
- Button1 = "";
- Button2 = "";
- })
- end
- end
- end
- end
- end
- end
- end
- -- check code player input --
- textbox.FocusLost:connect(function(enterPressed)
- if enterPressed then
- for i,v in pairs(whitelisted) do
- if string.lower(player.Name) == string.lower(v) then
- userAllowed = true
- checkcode()
- else
- userAllowed = false
- checkcode()
- end
- end
- end
- end)
- -- Properties
- Cursed.Name = "Cursed"
- Cursed.Parent = game.CoreGui
- home.Name = "home"
- home.Parent = Cursed
- home.Active = true
- home.BackgroundColor3 = Color3.new(0.168627, 0.168627, 0.168627)
- home.BorderSizePixel = 0
- home.Draggable = true
- home.Position = UDim2.new(0.459375024, -110, 0.662030578, -72)
- home.Selectable = true
- home.Size = UDim2.new(0, 411, 0, 282)
- close.Name = "close"
- close.Parent = home
- close.BackgroundColor3 = Color3.new(1, 1, 1)
- close.BackgroundTransparency = 1
- close.Position = UDim2.new(0, 350, 0, 12)
- close.Size = UDim2.new(0, 51, 0, 31)
- close.Font = Enum.Font.Arial
- close.Text = "X"
- close.TextColor3 = Color3.new(1, 1, 1)
- close.TextSize = 14
- Frame.Parent = home
- Frame.Active = true
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0, 0, 0, 238)
- Frame.Selectable = true
- Frame.Size = UDim2.new(0, 411, 0, 44)
- pass.Name = "pass"
- pass.Parent = Frame
- pass.BackgroundColor3 = Color3.new(1, 1, 1)
- pass.BorderSizePixel = 0
- pass.Position = UDim2.new(0, 161, 0, 6)
- pass.Size = UDim2.new(0, 120, 0, 32)
- pass.Font = Enum.Font.Arial
- pass.MultiLine = true
- pass.Text = "Password"
- pass.TextColor3 = Color3.new(0, 0, 0)
- pass.TextSize = 14
- pass.TextWrapped = true
- user.Name = "user"
- user.Parent = Frame
- user.BackgroundColor3 = Color3.new(1, 1, 1)
- user.BorderSizePixel = 0
- user.Position = UDim2.new(0.034063261, 0, 0.153789148, 0)
- user.Size = UDim2.new(0, 130, 0, 29)
- user.Font = Enum.Font.Arial
- user.MultiLine = true
- user.Text = "Username"
- user.TextColor3 = Color3.new(0, 0, 0)
- user.TextSize = 14
- user.TextWrapped = true
- login.Name = "login"
- login.Parent = Frame
- login.BackgroundColor3 = Color3.new(0.168627, 0.168627, 0.168627)
- login.BorderSizePixel = 0
- login.Position = UDim2.new(0, 309, 0, 9)
- login.Size = UDim2.new(0, 92, 0, 29)
- login.Font = Enum.Font.ArialBold
- login.Text = "Login"
- login.TextColor3 = Color3.new(1, 1, 1)
- login.TextSize = 14
- login.MouseButton1Down:connect(function()
- if user.Text == 'User' and pass.Text == 'Pass' then
- Cursed.home.Visible = false
- Cursed.Main.Visible = true
- else
- Cursed.home.invalidlogin.Visible = true
- Cursed.home.Visible = true
- end
- end)
- invalidlogin.Name = "invalidlogin"
- invalidlogin.Parent = home
- invalidlogin.Active = true
- invalidlogin.BackgroundColor3 = Color3.new(1, 1, 1)
- invalidlogin.BorderSizePixel = 0
- invalidlogin.Draggable = true
- invalidlogin.Position = UDim2.new(0, 824, 0, 283)
- invalidlogin.Selectable = true
- invalidlogin.Size = UDim2.new(0, 203, 0, 25)
- invalidlogin.Visible = false
- exit.Name = "exit"
- exit.Parent = invalidlogin
- exit.BackgroundColor3 = Color3.new(1, 1, 1)
- exit.BorderSizePixel = 0
- exit.Position = UDim2.new(0, 157, 0, 0)
- exit.Size = UDim2.new(0, 43, 0, 25)
- exit.Font = Enum.Font.Arial
- exit.Text = "X"
- exit.TextColor3 = Color3.new(0.168627, 0.168627, 0.168627)
- exit.TextSize = 18
- TextLabel.Parent = invalidlogin
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(0, 52, 0, 0)
- TextLabel.Size = UDim2.new(0, 98, 0, 25)
- TextLabel.Font = Enum.Font.Arial
- TextLabel.Text = "ERROR"
- TextLabel.TextSize = 14
- Frame_2.Parent = invalidlogin
- Frame_2.Active = true
- Frame_2.BackgroundColor3 = Color3.new(0.168627, 0.168627, 0.168627)
- Frame_2.BorderSizePixel = 0
- Frame_2.Draggable = true
- Frame_2.Position = UDim2.new(0, 0, 0, 25)
- Frame_2.Selectable = true
- Frame_2.Size = UDim2.new(0, 203, 0, 156)
- TextLabel_2.Parent = Frame_2
- TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_2.BackgroundTransparency = 1
- TextLabel_2.Position = UDim2.new(0, 3, 0, 0)
- TextLabel_2.Size = UDim2.new(0, 200, 0, 156)
- TextLabel_2.Font = Enum.Font.Arial
- TextLabel_2.Text = "Your Login was Invalid"
- TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_2.TextSize = 24
- TextLabel_2.TextWrapped = true
- settings.Name = "settings"
- settings.Parent = Cursed
- settings.Active = true
- settings.BackgroundColor3 = Color3.new(1, 1, 1)
- settings.BorderSizePixel = 0
- settings.Draggable = true
- settings.Position = UDim2.new(0, 328, 0, 317)
- settings.Selectable = true
- settings.Size = UDim2.new(0, 203, 0, 25)
- settings.Visible = false
- exit_2.Name = "exit"
- exit_2.Parent = settings
- exit_2.BackgroundColor3 = Color3.new(1, 1, 1)
- exit_2.BorderSizePixel = 0
- exit_2.Position = UDim2.new(0, 157, 0, 0)
- exit_2.Size = UDim2.new(0, 43, 0, 25)
- exit_2.Font = Enum.Font.Arial
- exit_2.Text = "X"
- exit_2.TextColor3 = Color3.new(0.168627, 0.168627, 0.168627)
- exit_2.TextSize = 18
- TextLabel_3.Parent = settings
- TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_3.BorderSizePixel = 0
- TextLabel_3.Position = UDim2.new(0, 52, 0, 0)
- TextLabel_3.Size = UDim2.new(0, 98, 0, 25)
- TextLabel_3.Font = Enum.Font.Arial
- TextLabel_3.Text = "SETTINGS"
- TextLabel_3.TextSize = 14
- Frame_3.Parent = settings
- Frame_3.Active = true
- Frame_3.BackgroundColor3 = Color3.new(0.168627, 0.168627, 0.168627)
- Frame_3.BorderSizePixel = 0
- Frame_3.Draggable = true
- Frame_3.Position = UDim2.new(0, 0, 0, 25)
- Frame_3.Selectable = true
- Frame_3.Size = UDim2.new(0, 203, 0, 156)
- TextLabel_4.Parent = Frame_3
- TextLabel_4.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_4.BackgroundTransparency = 1
- TextLabel_4.Position = UDim2.new(0, 13, 0, 0)
- TextLabel_4.Size = UDim2.new(0, 176, 0, 119)
- TextLabel_4.Font = Enum.Font.Arial
- TextLabel_4.Text = "Work in progress"
- TextLabel_4.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_4.TextSize = 24
- TextLabel_4.TextWrapped = true
- Main.Name = "Main"
- Main.Parent = Cursed
- Main.BackgroundColor3 = Color3.new(0.368627, 0.368627, 0.368627)
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(0.227672026, 0, 0.498697937, 0)
- Main.Size = UDim2.new(0, 707, 0, 298)
- Main.Visible = false
- Main.Active = true
- close_2.Name = "close"
- close_2.Parent = Main
- close_2.BackgroundColor3 = Color3.new(1, 1, 1)
- close_2.BackgroundTransparency = 1
- close_2.Position = UDim2.new(0, 642, 0, 0)
- close_2.Size = UDim2.new(0, 65, 0, 50)
- close_2.Font = Enum.Font.Arial
- close_2.Text = "X"
- close_2.TextColor3 = Color3.new(1, 1, 1)
- close_2.TextSize = 30
- -- Scripts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement