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
 

DeathGUI

Previous Thread :: Next Thread 
Raph_Th is not online. Raph_Th
Joined: 03 Jun 2012
Total Posts: 2
19 Feb 2017 11:22 AM
Hi, I'm completely stuck on a DeathGUI. I created ## GUI but i don't know how to make it visible on only one player screen on death. Here's what i did for ## script (in local script, in ### frame of ## GUI) local replicatedstorage = game:GetService("ReplicatedStorage") local death = replicatedstorage:WaitForChild("DeathValue") -- i added a boolValue into ReplicatedStorage and i can set it to true and it displays ### GUI but i dont how to detect a player death. script.Parent.Visible = death.Value death.Changed:connect(function() script.Parent.Visible = death.Value -- sets DeathGui visibility to boolValue DeathValue end) Now i dont know how to set bool value true on only one player death and only for him. --Raph_Th
Report Abuse
InterversaI is not online. InterversaI
Joined: 16 Feb 2011
Total Posts: 16
19 Feb 2017 11:31 AM
Not sure if this is right but:

To detect player death just have the script activate when the hp is 0 (or below if necessary)

And to stop everyone from seeing it just parent the GUI into the local PlayerGui or whatever the folder is inside the player. It would only be visible to everyone if you are putting it in the StarterGui folder or something like that.
Report Abuse
Raph_Th is not online. Raph_Th
Joined: 03 Jun 2012
Total Posts: 2
06 Mar 2017 04:04 PM
I tried so much for it and i dont found how. I give up lol.


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