thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
|
| 22 Sep 2013 03:14 PM |
game.Players.PlayerAdded:connect(function(player) stats = Instance.new("IntValue", player) stats.Name = "leaderstats" Kos = Instance.new("IntValue", stats) Kos.Name = "Ko's" Wos = Instance.new("IntValue", stats) Wos.Name = "Wo's" Wos.Value = 0 Kos.Value = 0 end) function giveawipeout() player = game.Players.Player:FindFirstChild("Humanoid") if player.Humanoid.Health == nil then Wos.Value = +1 end end
giveawipeout()
|
|
|
| Report Abuse |
|
|
Geomaster
|
  |
| Joined: 05 Jul 2008 |
| Total Posts: 1480 |
|
|
| 22 Sep 2013 03:17 PM |
Nope.
'player' is an argument of the first function, therefore it can't be used in any other functions. However, you could do this:
game.Players.PlayerAdded:connect(function(player) local stats = Instance.new("IntValue", player) stats.Name = "leaderstats" local Kos = Instance.new("IntValue", stats) Kos.Name = "Ko's" local Wos = Instance.new("IntValue", stats) Wos.Name = "Wo's" player.Character["Humanoid"].Died:connect(function() Wos.Value= Wos.Value + 1 end) end) |
|
|
| Report Abuse |
|
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
|
| 22 Sep 2013 03:18 PM |
| I never knew there was a propertie .died. |
|
|
| Report Abuse |
|
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 22 Sep 2013 03:46 PM |
| Go play your game with that script then try it. |
|
|
| Report Abuse |
|
|
| |
|