|
| 08 Mar 2013 03:52 PM |
| What Body thing would I use? I'm pretty sure BodyGyro. And how would I edit the properties to point at a certain point in the world? |
|
|
| Report Abuse |
|
|
cart6157
|
  |
| Joined: 28 Feb 2009 |
| Total Posts: 2194 |
|
|
| 08 Mar 2013 03:54 PM |
local mouse = player:GetMouse()
Look in the wiki for 'mouse' and you'll see a lot of properties. This is just how to get it. |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2013 03:55 PM |
| I know how to do that. Do you not read at all? I'm looking for the Body-thing type I need, and what properties to edit. |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Mar 2013 04:15 PM |
body gyro.
mouse = game.Players.LocalPlayer:GetMouse() part = the part your using gyro = part.BodyGyro
mouse.Move:connect(function() gyro.cframe = CFrame.new(part.Position, mouse.Hit.p) end)
local script of course. The function will fire when ever the mouse moves. |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2013 05:08 PM |
| Would there be any way to just change the the Z and X values so the brick stays level? |
|
|
| Report Abuse |
|
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 08 Mar 2013 05:44 PM |
| Just set no torque on those axis. |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2013 05:50 PM |
| Also, Is there a way to point a specific surface on the block? |
|
|
| Report Abuse |
|
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 08 Mar 2013 05:53 PM |
| Mouse.hit.p if you want the position where you hit, mouse.hit I believe returns the object, or you could extrapolate from the position and size where the edges are and work from there. |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2013 06:02 PM |
| I mean, the block with the gyro. Is there a way to always point one specific surface of that block at the mouse? |
|
|
| Report Abuse |
|
|
| |
|