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: I need an equation

Previous Thread :: Next Thread 
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
30 Dec 2016 11:29 PM
How would I do this? I have a brick size, X. I have a max brick size, Z. I have a amount, P. I have an needed amount, L. How would I make it, so that X is scaled off of P and L? Like if # ## %50 to L, then # ## %50 to Z?
Report Abuse
PeterFreuchen is not online. PeterFreuchen
Joined: 10 Oct 2012
Total Posts: 190
30 Dec 2016 11:32 PM
Can you resay the examples? They were hashtagged a bit.
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
30 Dec 2016 11:33 PM
I have a max brick size, Z. I have another brick size, Y. I have an amount, K. I have a needed amount, H.

How would I make Y scaled onto Z, the way K is scaled onto H?

Like K is %50 to H, then Y is %50 the length of Z?
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
30 Dec 2016 11:39 PM
Nevermind, was a ton simpler than I thought it was :3

local s = needed/exp.Value
local size = max.Size.X/s
Report Abuse
PeterFreuchen is not online. PeterFreuchen
Joined: 10 Oct 2012
Total Posts: 190
30 Dec 2016 11:39 PM
Like K is %50 to H, then Y is %50 the length of Z?

So if H%50 = K then Z%50 = Y?

Do you want this to be shown in one equation, or two? Is it alright if I use an if statement, or just an equation?
Report Abuse
PeterFreuchen is not online. PeterFreuchen
Joined: 10 Oct 2012
Total Posts: 190
30 Dec 2016 11:40 PM
lol alright. :P
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