chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 11 Jan 2015 01:19 PM |
so i have a part moving script, it works fine but how would i make it move in a grid style?
this is the moving part:
thing.Position = Vector3.new(mouse.hit.p.X,mouse.hit.p.Y,mouse.hit.p.Z) |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
| |
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
| |
|
|
| 11 Jan 2015 01:41 PM |
| Round off the number to the nearest multiple of specified increment. |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2015 01:42 PM |
local function Round(Number, Increment) return math.floor(Number*Increment + 0.5)/Increment end |
|
|
| Report Abuse |
|
|