i dont understand how to use it http://wiki.roblox.com/index.php?title=API:Class/Model/MoveTo
Hello,
With MoveTo, you have to define the models PrimaryPart, which is basically the models main part! Then you can use MoveTo to move the model according the PrimaryPart.
Example:
--This script would move the model in workspace called tree, according to its PrimaryPart called 'Trunk' to a random position every 5 seconds. local tree = game.Workspace.Tree tree.PrimaryPart = tree.Trunk while wait(5) do tree:MoveTo(Vector3.new(tree.PrimaryPart.Position + Vector3.new(math.random(-10,10), 0, math.random(-10,10)))) end
Hope this helps, Brandon. <3
Marked as Duplicate by Goulstem and M39a9am3R
This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.
Why was this question closed?