darkwisp
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 22653 |
|
|
| 14 Oct 2013 02:37 PM |
I want that to make my value decrease when some one dies. --Darkwisp made this. --Making some variables for VALUEs ascore = game.StarterGui.ScreenGui.TEAMASCORE.Value.Value bscore = game.StarterGui.ScreenGui.TEAMBSCORE.Value.Value -- Making Value show on text. game.StarterGui.ScreenGui.TEAMASCORE.Text = ascore game.StarterGui.ScreenGui.TEAMBSCORE.Text = bscore
[::Fellow Renegades::] http://web.roblox.com/My/Groups.aspx?gid=757745 |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2013 02:40 PM |
Died event on the Humanoid.
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character.Humanoid.Died:connect(function() -- code here end) end) end) |
|
|
| Report Abuse |
|
|
darkwisp
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 22653 |
|
|
| 14 Oct 2013 02:54 PM |
Now it works when I play but on test mode with my char, it does not want to work. --Darkwisp made this. --Making some variables for VALUE ascore = game.StarterGui.ScreenGui.TEAMASCORE.Value.Value bscore = game.StarterGui.ScreenGui.TEAMBSCORE.Value.Value -- Making Value show on text. game.StarterGui.ScreenGui.TEAMASCORE.Text = ascore game.StarterGui.ScreenGui.TEAMBSCORE.Text = bscore
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) DEATH = character.Humanoid.Died:connect(function() -- code here if DEATH == true then ascore = ascore -1 end end) end) end)
[::Fellow Renegades::] http://web.roblox.com/My/Groups.aspx?gid=757745 |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2013 02:55 PM |
PlayerAdded no worky on Solo.
Use Tools > Start Server then after that window Tools >Start Player instead I guess. |
|
|
| Report Abuse |
|
|
darkwisp
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 22653 |
|
|
| 14 Oct 2013 03:07 PM |
Thanks.
[::Fellow Renegades::] http://web.roblox.com/My/Groups.aspx?gid=757745 |
|
|
| Report Abuse |
|
|