|
| 10 Sep 2011 03:40 PM |
function onPlayerEntered(newPlayer) local a = p.Parent:findFirstChild("Humanoid") if (a ~= nil) then a.MaxHealth = 50 a.Health = 50
end end game.Players.ChildAdded:connect(onPlayerEntered) |
|
|
| Report Abuse |
|
|
rpg877
|
  |
| Joined: 14 Sep 2008 |
| Total Posts: 447 |
|
|
| 10 Sep 2011 04:10 PM |
| i dont know the answere so im going to help by bumping since this is on the second page with no replies |
|
|
| Report Abuse |
|
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 10 Sep 2011 04:14 PM |
You didn't define 'p'.
Here's mine:
game.Players.ChildAdded:connect(function (newPlayer) local a = newPlayer.Character:FindFirstChild("Humanoid") if a then a.MaxHealth = 200 a.Health = 200 end end) |
|
|
| Report Abuse |
|
|
rpg877
|
  |
| Joined: 14 Sep 2008 |
| Total Posts: 447 |
|
| |
|