generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: It's rather odd how :MoveTo cannot move players.

Previous Thread :: Next Thread 
nise45 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
adammthomas2000 is not online. adammthomas2000
Joined: 24 Feb 2013
Total Posts: 454
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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image