Ok so, I'm creating a Real Time Strategy game where I need units to be moved to a specific point. I've created a part called MoveCommand that when I click on the base plate it moves where ever the mouse.target is. So I want the Unit (that is going to be made out of bricks) to move to the MoveCommand location and it needs to update whenever the MoveCommand moves to a new location (I don't want it to move once and never move again). I don't want the Unit to teleport so I'd like it to move like below if possible
So the code below makes the unit move how I'd like it to and sets the speed ect..
for i = 1 , 500 do
workspace.Grunt.Head.CFrame = workspace.Grunt.Head.CFrame + Vector3.new(0,0,.03)
wait (.03)
end
(Head is a normal brick)
I've tried changing the Vector3 coordinates to a specific part position like this...
for i = 1,500 do
workspace.Grunt.Head.CFrame = workspace.Grunt.Head.CFrame + Vector3.new(workspace.MoveCommand.Position)
wait (.03)
end
The part wont budge its unanchored and I tried adding a humanoid to it so I could get it to move but it still didn't.
Any help would be Appreciated Thank You!

2 comments
I set the Primary part and messed with the code a little but now It just teleports to the position I want it to move to...I want it to slowly move there not teleport here is the code that is making it Teleport.... for i = 1,500 do workspace.Model1:MoveTo(workspace.MoveCommand.Position) wait (1) end
I would probably be more efficient to use bodyposition or something like that. Never done that to models though.