|
| 04 Sep 2011 07:20 PM |
HopperBin = script.Parent
function FlyTo(mouse) FlyPos = mouse.hit.p Character = script.Parent.Parent.Parent.Character PlaneE = Character.Plane.Engine local dir = (FlyPos - PlaneE.Position).unit local pos = PlaneE + dir PlaneE.BodyGyro.cframe = CFrame.new(pos, pos + dir) -- This dun work end
function Start(mouse) Character = script.Parent.Parent.Parent.Character if Character:findFirstChild("Plane") then mouse.Button1Down:connect(function () FlyTo(mouse) end) end end
HopperBin.Selected:connect(Start)
--It dun work caus I dun know how dun turn dun Usadurtahs untah Vaktor3s, can someone dun help me?
|
|
|
| Report Abuse |
|
|
|
| 04 Sep 2011 07:25 PM |
| I can't tell if you're saying User Data, UDim2, or you'sa herptard. |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 04 Sep 2011 07:29 PM |
.cframe=CFrame??
<'+1 Post. Ujelly?'> |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 04 Sep 2011 07:30 PM |
Also, cframe should be like dis (x,y,z) not just 2.
<'+1 Post. Ujelly?'> |
|
|
| Report Abuse |
|
|
Riderj
|
  |
| Joined: 15 Aug 2011 |
| Total Posts: 1534 |
|
|
| 04 Sep 2011 07:34 PM |
nate890, learn the parameter before you post plox?
CFrame.New(Vector3,lookvector) |
|
|
| Report Abuse |
|
|
elucidir
|
  |
| Joined: 08 Aug 2011 |
| Total Posts: 243 |
|
|
| 04 Sep 2011 07:38 PM |
PlaneE = Character.Plane.Engine ܵܵܵܵܵܵܵ-- Object local dir = (FlyPos - PlaneE.Position).unit ܵܵܵ-- Vector3 local pos = PlaneE + dir ܵܵܵܵܵܵܵܵܵܵܵܵ-- Object + Vector3 |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 04 Sep 2011 10:14 PM |
Rider , I don't use CFrame often, and I don't know what he was trying to do >.<
<'+1 Post. Ujelly?'> |
|
|
| Report Abuse |
|
|
| |
|