of     1   

ninja900500
#141334395Thursday, July 24, 2014 1:34 AM GMT

I'm trying to use fromAxisAngle, but it won't work: Vehicle.Base.TurretWeld.C0 = CFrame.fromAxisAngle(Vehicle.Base.TurretWeld.C0.p, Vector3.new(Mouse.Hit.p.x, Vehicle.Base.Position.y, Mouse.Hit.p.z)) > 18:33:31.541 - Players.ninja900500.Backpack.tank testy:22: bad argument #2 to 'fromAxisAngle' (number expected, got userdata) 18:33:31.541 - Script 'Players.ninja900500.Backpack.tank testy', Line 22 18:33:31.542 - Stack End 18:33:31.543 - Disconnected event because of exception
Notunknown99
#141334580Thursday, July 24, 2014 1:36 AM GMT

CFrame.new(Vector3, Vector3)
ninja900500
#141334716Thursday, July 24, 2014 1:37 AM GMT

Mouse.Move:connect(function() if Inside and Vehicle then Vehicle.Base.TurretWeld.C0 = CFrame.fromAxisAngle(Vector3.new(Vehicle.Base.TurretWeld.C0.p), Vector3.new(Mouse.Hit.p.x, Vehicle.Base.Position.y, Mouse.Hit.p.z)) end end) Still same problem.
FertileTurtle
#141334935Thursday, July 24, 2014 1:39 AM GMT

CFrame.fromAxisAngle(Vector3 v, number r) Creates a rotated CFrame from a Unit Vector3 and a rotation in radians http://wiki.roblox.com/index.php?title=Cframe
FlamedSkull
#141335047Thursday, July 24, 2014 1:40 AM GMT

CFrame.fromAxisAngle(CFramePosition,ANumber)
ninja900500
#141335449Thursday, July 24, 2014 1:44 AM GMT

What i'm trying to accomplish is making my brick face it's front side at your mouse at all times. Is there another way to do this? Mouse.Move:connect(function() if Inside and Vehicle then Vehicle.Base.TurretWeld.C0 = CFrame.new(Vehicle.Base.TurretWeld.C0.p, Vector3.new(Mouse.Hit.p.x, Vehicle.Base.Position.y, Mouse.Hit.p.z)) end end) That's what I got so far, but it just spins and doesn't point it's front face to your mouse.

    of     1