In todays video I show you how to make a death screen inside Roblox Studio, How this death screen works is it basically it displays a gui when a player dies. by either reseting, falling off the map, or getting killed by another player. This type of system is often seen in sword fighting games or first person shooter games such as Arsenal. Please do keep in mind this is inside a Roblox game and is only based in a Roblox game. So..... if you did want this type of feature in your game make sure to watch to the end of the video to find out how!
I really enjoy making these videos for you all so I hope you enjoy them just as much as I do!
Have a lovely rest of your day!
Script 1 (Set gui, just shows the gui)
local DeathGui = script.Parent.Frame -- Change Frame to whatever your DeathGui Frame is called.
local Player = game.Players.LocalPlayer
local Character = Player.Character
Character:WaitForChild("Humanoid").Died:Connect(function()
DeathGui.Visible = true
wait(3) -- Match this to your respawn time (Players - RespawnTime)
DeathGui.Visible = false
end)
--------------------
Script 2 (Changing gui, Randomises TextLabels)
local DeathGui = script.Parent.Frame -- Change Frame to whatever your DeathGui Frame is called.
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Messages = {
"This is a area where you can change the kill messages!", -- You can adjust the messages that apear on your textlabel here
"Better luck next time!"
}
local Randomiser = math.random(1, #Messages)
Character:WaitForChild("Humanoid").Died:Connect(function()
DeathGui.Visible = true
DeathGui.TextLabel.Text = Messages[Randomiser]
wait(3) -- Match this to your respawn time (Players - RespawnTime)
DeathGui.Visible = false
end)
-----------------------------
If you are a bit confused what to do, Feel free to create a ticket in my discord server and we can help you out!
NEW! Floppys Obby Game : https://www.roblox.com/games/14917960...
Floppys Simulator Game: https://www.roblox.com/games/13963457...
FloppyFish Merch Store: https://itz-floppyfish.creator-spring...
If you would like to support me even more, Super Thanks and becoming a Member is also another way to show your appreciation!
🌟 Floppys Discord Server: / discord
🌟 Floppys Roblox Game : https://www.roblox.com/games/11301003...
Roblox Studio Tutorial
Roblox Studio
Studio Tutorials
Смотрите видео How to make a DEATH SCREEN | Roblox Studio онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Itz_FloppyFish 17 Февраль 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 13,549 раз и оно понравилось 522 людям.