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
 

How would you move a whole model?

Previous Thread :: Next Thread 
DukeCow is not online. DukeCow
Joined: 20 Nov 2010
Total Posts: 13176
01 Sep 2014 09:06 AM
Let's say I have a model in workspace called "Model", how would I make the model move from it's current place, but move like an elevator up 10 studs on the y-axis.
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
01 Sep 2014 09:11 AM
while true do
model.Position = Vector3.new(0,1,0)
end
Report Abuse
ModDeathRally9 is not online. ModDeathRally9
Joined: 02 Sep 2012
Total Posts: 370
01 Sep 2014 09:13 AM
Don't listen to him, he's a troll.
workspace.Model.Position = workspace.Model.Position + Vector3.new(0, 10, 0)

Should work
Report Abuse
DukeCow is not online. DukeCow
Joined: 20 Nov 2010
Total Posts: 13176
01 Sep 2014 09:13 AM
10:13:33.858 - Position is not a valid member of Model
Report Abuse
ModDeathRally9 is not online. ModDeathRally9
Joined: 02 Sep 2012
Total Posts: 370
01 Sep 2014 09:14 AM
I've seen it done before... idk
Report Abuse
m27frogy is not online. m27frogy
Joined: 26 Mar 2009
Total Posts: 4427
01 Sep 2014 09:16 AM
game.Workspace.Model:TranslateBy(Vector3.new(0, 10, 0))

That should move the model 10 studs up (but it uses a deprecated method.)

game.Workspace.Model:MoveTo(Vector3.new(0,10,0))

That will move a model to that position but it won't move it by a certain amount.


<---- silent chicken, sweg
Report Abuse
m27frogy is not online. m27frogy
Joined: 26 Mar 2009
Total Posts: 4427
01 Sep 2014 09:17 AM
Nvm, use the first method, the "use the new documentation" note in the wiki threw me off.


<---- silent chicken, sweg
Report Abuse
DukeCow is not online. DukeCow
Joined: 20 Nov 2010
Total Posts: 13176
01 Sep 2014 03:38 PM
How would I make this faster-
game.Workspace.Model:TranslateBy(Vector3.new(0, .1, 0))
wait()
game.Workspace.Model:TranslateBy(Vector3.new(0, .2, 0))
wait()
game.Workspace.Model:TranslateBy(Vector3.new(0, .3, 0))
wait()
game.Workspace.Model:TranslateBy(Vector3.new(0, .4, 0))
wait()
game.Workspace.Model:TranslateBy(Vector3.new(0, .5, 0))
wait()
game.Workspace.Model:TranslateBy(Vector3.new(0, .6, 0))
wait()
game.Workspace.Model:TranslateBy(Vector3.new(0, .7, 0))
wait()
game.Workspace.Model:TranslateBy(Vector3.new(0, .8, 0))
wait()
game.Workspace.Model:TranslateBy(Vector3.new(0, .9, 0))
wait()
game.Workspace.Model:TranslateBy(Vector3.new(0, 1, 0))
wait()
Report Abuse
rny is not online. rny
Joined: 26 Jul 2009
Total Posts: 5079
01 Sep 2014 03:42 PM
for i = 1,1,.1 do
game.Workspace.Model:TranslateBy(Vector3.new(0, i, 0))
wait()
end

Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
01 Sep 2014 03:42 PM
just remove all the waits and make it translateby to 1 it does it by itself, like gradually goes up

keep one wait so you dont crash tho
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