hey guys I'm back! The one one and only Tizzel40 ! Im here to ask a question about "Game Over GUI's" so can any one tell me how to make one? For an example(the player dies and the gui pops up)And I want to know if this will work "IN GAME too" and plz tell me where to put it like "Starter gui etc..." ya know :) let me stop talking and get set some answerers from my fellow scripters :) xd
--Tizzel40 :D
Hi Tizzel,
.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.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)
Thanks,
Best regards,
~~ KingLoneCat