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 |
|
|
|
| 01 Sep 2014 09:11 AM |
while true do model.Position = Vector3.new(0,1,0) end |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 01 Sep 2014 09:14 AM |
| I've seen it done before... idk |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|