I'm trying to move a model using MoveTo. Right now, there aren't any errors, but it's not doing what it's suppose to be. This is part of the script;
copy = game.ReplicatedStorage.Traps:FindFirstChild(obj):Clone()
copy:ResetOrientationToIdentity()
copy.Parent = map
mouse.TargetFilter=copy
while moving do
wait()
if mouse.Target ~= nil then
print(mouse.Hit.p)
copy:MoveTo(mouse.Hit.p)
copy:TranslateBy(Vector3.new(0,mouse.Hit.p.Y-copy.PrimaryPart.Position.Y,0))
The model shakes by moving between 2 points that are really close to each other. Any suggestions? |