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,
1 | function movepart() |
2 | wait( 2 ) |
3 | game.Workspace.part.CFrame = CFrame.new( 9 , 9 , 9 ) |
4 | end |
However, the function on line one is not being called. To fix this, simply add movepart() at the end of the script,
1 | function movepart() --function |
2 | wait( 2 ) |
3 | game.Workspace.part.CFrame = CFrame.new( 9 , 9 , 9 ) |
4 | end |
5 | movepart() --call |
Here's a link for more about functions.
Good Luck.