badfitz67
|
  |
| Joined: 03 Jun 2010 |
| Total Posts: 13165 |
|
|
| 22 Oct 2015 04:04 PM |
I've made a custom build system kind of thing, it works fine except the fact I can't build directly onto a face, only ontop or next to it if it's on the ground.
I've been trying to ages to make it so it can build onto the faces of a part while retaining it's grid-locked movement.
I have honestly no idea how to do this or where to even start. Can someone provide some example code?
m.Move:connect(function() if m.Target then drag.Position = Vector3.new(math.floor(m.Hit.p.X/gridsize)*gridsize,m.Target.Position.Y,math.floor(m.Hit.p.Z/gridsize)*gridsize) db = false end end)
Never too late to change a life, sir. |
|
|
| Report Abuse |
|
|
badfitz67
|
  |
| Joined: 03 Jun 2010 |
| Total Posts: 13165 |
|
|
| 22 Oct 2015 04:06 PM |
also, onclick, the block is placed at the current position of drag
Never too late to change a life, sir. |
|
|
| Report Abuse |
|
|
badfitz67
|
  |
| Joined: 03 Jun 2010 |
| Total Posts: 13165 |
|
|
| 22 Oct 2015 04:20 PM |
Never too late to change a life, sir. |
|
|
| Report Abuse |
|
|
badfitz67
|
  |
| Joined: 03 Jun 2010 |
| Total Posts: 13165 |
|
|
| 22 Oct 2015 04:58 PM |
NB
Never too late to change a life, sir. |
|
|
| Report Abuse |
|
|