In general task.wait() is just an improved version and is better to use. In the future Roblox has said they will make wait() legacy also.
More info: Task Library - Now Available!
So over all wait() still works fine but it is highly recommended to use task.wait().
