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 » Scripting Helpers
Home Search
 

Not working at all?

Previous Thread :: Next Thread 
V0xels is not online. V0xels
Joined: 30 Mar 2012
Total Posts: 2072
03 Mar 2014 08:12 PM
No output error, in localscript.

game.Players.ChildAdded:connect(function()

while wait() do
health = p.Humanoid.Health
bar = script.Parent
bar.Size = UDim2.new(0, health*2, 1, 0)
end
end)
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
03 Mar 2014 08:13 PM
"
game.Players.ChildAdded:connect(function()"
whats with this line??

while wait() do
health = p.Humanoid.Health--is "p" the players character??
bar = script.Parent
bar.Size = UDim2.new(0, health*2, 1, 0)
end
end)
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
03 Mar 2014 08:14 PM
function(p)

p.Character.Humanoid.Health
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
03 Mar 2014 08:17 PM


game.Players.PlayetAdded:connect(function(p)

while wait() do
health = p.Character.Humanoid.Health
bar = script.Parent
bar.Size = UDim2.new(0, health*2, 1, 0)
end
end)
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
03 Mar 2014 08:19 PM
ty warpsy

but wtf is plater
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
03 Mar 2014 08:21 PM
Bare with me, I'm using an iPod. It's Player
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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