generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Onrespawn or onDealth help

Previous Thread :: Next Thread 
JohnTUnderwood is not online. JohnTUnderwood
Joined: 31 Jan 2013
Total Posts: 263
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
JohnTUnderwood is not online. JohnTUnderwood
Joined: 31 Jan 2013
Total Posts: 263
23 Aug 2015 04:08 PM
bump
Report Abuse
WVPII is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image