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 » Scripters
Home Search
 

Re: Quick Help Converting to FE please? [much love]

Previous Thread :: Next Thread 
leSovereign is online. leSovereign
Joined: 26 Aug 2011
Total Posts: 1952
26 Nov 2017 11:58 AM
local bar = script.Parent
local character = script.Parent.Parent.Parent.Parent.Parent.Parent.Character
local text1 = script.Parent.Parent.TextLabel

function healthChange(health)
local new = 28 * health / character.Humanoid.MaxHealth
script.Parent:TweenSizeAndPosition(UDim2.new(0,new,0,8), UDim2.new(0, 10,0, 7))
text1.Text = 'HP: '..character.Humanoid.Health.." / "..character.Humanoid.MaxHealth

if character.Humanoid.Health < 60 and character.Humanoid.Health > 30 then
script.Parent.BackgroundColor3 = Color3.new(204,153,0)

elseif character.Humanoid.Health < 30 then
script.Parent.BackgroundColor3 = Color3.new(255,0,0)

else script.Parent.BackgroundColor3 = Color3.new(0,255,0)

end
end



character.Humanoid.HealthChanged:connect(healthChange)



Report Abuse
bro549 is not online. bro549
Joined: 18 Sep 2009
Total Posts: 6
26 Nov 2017 12:01 PM
remote events
Report Abuse
zC0LX is not online. zC0LX
Joined: 02 Apr 2017
Total Posts: 59
26 Nov 2017 12:01 PM
i sent a friend request, i need team create cuz its like 4 scripts


#code print('oh no an error!!')
Report Abuse
leSovereign is online. leSovereign
Joined: 26 Aug 2011
Total Posts: 1952
26 Nov 2017 12:03 PM
adding you Col


Report Abuse
leSovereign is online. leSovereign
Joined: 26 Aug 2011
Total Posts: 1952
26 Nov 2017 12:07 PM
added you too bro


Report Abuse
leSovereign is online. leSovereign
Joined: 26 Aug 2011
Total Posts: 1952
26 Nov 2017 12:41 PM
Many thanks to bro549! Awesome dude.


Report Abuse
iiNemo is online. iiNemo
Joined: 22 Jul 2013
Total Posts: 2380
26 Nov 2017 12:44 PM
FE doesn't affect this tho


Fish Are Friends, Not Food
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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