Hello, I am very novice right now, so please try to understand. I am trying to move a part with MoveTo, why will it now work? Here is the code:
1 | wait( 3 ) |
2 | game.Workspace.Part:MoveTo( Vector 3. new( 10 , 10 , 10 ) ) |
Thanks!
Always check the roblox wiki as it is very helpful, and to answer your question you can use either of the following, MoveTo is used to "teleport" characters/players as it get's their current character property and moves it to the given location.
1 | wait( 3 ) |
2 | game.Workspace.Part.Position = Vector 3. new( 10 , 10 , 10 ) |
3 | -- this sets the position of the part to the location/coordinates in the workspace BUT, will collide with other bricks if attempted to be put inside a brick |
4 | game.Workspace.Part.CFrame = CFrame.new( 10 , 10 , 10 ) |
5 | -- this also sets the posotion of the part to the location/coordinates in the workspace AND, moves the part through other parts |
Also, more information: http://wiki.roblox.com/index.php?title=API:CoordinateFrame