I am trying to move a model, but I have no clue how, what I tried was:
while true do
game.Workspace.Model.Position = game.Workspace.Model.Position + Vector3.New(0, -0.1, 0)
wait(0.1)
end
Does anyone know how to move a model?
I am trying to move a model, but I have no clue how, what I tried was:
while true do
game.Workspace.Model.Position = game.Workspace.Model.Position + Vector3.New(0, -0.1, 0)
wait(0.1)
end
Does anyone know how to move a model?
http://wiki.roblox.com/index.php?title=API:Class/Model/MoveTo You must have primarypart set for the model.
game.Workspace.Model:MoveTo(Vector3.new(0,0,0))
You would use a little thing called MoveTo(). MoveTo is a way to move models. You can use it in a really easy way to move the model. Like this:
while true do
game.Workspace.Model:MoveTo(Vector3.new(0, -0.1, 0))
wait(0.1)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
I want to give it a smooth movement though, which dosen't work if I use that technique
A tween?
If you want it to move then it will require another question because it's advanced mathmatics.
Quite intermediate, actually. Also, CFrame:Lerp()! http://wiki.roblox.com/index.php?title=Cframe#Methods
if you want to move it smoothly then you could use a for loop and make it repeat add/remove 0.1 to x,y,z until its at 0. Maybe