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
 

Re: No idea what is wrong with this

Previous Thread :: Next Thread 
ConvexPolygon is not online. ConvexPolygon
Joined: 10 Apr 2012
Total Posts: 7727
16 Nov 2014 02:58 PM
while true do
wait()

if script.Parent.Size.X.Offset <= -135 then
game.Players.LocalPlayer.Character.Humanoid.Health = 0

end
end


If the hunger gui is lowered fully, the character will die.
What is wrong?
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
16 Nov 2014 02:59 PM
You can put that code in the changed event I gave you on your last post rather than putting it in an infinite loop.
Report Abuse
ConvexPolygon is not online. ConvexPolygon
Joined: 10 Apr 2012
Total Posts: 7727
16 Nov 2014 03:04 PM
but why doesn't it work?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
16 Nov 2014 03:10 PM
Did you check the output? The script is okay.
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