StartShutdown.OnClientEvent:Connect(function()local c,g=CreateTeleportScreen()g.BackgroundTransparency=.5 c.Parent=game.Players.LocalPlayer:WaitForChild("\080\108\097\121\101\114\071\117\105")task.wait(1)local o=os.time()local p=.5 while os.time()-o<p do local c=os.time()-o local w=c/p g.BackgroundTransparency=.5*(1-w)RenderStepped:Wait()end g.BackgroundTransparency=0 end)

StartShutdown.OnClientEvent:Connect(function()
	--Create the Gui and have it semi-transparent for 1 second.
	local Gui,Background = CreateTeleportScreen()
	Background.BackgroundTransparency = 0.5
	Gui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
	task.wait(1)
	
	--Tween the transparency to 0.
	local Start = os.time()
	local Time = 0.5
	while os.time() - Start < Time do
		local Dif = os.time() - Start
		local Ratio = Dif/Time
		Background.BackgroundTransparency = 0.5 * (1 - Ratio)
		RenderStepped:Wait()
	end
	Background.BackgroundTransparency = 0
end)
