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: Finding x

Previous Thread :: Next Thread 
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
17 Jan 2015 03:08 PM
How would I on a computer find the value of x to equal 5?


[5 = Humanoid.MaxHealth/x]

and just say the MaxHealth was 100
it would find [x = 20]

How would i perform this on roblox scritping?
Report Abuse
LucasLua is not online. LucasLua
Joined: 18 Jun 2008
Total Posts: 7386
17 Jan 2015 03:11 PM
x = MaxHealth / 5
Report Abuse
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
17 Jan 2015 03:12 PM
That would not get what i want. x HAS to be 5
Report Abuse
LucasLua is not online. LucasLua
Joined: 18 Jun 2008
Total Posts: 7386
17 Jan 2015 03:12 PM
I used basic algrebra -

Multiply both sides by X to move X to the other side, and divide both sides by 5 to move 5 to the other side.
Report Abuse
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
17 Jan 2015 03:13 PM
But that is also not telling me how to do that in roblox....
Report Abuse
LucasLua is not online. LucasLua
Joined: 18 Jun 2008
Total Posts: 7386
17 Jan 2015 03:13 PM
MaxHealth = 100

print(MaxHealth / 5)

> 20

MaxHealth = 42

print(MaxHealth / 5)

> 8.4


print(100 / 20)

> 5

print(42 / 8.4)

> 5
Report Abuse
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
17 Jan 2015 03:22 PM
That is not exactly what i want...

So just say the Max HP is 200
i need a way to find out what number Multiplyed by 200 is equal to 500.
Report Abuse
xolbStudios is not online. xolbStudios
Joined: 05 Nov 2009
Total Posts: 504
17 Jan 2015 03:24 PM
500/200 = x

x*200 = 500
Report Abuse
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
17 Jan 2015 03:29 PM
THANNNK YOUU!
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