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 a model?

Previous Thread :: Next Thread 
abba99 is not online. abba99
Joined: 02 May 2009
Total Posts: 95
27 Apr 2014 12:29 PM
I'm making a rocket launch game and a found a few problems along the way

For some reason this line wont work

i=1,20 do --So pose to be 1 though 20 so 123456789... 20
Workspace.model.Cframe = Cframe.new(i,0,0)


Also if i do this

Worskpace.Model.Cframe = Cframe.new(8,0,0)

It will not move anywhere it will stay stationary
Help anyone?
Report Abuse
youssef04 is not online. youssef04
Joined: 22 Jan 2011
Total Posts: 1745
27 Apr 2014 12:31 PM
You can't move model, but you can move it's parts:

local parts = game.Workspace.Model:GetChildren()
parts.CFrame = CFrame.new(8, 0, 0)
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
27 Apr 2014 12:31 PM
no youssef, @op, use :MoveTo()

#nerdsunited
Report Abuse
abba99 is not online. abba99
Joined: 02 May 2009
Total Posts: 95
27 Apr 2014 12:39 PM
Thanks for your help although its Workspace.Model:MoveTo(Vector3.new(0, 0, 0))
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