kapandr
|
  |
| Joined: 26 Jan 2013 |
| Total Posts: 145 |
|
|
| 12 Jun 2014 06:20 PM |
while wait(0.01) do part.CFrame = CFrame.new(part.Position, Mouse.Hit.p) end |
|
|
| Report Abuse |
|
|
kapandr
|
  |
| Joined: 26 Jan 2013 |
| Total Posts: 145 |
|
| |
|
kapandr
|
  |
| Joined: 26 Jan 2013 |
| Total Posts: 145 |
|
| |
|
kapandr
|
  |
| Joined: 26 Jan 2013 |
| Total Posts: 145 |
|
| |
|
| |
|
|
| 12 Jun 2014 07:29 PM |
CFrame.new requires 3 arguments x,y,z , yours doesnt work since it gives 6 arguments(2 Vector values), x,y,z of part and x,y,z of mouse.Hit |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 07:30 PM |
| It doesn't always require 3 arguments |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 07:31 PM |
| No?O_o , on the wiki stays only x,y and z nothing more nothing less, or are there any optional ones that arent listed anywhere? |
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Jun 2014 07:33 PM |
There are multiple types of CFrames with different arguments. One of them use the R01 matrix or something like that, where it has the first 3 arguments, and then 9, from the matrix
CFrame.new(1,0,1,0,0,-1,0,-1,0) |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 07:33 PM |
| ahhh right, i forgot that one, thanks :D |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 07:33 PM |
Also, this is calid for teleporting someone back to a CFrame value. I've used it before
player.Character.Torso.CFrame = CFrame.new(CFrameVal.Value.p) |
|
|
| Report Abuse |
|
|
kapandr
|
  |
| Joined: 26 Jan 2013 |
| Total Posts: 145 |
|
|
| 12 Jun 2014 07:34 PM |
| so how would I do mouse.hit.p as focus??? |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 07:35 PM |
| Like I said, show the whole script |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 12 Jun 2014 07:36 PM |
Accomplish, they are called consturctors
OP, your original should point the Part to where the mouse is |
|
|
| Report Abuse |
|
|
kapandr
|
  |
| Joined: 26 Jan 2013 |
| Total Posts: 145 |
|
|
| 12 Jun 2014 07:40 PM |
| part.CFrame = CFrame.new(part.CFrame, Mouse.Hit.p)? |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 07:42 PM |
| What are you trying to do? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 12 Jun 2014 07:43 PM |
No:
part.CFrame = CFrame.new(part.CFrame.p, Mouse.Hit.p)? |
|
|
| Report Abuse |
|
|
kapandr
|
  |
| Joined: 26 Jan 2013 |
| Total Posts: 145 |
|
|
| 12 Jun 2014 07:43 PM |
| point the Part at the Mouse :P |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 12 Jun 2014 07:43 PM |
| Or your first one, using Position |
|
|
| Report Abuse |
|
|
kapandr
|
  |
| Joined: 26 Jan 2013 |
| Total Posts: 145 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
kapandr
|
  |
| Joined: 26 Jan 2013 |
| Total Posts: 145 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 12 Jun 2014 07:49 PM |
| Well it would work fine. So you're doing something wrong. |
|
|
| Report Abuse |
|
|
kapandr
|
  |
| Joined: 26 Jan 2013 |
| Total Posts: 145 |
|
|
| 12 Jun 2014 07:51 PM |
| well I got the Owner Value were it's only set to a Player wen someone touches the Part... do I needa do WaitForChild()? or repeat wait() until? |
|
|
| Report Abuse |
|
|