|
| 08 May 2013 10:56 PM |
I'd like to have a script that is either in the playergui or workspace, that can start a function when someone dies. How would I do this? |
|
|
| Report Abuse |
|
|
|
| 08 May 2013 10:59 PM |
Im trying to remember if you would have a script that constantly refresh in workspace and gather all the players and if one of thems health is below zero it clones the script into them.
(ง'̀-'́)ง |
|
|
| Report Abuse |
|
|
|
| 08 May 2013 11:01 PM |
I honestly don't know, thats why I am asking.
I just need the outline, then I can make it check if they were the assassin or not and remove 1 from the alive amount or turn the isasalive value to false. |
|
|
| Report Abuse |
|
|
|
| 08 May 2013 11:02 PM |
Put this in startergui as a LocalScript.
wait(1/30) local Player = Game.Players.LocalPlayer
repeat wait(1/30) until Player.Character Player.Character.Humanoid.Died:connect(function() --stuff end) |
|
|
| Report Abuse |
|
|
|
| 08 May 2013 11:03 PM |
Thank you!
The help in the forum is outstanding! |
|
|
| Report Abuse |
|
|