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: Player Point Formula

Previous Thread :: Next Thread 
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
10 Jun 2014 02:50 AM
Does it use math.floor or math.ceil?

math.floor(Amount*0.3)*100

Or

math.ceil(Amount*0.3)*100
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
10 Jun 2014 02:54 AM
If you want to round something you can always do

math.floor((amount*.3)+.5)*100

I don't know what you want.
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
10 Jun 2014 03:07 AM
I dont know what roblox formula is for generating player points, math.ceil or math.floor
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
10 Jun 2014 06:50 AM
:c
Report Abuse
VolcanoINC is not online. VolcanoINC
Joined: 19 Sep 2008
Total Posts: 1395
10 Jun 2014 06:51 AM
The amount deducted from your income is floored, meaning that the amount of robux sunk in the transaction is equal to math.ceil(Amount*0.3)*100. So you'd use that to calculate your points income.

To get your points budget, you'd best use PointsService:GetAwardablePoints(), though.
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
10 Jun 2014 06:54 AM
RobuxSpent = 5
ppsGenerated = RobuxSpent * 30
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
10 Jun 2014 06:56 AM
Thanks a lot Volcanic!
c:
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
10 Jun 2014 06:56 AM
VolcanINC*
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
10 Jun 2014 06:57 AM
VolcanoINC**
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
10 Jun 2014 07:47 AM
Lol nice spelling :p
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