function movepart() wait(2) game.Workspace.part.CFrame = CFrame.new(9,9,9) end
You're not calling your function.
This is what your script looks like,
function movepart() wait(2) game.Workspace.part.CFrame = CFrame.new(9,9,9) end
However, the function on line one is not being called. To fix this, simply add movepart() at the end of the script,
function movepart() --function wait(2) game.Workspace.part.CFrame = CFrame.new(9,9,9) end movepart()--call
Here's a link for more about functions.
Good Luck.