Responsefunctions can be represented by tables or by user data. ResponseFunction.ToUserdata transforms a table that defines a response function to a user data that can be efficiently handled internally. ResponseFunction.ToUserdata(table) gives the same result as ResponseFunction.New(table).