here is the full script
local PASSWORD = "fudge"
local USERNAME = "fudge"
local plr = game.Players.LocalPlayer
local char = plr.Character
local ScreenGUI = plr.PlayerGui:WaitForChild("ScreenUI"):Clone()
local Screen = ScreenGUI.Screen
local UNIX = Screen.Version
local loggin = Screen.loggin
local PC = game.Workspace.PC
local Plug = game.Workspace.Plug
local Plugged = false
local PCOn = false
local BootingUp = false
--// Modules
local Methods = require(game.ReplicatedStorage.Functions)
function MakeVisible(stuff)
for i,v in pairs(stuff) do
if v then
v.Visible = true
end
end
end
function MakeInvisible(stuff)
for i,v in pairs(stuff) do
if v then
v.Visible = false
end
end
end
local UIObjects = {
Username = Screen.Username;
Password = Screen.Password;
Login = Screen.Login;
UsernameSide = Screen.user;
PasswordSide = Screen.pass;
}
function CheckUserAndPass()
if UIObjects.Username.Text == USERNAME and UIObjects.Username.Text == PASSWORD then
MakeInvisible(UIObjects)
wait(.5)
loggin.Text = "Logging, " .. USERNAME .. " In . . ."
Methods.Tween(loggin, 1, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 5, true, 0, {TextTransparency = 0})
end
end
function Plugging()
Plugged = true
ScreenGUI.Parent = plr.PlayerGui
Plug:SetPrimaryPartCFrame(game.Workspace.Outlet.CFrame)
WeldCon = Instance.new("WeldConstraint")
WeldCon.Parent = Plug.PrimaryPart
WeldCon.Part0 = Plug.PrimaryPart
WeldCon.Part1 = game.Workspace.Outlet
end
function Unplug()
WeldCon:Destroy()
Plug:SetPrimaryPartCFrame(game.Workspace.Outlet.CFrame + Vector3.new(0,0,2))
PCOn = false
Plugged = false
print("Unplugged lmfaoooooooooooooooooooooo")
Methods.Tween(Screen, .2, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 0, false, 0, {BackgroundColor3 = Color3.fromRGB(35, 35, 35)})
Methods.Tween(PC.Power, .5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 0, false, 0, {Color = Color3.fromRGB(218, 133, 65)})
end
function ChangePowerOnColor()
Methods.Tween(PC.Power, .5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 0, false, 0, {Color = Color3.fromRGB(82, 124, 174)})
end
function BootUp()
PCOn = true
BootingUp = true
Methods.Tween(Screen, 1, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 0, false, 0, {BackgroundColor3 = Color3.fromRGB(255,255,255)})
UNIX.Visible = true
Methods.Tween(UNIX, 1, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 0, false, 0 , {TextTransparency = 0})
wait(3)
Methods.Tween(UNIX, 1, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 0, false, 0 , {TextTransparency = 1})
Methods.Tween(Screen, 1, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 0, false, 0, {BackgroundColor3 = Color3.fromRGB(31, 104, 213)})
wait(1)
MakeVisible(UIObjects)
BootingUp = false
end
UIObjects.Login.MouseButton1Click:Connect(function()
CheckUserAndPass()
end)
Plug.plugmain.ClickDetector.MouseClick:Connect(function()
if not Plugged and not PCOn then
Plugging()
elseif Plugged and PCOn and not BootingUp then
Unplug()
end
end)
PC.Power.ClickDetector.MouseClick:Connect(function()
if Plugged and not PCOn then
ChangePowerOnColor()
BootUp()
end
end)