How to make a Respawn/Death Screen GUI On Roblox Studio

Опубликовано: 28 Октябрь 2024
на канале: StudioTutorialzYT
14,459
390

#RobloxStudioTutorials

---- ★ Songs ★ ----

Intro Song Link: chill anthem - BROCKBEATS:    • chill anthem  

Outro Song Link: Sweetest - Murat Uslu: (The song got deleted for some reason so here is the link to his youtube channel):    / @muratuslu4013  

Background Music: LuKremBo - boba tea:    • lukrembo - boba tea (royalty free vlo...  

---- ★ Friend's Game Link! ★ ----

https://web.roblox.com/games/56477165...

---- ★ Profile Link! ★ ----

https://web.roblox.com/users/97907289...

---- ★ Script ★ ----

local plrs = game.Players

game.StarterGui.RespawnGui.Frame.Visible = false

plrs.CharacterAutoLoads = false


local respawnTime = 5 --- How long a player has to wait to respawn


plrs.PlayerAdded:Connect(function(plr)

plr.CharacterAdded:Connect(function(char)

char:FindFirstChild("Humanoid").Died:Connect(function()

plr.PlayerGui.RespawnGui.Frame.RespawnTime.Text = "Respawning in " .. respawnTime .. " seconds..."

plr.PlayerGui.RespawnGui.Frame.Visible = true


for i = respawnTime, 0, -1 do

plr.PlayerGui.RespawnGui.Frame.RespawnTime.Text = "Respawning in " .. i .. " seconds..."

wait(1)
end

plr.PlayerGui.RespawnGui.Frame.Visible = false

plr:LoadCharacter()

end)
end)

plr:LoadCharacter()
end)


----------------- TimeStamps -----------------------

0:00-0:09 Intro
0:10-0:13 Disclaimer
0:14-2:57 The Video
2:58-3:19 Seeing if it works
3:20-3:30 Thanks for watching!
3:31-3:47 Outro