skate1011
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 688 |
|
|
| 23 May 2012 06:30 PM |
I have this tool that makes a part wherever you click, but I am wondering, How I can have the position of the part round to the nearest whole number. -Skate1011 |
|
|
| Report Abuse |
|
|
|
| 23 May 2012 06:33 PM |
| You could use math.floor(num) to round to the lowest integer, or math.ceil(num) to round to the highest integer. |
|
|
| Report Abuse |
|
|
skate1011
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 688 |
|
| |
|
|
| 23 May 2012 08:52 PM |
Better idea: set the part's FormFactor to 'Symmetrical'.
That'll make the position round automatically to integers. |
|
|
| Report Abuse |
|
|