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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
05 Aug 2014 09:32 PM
[ Content Deleted ]
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
05 Aug 2014 10:01 PM
[ Content Deleted ]
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
05 Aug 2014 10:08 PM
[ Content Deleted ]
Report Abuse
2eggnog is not online. 2eggnog
Joined: 08 Nov 2008
Total Posts: 1351
05 Aug 2014 10:10 PM
You have a health bar and a shield bar. Which one are you referring to?
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
05 Aug 2014 10:13 PM
[ Content Deleted ]
Report Abuse
2eggnog is not online. 2eggnog
Joined: 08 Nov 2008
Total Posts: 1351
05 Aug 2014 10:15 PM
Is that the entire thing?
Report Abuse
2eggnog is not online. 2eggnog
Joined: 08 Nov 2008
Total Posts: 1351
05 Aug 2014 10:18 PM
If not, I believe I know the problem. You're probably setting health = humanoid.Health at the very beginning. The variable does not act as a pointer, rather it makes a copy of the value. Each time that piece of code runs, it subtracts from the health until it reaches negative infinity. Instead, refer to humanoid.Health directly or re-declare as a local variable each time.
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
05 Aug 2014 10:24 PM
[ Content Deleted ]
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
06 Aug 2014 08:14 AM
[ Content Deleted ]
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
06 Aug 2014 08:19 AM
Print the values each time the if statement occurs so that you can have a clear view if the values are becoming more like outliers.
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
06 Aug 2014 08:20 AM
[ Content Deleted ]
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
06 Aug 2014 08:20 AM
Therefore you can see what values are needed to be fixed.
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
06 Aug 2014 08:22 AM
[ Content Deleted ]
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
06 Aug 2014 08:24 AM
[ Content Deleted ]
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
06 Aug 2014 08:26 AM
What are the values of those two variables?
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
06 Aug 2014 08:27 AM
Maybe the math in it is wrong. The X scale value needs to be numbers between 0 to 1
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
06 Aug 2014 08:35 AM
[ Content Deleted ]
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
06 Aug 2014 08:51 AM
[ Content Deleted ]
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
06 Aug 2014 08:54 AM
Can you stop asking this.
We've already established that you're doing something stupid.
Report Abuse
CalvinRBLX is not online. CalvinRBLX
Joined: 25 Jun 2012
Total Posts: 308
06 Aug 2014 09:18 AM
If the bar is within another frame, then you need to scale it to the max size you want it inside that frame:

i.e 0.8 is 8/10's of the frame it's in

However if it's directly a frame in the ScreenGui, then it will be 8/10's of the local screen.
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
06 Aug 2014 09:41 AM
[ Content Deleted ]
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
06 Aug 2014 10:00 AM
I told u in the first place to print it to identify the problem to check if the number is between 0 and 1 and der u go.
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