How would I make a death screen that shows what you died to?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to create a death screen that shows what or who you died to, kinda like Doors and arsenal.
  2. What is the issue? Include screenshots / videos if possible!
    I’m not sure how to do this.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have tried google and searching the developer forum.
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

This is my first post on the devforum, sorry If it seems confusing.

1 Like

Is it just a black screen with text saying ‘You died to x’?

It’s not just going to be a black screen.

There will be a textlabel that says “you died to x”

1 Like

Well, by default, Roblox does not provide you with what or who killed you (since it doesn’t know the context, just the fact that your health is lowered). That said, you will need to implement a system for tracking what someone has died to. This should be very simple, simply store who or what “damaged” the player and if the player dies, display the appropriate name and description.

There are two ways of displaying the death screen, either have it in StarterGui and have visibility off until the player dies, then change the text by requesting from the server information on who or what killed the player (you can do this using a remote event), or you can have the server detect when the player dies, change the text on the UI, and put it in the PlayerGui.

Regardless of which one you choose, they will both require some information from the server (so there will be a small delay if there is high ping), and you’ll be utilizing the Humanoid.Died event in both of these.

2 Likes

Do you have some set ways you died?

1 Like

Thank you, this really helped.