|
| 23 Aug 2015 02:20 PM |
Is it possible to make a script that when the player dies, when they respawn a gui pops up?
(I suppose you can, but how?)
my script:]
wait(1) text = game.StarterGui.DeathGUI.Frame.NumberCount gui = game.StarterGui.DeathGUI.Frame
local b = --[[What to put here?--]]script.Parent:FindFirstChild("Humanoid") if b ~= nil then if b.Health == 0 then wait(5) gui.Visible = true end end
|
|
|
| Report Abuse |
|
|
| |
|
WVPII
|
  |
| Joined: 19 Aug 2015 |
| Total Posts: 207 |
|
|
| 23 Aug 2015 04:36 PM |
character:Humanoid).Died:connect(function() end) Private Road - Residents Only [WolfgangVonPrinz] |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 23 Aug 2015 04:45 PM |
this already happens by default when you put a gui into StarterGui, guis that are inside of StarterGui are cloned into the player's playergui when the player respawns
it also seems you're confusing StarterGui and a player's PlayerGui http://wiki.roblox.com/index.php?title=User:MrNicNac/Where_are_all_the_GUIs%3F |
|
|
| Report Abuse |
|
|