generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Club Houses » Let's Make a Deal
Home Search
 

@LMaD scripters

Previous Thread :: Next Thread 
Abstains is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
presidentcolin is not online. presidentcolin
Joined: 24 Mar 2010
Total Posts: 5028
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 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
22 Jun 2015 06:45 PM
LOL! COLIN USING WHILE LOOPS!
Report Abuse
Abstains is not online. 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
presidentcolin is not online. presidentcolin
Joined: 24 Mar 2010
Total Posts: 5028
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
presidentcolin is not online. presidentcolin
Joined: 24 Mar 2010
Total Posts: 5028
22 Jun 2015 06:46 PM
@02

i copied pasted his

refined it lol
Report Abuse
presidentcolin is not online. presidentcolin
Joined: 24 Mar 2010
Total Posts: 5028
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Let's Make a Deal
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image