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 » Game Creation and Development » Game Design
Home Search
 

Help.

Previous Thread :: Next Thread 
theGOLDENidol is not online. theGOLDENidol
Joined: 11 Apr 2011
Total Posts: 787
22 Nov 2014 10:22 PM
local char = script.Parent.Parent.Parent.Parent.Character
hum = char.Humanoid
hum.Changed:connect(function()
script.Parent.Size = UDim2.new(hum.Health/hum.MaxHealth,0,0.013,0)
end)

The health bar keeps on getting resized really big on the x axis

Where full health is supposed to be on the bar, its at 15.

Siggy enough for you m8?
Report Abuse
theGOLDENidol is not online. theGOLDENidol
Joined: 11 Apr 2011
Total Posts: 787
23 Nov 2014 08:32 AM
Bump

Siggy enough for you m8?
Report Abuse
theGOLDENidol is not online. theGOLDENidol
Joined: 11 Apr 2011
Total Posts: 787
23 Nov 2014 09:18 AM
bump
Report Abuse
theGOLDENidol is not online. theGOLDENidol
Joined: 11 Apr 2011
Total Posts: 787
23 Nov 2014 10:14 AM
bump
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
23 Nov 2014 10:43 AM
this is a free model script that works
maybe this can help you


local PositionX = script.Parent.Position.X.Offset
local initX = script.Parent.Size.X.Offset

while true do
wait()
local PlayerHealth = script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health
local PlayerMaxHealth = script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.MaxHealth
local Pie = (PlayerHealth / PlayerMaxHealth) --Missed Scale
script.Parent.Size = UDim2.new( 0, initX*Pie, 0, 20)

end
Report Abuse
theGOLDENidol is not online. theGOLDENidol
Joined: 11 Apr 2011
Total Posts: 787
23 Nov 2014 11:49 AM
debugger can be attached to a script. thats what it says..
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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