Here is local script from DeathScreen Gui
local repStorage = game:GetService("ReplicatedStorage")
local tweenSer = game:GetService("TweenService")
local lightning = game:GetService("Lighting")
local players = game:GetService("Players")
local respawnEvent = repStorage.RespawnEvent
local plr = players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local blur = lightning.DeadBlur
local dcc = lightning.DeadCC
local main = script.Parent.Frame2
local middleframe = main.TestFrame
local respawnTime = main.TestFrame.RespawnLabel
local title = middleframe.TextLabel
respawnTime.TextTransparency = 1
title.TextTransparency = 1
middleframe.BackgroundTransparency = 1
middleframe.Size = UDim2.new(0, 0, 0, 162)
middleframe.Position = UDim2.new(.5, 0, 0.424, 0)
hum.Died:Connect(function()
middleframe:TweenSizeAndPosition(UDim2.new(0, 1920, 0, 162), UDim2.new(0, 0, 0.424, 0))
tweenSer:Create(middleframe, TweenInfo.new(1), {BackgroundTransparency = .4}):Play()
tweenSer:Create(title, TweenInfo.new(1), {TextTransparency = 0}):Play()
tweenSer:Create(respawnTime, TweenInfo.new(1), {TextTransparency = 0}):Play()
tweenSer:Create(blur, TweenInfo.new(1), {Size = 20}):Play()
tweenSer:Create(dcc, TweenInfo.new(1), {TintColor = Color3.fromRGB(162, 0, 0), Saturation = -1}):Play()
respawnTime.Text = "Respawning in "..players.RespawnTime.." seconds"
for i = 1, players.RespawnTime do
respawnTime.Text = "Respawning in "..players.RespawnTime - i .." seconds"
task.wait(1)
end
middleframe:TweenSizeAndPosition(UDim2.new(0, 0, 0, 162), UDim2.new(.5, 0, 0.424, 0))
tweenSer:Create(middleframe, TweenInfo.new(1), {BackgroundTransparency = 1}):Play()
tweenSer:Create(title, TweenInfo.new(1), {TextTransparency = 1}):Play()
tweenSer:Create(respawnTime, TweenInfo.new(1), {TextTransparency = 1}):Play()
tweenSer:Create(blur, TweenInfo.new(1), {Size = 0}):Play()
tweenSer:Create(dcc, TweenInfo.new(1), {TintColor = Color3.fromRGB(255, 255, 255), Saturation = 0}):Play()
task.wait(0.5)
respawnEvent:FireServer()
end)