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 |
|
|
|
| 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
|
  |
| 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 |
|
|