|
| 01 Mar 2016 07:33 PM |
| i have a loop constantly setting a part to mouse.Hit.p, but the part starts rising into the camera and stuff because mouse.Hit.p keeps going above the part. basically, how do i stop this? |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2016 07:39 PM |
1. use Mouse.Move so it only updates when needed. 2. SetPrimaryPartCFrame is your solution (and make y-axis a set height).
http://wiki.roblox.com/index.php?title=API:Class/Model/SetPrimaryPartCFrame
-secretidagent |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2016 07:41 PM |
| ah yes, i forgot about the y axis thank you :D |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2016 07:45 PM |
| So, another silly question, how exactly do I keep the Y a set height? I can't make it something like 100 or whatever b/c i have changing elevations and I can't preset it b/c people will click on their heads. I just want the part to be on flat ground |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Mar 2016 07:53 PM |
No.
Mouse.TargetFilter = Part
|
|
|
| Report Abuse |
|
|
| |
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 01 Mar 2016 08:04 PM |
What you want is this: http://wiki.roblox.com/index.php?title=API:Class/Mouse/TargetFilter
|
|
|
| Report Abuse |
|
|
|
| 01 Mar 2016 08:09 PM |
| levi just showed me that but I don't know how I can just completely ignore terrain. it'd go to nil |
|
|
| Report Abuse |
|
|