How would I make a CoD death screen where the screen gets red the more you are injured from bullet damage or fall damage? I dont have a script because I dont know where to start. I am a novice and I would love for feedback on this question!
COMMUNITY QUESTION
How to script this Gui?
1 answer
First start with the changed event. Then we use the death event. This is simple. Just make a frame that covers up the whole screen and make it red. Then we need to do these scripts.
Changed Event
This event fires when the object's property changes. We can take the thing that changed and we can see what changed and what the change was.
--ROBLOX Wiki
Workspace.Changed:connect(function(property)
local value = Workspace[property]
print("Workspace's " .. property .. " changed to " .. tostring(value))
end)
Workspace.Name = "Workspace2"
--> Workspace's Name changed to Workspace2
OUTPUT:
Workspace's Name changed to Workspace2
Death event
This checks if a humanoid dies.
workspace.Player.Humanoid.Died:connect(function()
print("Someone died!")
end)
Hope this helps!
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
If you're going to provide a full script, directly message it to the question asker. Also, you were missing an
=in your if statement's condition (it was=instead of==).Ugh, you edited and deleted my script, It took a while why would I make another one?
Because this is not a request site, do not provide full scripts. We help push people into the right direction to make it themselves, not just give it.