Create functions.lua

forgot to add this file, sorry guys.