Abstains
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 6222 |
|
|
| 22 Jun 2015 06:37 PM |
wait(5) player=script.Parent.Parent.Parent.Parent.Parent.Parent player.PlayerGui.HealthGUI:Destroy() while true do wait(.01) health=math.floor(player.Character.Humanoid.Health) mhealth=player.Character.Humanoid.MaxHealth script.Parent.Size=UDim2.new(health/mhealth,0,1,0) script.Parent.Parent.TextLabel.Text="HP: "..tostring(health).." / "..mhealth end
Basically I want the health to appear in the GUI I put this script in, but it won't work qq
-iSoulZy/InsanelyCold, LMaD'ing since 2012. Add 21k posts to my post count. |
|
|
| Report Abuse |
|
|
Abstains
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 6222 |
|
|
| 22 Jun 2015 06:41 PM |
-iSoulZy/InsanelyCold, LMaD'ing since 2012. Add 21k posts to my post count. |
|
|
| Report Abuse |
|
|
Abstains
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 6222 |
|
|
| 22 Jun 2015 06:42 PM |
a
-iSoulZy/InsanelyCold, LMaD'ing since 2012. Add 21k posts to my post count. |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 22 Jun 2015 06:44 PM |
game.Players.LocalPlayer.Character.Humanoid.Health.Changed:connect(function() local health= math.floor(game.Players.LocalPlayer.Character.Humanoid.Health) local mhealth= game.Players.LocalPlayer.Character.Humanoid.MaxHealth script.Parent.Size=UDim2.new(health/mhealth,0,10,0) script.Parent.Parent.TextLabel.Text="HP: "..tostring(health).." / "..tostring(mhealth) end) |
|
|
| Report Abuse |
|
|
Abstains
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 6222 |
|
|
| 22 Jun 2015 06:44 PM |
wu good
-iSoulZy/InsanelyCold, LMaD'ing since 2012. Add 21k posts to my post count. |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2015 06:44 PM |
local player = game.Players.LocalPlayer repeat wait() until player.Character local char = player.Character
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
while wait() do health=math.floor(player.Character.Humanoid.Health) mhealth=player.Character.Humanoid.MaxHealth script.Parent.Size=UDim2.new(health/mhealth,0,1,0) script.Parent.Parent.TextLabel.Text="HP: "..tostring(health).." / "..mhealth end
this is a localscript
hopefully helps |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 22 Jun 2015 06:45 PM |
| LOL! COLIN USING WHILE LOOPS! |
|
|
| Report Abuse |
|
|
Abstains
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 6222 |
|
|
| 22 Jun 2015 06:45 PM |
i'll try both out rn
-iSoulZy/InsanelyCold, LMaD'ing since 2012. Add 21k posts to my post count. |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2015 06:46 PM |
tbh do what 02 did
change my while wait() do to the changed
and chang my end to end) |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2015 06:46 PM |
@02
i copied pasted his
refined it lol |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2015 06:47 PM |
and ur makin fun of me when u cant even understand my code m8
u wan go |
|
|
| Report Abuse |
|
|