Hi Tizzel,
What you're asking for is quite simple. You just need to make use of the Humanoid's .Died event. Upon this event, you just make a UI appear in the player's PlayerGui. So, to do this I will use the PlayerAdded event and the CharacterAdded event, and afterwards, I will attach a function to the Humanoids .Died event. Here, I will just demonstrate.
####ServerScript in ServerScriptService
local players = game:GetService("Players");
players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local hum = char:WaitForChild("Humanoid");
hum.Died:Connect(function()
local gui = script:WaitForChild("Game Over Gui"):Clone();
gui.Parent = plr:WaitForChild("PlayerGui");
end)
end)
end)
###In the above script, I assumed that the gui that you want the player to have upon death is under the script and that the script's a ServerScript under ServerScriptService.
##Well, hope I helped and have a nice day/night.
Thanks,
Best regards,
~~ KingLoneCat
4 comments
Did you even try?
nice wheres the SCRIPT :D
^ alie
Not a req site.