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 » Scripting Helpers
Home Search
 

Re: Display a GUI ondeath?

Previous Thread :: Next Thread 
3rdblox is not online. 3rdblox
Joined: 09 Dec 2012
Total Posts: 4741
29 Sep 2013 05:17 PM
When someone dies, I want to make a GUI appear on their screen. Say I have a GUI called "GUI" in Lighting, how can I make it appear on the dead person's screen then go away after 2 seconds?
Report Abuse
adammthomas2000 is not online. adammthomas2000
Joined: 24 Feb 2013
Total Posts: 454
29 Sep 2013 05:23 PM
p = game.Player.LocalPlayer
c = p.Character
function movegui()
x = game.Lighting.Gui:clone()
x.Parent = p.PlayerGui
wait(2)
x:destroy()
end
c.Humanoid.Died:connect(movegui)

That might help, but I am not the best scripter in the world.
Report Abuse
adammthomas2000 is not online. adammthomas2000
Joined: 24 Feb 2013
Total Posts: 454
29 Sep 2013 05:23 PM
Put in a local script in the starterpack
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
29 Sep 2013 05:26 PM
script in workspace:

local DeathGui = game.Lighting.GUI
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
char.Humanoid.Died:connect(function(lol)
DeathGui:clone().Parent = player.PlayerGui
end)
end)
end)

~rekt get
Report Abuse
3rdblox is not online. 3rdblox
Joined: 09 Dec 2012
Total Posts: 4741
29 Sep 2013 05:46 PM
Thanks black, worked. :)
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
29 Sep 2013 05:47 PM
np

~rekt get
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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