Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to script this Gui?

Asked by
smd34 30
9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

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!

1 answer

Log in to vote
0
Answered by 9 years ago

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!

0
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 `==`). User#2 0 — 9y
0
Ugh, you edited and deleted my script, It took a while why would I make another one? EzraNehemiah_TF2 3552 — 9y
0
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. AmericanStripes 610 — 9y
Ad

Answer this question