nise45
|
  |
| Joined: 17 Nov 2008 |
| Total Posts: 7002 |
|
|
| 22 Jul 2013 05:01 AM |
It would be much better than using CFrames, and easier.
~ siggy says hi |
|
|
| Report Abuse |
|
|
iCookieNL
|
  |
| Joined: 24 May 2009 |
| Total Posts: 1103 |
|
|
| 22 Jul 2013 05:05 AM |
it can.
"The biggest enemy of the programmer is the user." |
|
|
| Report Abuse |
|
|
nise45
|
  |
| Joined: 17 Nov 2008 |
| Total Posts: 7002 |
|
|
| 22 Jul 2013 05:06 AM |
Then why are CFrames so primarily used?
~ siggy says hi |
|
|
| Report Abuse |
|
|
iCookieNL
|
  |
| Joined: 24 May 2009 |
| Total Posts: 1103 |
|
|
| 22 Jul 2013 05:07 AM |
as it allows you to rotate the player to look at a specified point
"The biggest enemy of the programmer is the user." |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 22 Jul 2013 05:21 AM |
MoveTo has broken several times to my understanding. It doesn't seem reliable. Personally, if that wasn't an issue, I still wouldn't use MoveTo. The only use that method has is the walking.
~ The ATR Fishie ~ |
|
|
| Report Abuse |
|
|
iCookieNL
|
  |
| Joined: 24 May 2009 |
| Total Posts: 1103 |
|
|
| 22 Jul 2013 05:29 AM |
@lord and moving entire models
"The biggest enemy of the programmer is the user." |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 22 Jul 2013 05:46 AM |
Right, but MoveTo won't move something inside of a brick, which I find quite disappointing.
~ The ATR Fishie ~ |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2013 07:23 AM |
Instead of MoveTo() I use :
game.Workspace.Player.Torso.CFrame = CFrame.new(Vector3.new(0, 0, 0))
Of course with modified directories... And different coordinates... |
|
|
| Report Abuse |
|
|
Java3D
|
  |
| Joined: 29 Jul 2012 |
| Total Posts: 1229 |
|
|
| 22 Jul 2013 09:14 AM |
@Rambo I put this function together yesterday, it may be what you're looking for.
function CAll(a,c) local t = {} for n,o in pairs(a:GetChildren())do if(o:IsA(c))then table.insert(t,o)end end for nu,ob in pairs(CAll(o,c))do table.insert(t,ob)end end return t end
function ModelCFrame(Model,Frame) local MidFrame = Model:GetModelCFrame() local Parts,PartFrames = CAll(Model,"BasePart"),{} MidFrame = Model:GetModelCFrame() for n,o in pairs(Parts)do PartFrames[n] = MidFrame:toObjectSpace(o.CFrame)end for n,o in pairs(Parts)do o.CFrame = Frame*PartFrames[n]end end |
|
|
| Report Abuse |
|
|
compy111
|
  |
| Joined: 02 Apr 2009 |
| Total Posts: 583 |
|
|
| 22 Jul 2013 09:21 AM |
MoveTo can be used on a humanoid, that makes it walk to the location. Cframe will make the player teleport. |
|
|
| Report Abuse |
|
|
Java3D
|
  |
| Joined: 29 Jul 2012 |
| Total Posts: 1229 |
|
|
| 22 Jul 2013 09:24 AM |
| @Comp :MoveTo is a method on both the Humanoid, and Model classes. On the Humanoid it makes it walk, on the Model it teleports |
|
|
| Report Abuse |
|
|