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: How Do You Move Models?

Previous Thread :: Next Thread 
TercesRettel is not online. TercesRettel
Joined: 06 Mar 2012
Total Posts: 351
21 Oct 2013 04:37 PM
Trying to move around a model, but they don't have a CFrame property and I don't know how to move all those parts.
Report Abuse
CrniOrao is not online. CrniOrao
Joined: 12 Oct 2008
Total Posts: 2274
21 Oct 2013 04:39 PM
model = script.Parent
X = 5
Y = 5
Z = 5

model:MoveTo(X, Y, Z)

Understood? :)
Report Abuse
TercesRettel is not online. TercesRettel
Joined: 06 Mar 2012
Total Posts: 351
21 Oct 2013 04:40 PM
Ah, that's is so simple. Thank you so much, I am going to try it out.
Report Abuse
RoyStanford is not online. RoyStanford
Joined: 21 Oct 2008
Total Posts: 2222
21 Oct 2013 04:41 PM
It sounds like he wants something more similar to the CFrame property. You would have to use the toObjectSpace and toWorldSpace methods to use a basepart to move all of the parts individually in the model to a new point.
Report Abuse
CrniOrao is not online. CrniOrao
Joined: 12 Oct 2008
Total Posts: 2274
21 Oct 2013 04:42 PM
Maybe, I don't know these objects even existed since I was inactive for 2 years. :/
Report Abuse
TercesRettel is not online. TercesRettel
Joined: 06 Mar 2012
Total Posts: 351
21 Oct 2013 04:43 PM
Roy, could you give me an example of a script using that?
Report Abuse
TercesRettel is not online. TercesRettel
Joined: 06 Mar 2012
Total Posts: 351
21 Oct 2013 04:49 PM
Crni, I tried your script out. The output gives me an error, "Unable to cast double to Vector3".
Any ideas?
Report Abuse
chickenman158 is not online. chickenman158
Joined: 18 Jan 2011
Total Posts: 915
21 Oct 2013 04:51 PM
model:MoveTo(Vector3.new(X,Y,Z))
Report Abuse
TercesRettel is not online. TercesRettel
Joined: 06 Mar 2012
Total Posts: 351
21 Oct 2013 04:52 PM
Thanks, chicken. Got it to work.
Report Abuse
CrniOrao is not online. CrniOrao
Joined: 12 Oct 2008
Total Posts: 2274
21 Oct 2013 04:53 PM
What Mr. Chickenman158 said! :)
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