rockman5
|
  |
| Joined: 17 Oct 2008 |
| Total Posts: 2852 |
|
|
| 27 Jun 2012 04:17 PM |
I createed a script that gives god health , 50 walkspeed, and a forcefield onSpawn and it works..but im having a problem changing my Heatlh to the same as my Maxhealth:
Workspace:FindFirstChild("rockman5"):BreakJoints()
game.Players.rockman5.CharacterAdded:connect(function(character)
if character.Name == "rockman5" then
character.Humanoid.MaxHealth = math.huge
Health = MaxHealth
character.Humanoid.WalkSpeed = 50
Instance.new("ForceField", character)
end
end) |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 27 Jun 2012 04:18 PM |
| character.Humanoid.Health = character.Humanoid.MaxHealth |
|
|
| Report Abuse |
|
|
1pie23
|
  |
| Joined: 11 Jul 2010 |
| Total Posts: 1865 |
|
|
| 27 Jun 2012 04:19 PM |
| character.Humanoid.Health = character.Humanoid.MaxHealth |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 27 Jun 2012 04:19 PM |
"Health = MaxHealth "
character.Humanoid.Health = character.Humanoid.MaxHealth |
|
|
| Report Abuse |
|
|
1pie23
|
  |
| Joined: 11 Jul 2010 |
| Total Posts: 1865 |
|
| |
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
| |
|
rockman5
|
  |
| Joined: 17 Oct 2008 |
| Total Posts: 2852 |
|
|
| 27 Jun 2012 04:26 PM |
| Still doesnt work....weird |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
| |
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
| |
|
rockman5
|
  |
| Joined: 17 Oct 2008 |
| Total Posts: 2852 |
|
|
| 27 Jun 2012 04:38 PM |
Try it....
Workspace:FindFirstChild("rockman5"):BreakJoints()
game.Players.rockman5.CharacterAdded:connect(function(character)
if character.Name == "rockman5" then
character.Humanoid.MaxHealth = math.huge
character.Humanoid.Health = character.Humanoid.MaxHealth
character.Humanoid.WalkSpeed = 50
Instance.new("ForceField", character)
end
end) |
|
|
| Report Abuse |
|
|