Here is my code, but i don't know whats wrong
Part = script.Parent.Parent
Part.ClickDetector.MouseClick:Connect(function() Part:moveto(Vector3.new(10,12,11)
wait(10) Part:movetod(Vector3.new(10,10,10)
)
end)
Not sure how your script is set up since it doesn't appear that you added it as a code block right so here's my best shot.
First, if this is your script (as shown on your post):
Part = script.Parent.Parent Part.ClickDetector.MouseClick:Connect(function() Part:moveto(Vector3.new(10,12,11) wait(10) Part:movetod(Vector3.new(10,10,10)) end)
Here are two things to take into account: 1. Make sure that the Part is actually "script.Parent.Parent". If the script is actually just in the part then it should be "script.Parent" 2. Make sure that when you use "moveto()" it isn't "movetod()"
If you have any questions or issues, please contact me. ;)