Workspace.Part = part
I don't even know why but when I type this in and I have made sure a million times that Part is in Workspace, it still reads back that part is not a valid member of Workspace
The problem with your script is, you didn't explain what part is.
part = game.Workspace.Part --Goes into workspace and finds "Part"
If you would like to insert a part into workspace, you would do this.
part = Instance.new("Part",workspace) --Inserts part into workspace part.Anchored = true --Makes it anchored